##// END OF EJS Templates
windows: use shell function instead of variable substitution...
Raphaël Gomès -
r48362:17fde676 default
parent child Browse files
Show More
@@ -23,27 +23,29 b' In alias'
23 23
24 24 #if lsprof
25 25
26 $ prof='hg --config profiling.type=ls --profile'
26 $ prof () {
27 > hg --config profiling.type=ls --profile $@
28 > }
27 29
28 $ $prof st 2>../out
30 $ prof st 2>../out
29 31 $ grep CallCount ../out > /dev/null || cat ../out
30 32
31 $ $prof --config profiling.output=../out st
33 $ prof --config profiling.output=../out st
32 34 $ grep CallCount ../out > /dev/null || cat ../out
33 35
34 $ $prof --config profiling.output=blackbox --config extensions.blackbox= st
36 $ prof --config profiling.output=blackbox --config extensions.blackbox= st
35 37 $ grep CallCount .hg/blackbox.log > /dev/null || cat .hg/blackbox.log
36 38
37 $ $prof --config profiling.format=text st 2>../out
39 $ prof --config profiling.format=text st 2>../out
38 40 $ grep CallCount ../out > /dev/null || cat ../out
39 41
40 42 $ echo "[profiling]" >> $HGRCPATH
41 43 $ echo "format=kcachegrind" >> $HGRCPATH
42 44
43 $ $prof st 2>../out
45 $ prof st 2>../out
44 46 $ grep 'events: Ticks' ../out > /dev/null || cat ../out
45 47
46 $ $prof --config profiling.output=../out st
48 $ prof --config profiling.output=../out st
47 49 $ grep 'events: Ticks' ../out > /dev/null || cat ../out
48 50
49 51 #endif
@@ -52,7 +54,7 b' In alias'
52 54
53 55 Profiling of HTTP requests works
54 56
55 $ $prof --config profiling.format=text --config profiling.output=../profile.log serve -d -p $HGPORT --pid-file ../hg.pid -A ../access.log
57 $ prof --config profiling.format=text --config profiling.output=../profile.log serve -d -p $HGPORT --pid-file ../hg.pid -A ../access.log
56 58 $ cat ../hg.pid >> $DAEMON_PIDS
57 59 $ hg -q clone -U http://localhost:$HGPORT ../clone
58 60
General Comments 0
You need to be logged in to leave comments. Login now