Show More
@@ -8,25 +8,27 b' test --time' | |||||
8 |
|
8 | |||
9 | test --profile |
|
9 | test --profile | |
10 |
|
10 | |||
11 | $ hg --profile st 2>../out |
|
11 | $ prof='hg --config profiling.type=ls --profile' | |
|
12 | ||||
|
13 | $ $prof st 2>../out | |||
12 | $ grep CallCount ../out > /dev/null || cat ../out |
|
14 | $ grep CallCount ../out > /dev/null || cat ../out | |
13 |
|
15 | |||
14 |
$ |
|
16 | $ $prof --config profiling.output=../out st | |
15 | $ grep CallCount ../out > /dev/null || cat ../out |
|
17 | $ grep CallCount ../out > /dev/null || cat ../out | |
16 |
|
18 | |||
17 |
$ |
|
19 | $ $prof --config profiling.output=blackbox --config extensions.blackbox= st | |
18 | $ grep CallCount .hg/blackbox.log > /dev/null || cat .hg/blackbox.log |
|
20 | $ grep CallCount .hg/blackbox.log > /dev/null || cat .hg/blackbox.log | |
19 |
|
21 | |||
20 |
$ |
|
22 | $ $prof --config profiling.format=text st 2>../out | |
21 | $ grep CallCount ../out > /dev/null || cat ../out |
|
23 | $ grep CallCount ../out > /dev/null || cat ../out | |
22 |
|
24 | |||
23 | $ echo "[profiling]" >> $HGRCPATH |
|
25 | $ echo "[profiling]" >> $HGRCPATH | |
24 | $ echo "format=kcachegrind" >> $HGRCPATH |
|
26 | $ echo "format=kcachegrind" >> $HGRCPATH | |
25 |
|
27 | |||
26 |
$ |
|
28 | $ $prof st 2>../out | |
27 | $ grep 'events: Ticks' ../out > /dev/null || cat ../out |
|
29 | $ grep 'events: Ticks' ../out > /dev/null || cat ../out | |
28 |
|
30 | |||
29 |
$ |
|
31 | $ $prof --config profiling.output=../out st | |
30 | $ grep 'events: Ticks' ../out > /dev/null || cat ../out |
|
32 | $ grep 'events: Ticks' ../out > /dev/null || cat ../out | |
31 |
|
33 | |||
32 | #endif |
|
34 | #endif | |
@@ -35,7 +37,7 b' test --profile' | |||||
35 |
|
37 | |||
36 | Profiling of HTTP requests works |
|
38 | Profiling of HTTP requests works | |
37 |
|
39 | |||
38 |
$ |
|
40 | $ $prof --config profiling.format=text --config profiling.output=../profile.log serve -d -p $HGPORT --pid-file ../hg.pid -A ../access.log | |
39 | $ cat ../hg.pid >> $DAEMON_PIDS |
|
41 | $ cat ../hg.pid >> $DAEMON_PIDS | |
40 | $ hg -q clone -U http://localhost:$HGPORT ../clone |
|
42 | $ hg -q clone -U http://localhost:$HGPORT ../clone | |
41 |
|
43 |
General Comments 0
You need to be logged in to leave comments.
Login now