Show More
@@ -1,48 +1,50 b'' | |||
|
1 | 1 | test --time |
|
2 | 2 | |
|
3 | 3 | $ hg --time help -q help 2>&1 | grep time > /dev/null |
|
4 | 4 | $ hg init a |
|
5 | 5 | $ cd a |
|
6 | 6 | |
|
7 | 7 | #if lsprof |
|
8 | 8 | |
|
9 | 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 | 14 | $ grep CallCount ../out > /dev/null || cat ../out |
|
13 | 15 | |
|
14 |
$ |
|
|
16 | $ $prof --config profiling.output=../out st | |
|
15 | 17 | $ grep CallCount ../out > /dev/null || cat ../out |
|
16 | 18 | |
|
17 |
$ |
|
|
19 | $ $prof --config profiling.output=blackbox --config extensions.blackbox= st | |
|
18 | 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 | 23 | $ grep CallCount ../out > /dev/null || cat ../out |
|
22 | 24 | |
|
23 | 25 | $ echo "[profiling]" >> $HGRCPATH |
|
24 | 26 | $ echo "format=kcachegrind" >> $HGRCPATH |
|
25 | 27 | |
|
26 |
$ |
|
|
28 | $ $prof st 2>../out | |
|
27 | 29 | $ grep 'events: Ticks' ../out > /dev/null || cat ../out |
|
28 | 30 | |
|
29 |
$ |
|
|
31 | $ $prof --config profiling.output=../out st | |
|
30 | 32 | $ grep 'events: Ticks' ../out > /dev/null || cat ../out |
|
31 | 33 | |
|
32 | 34 | #endif |
|
33 | 35 | |
|
34 | 36 | #if lsprof serve |
|
35 | 37 | |
|
36 | 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 | 41 | $ cat ../hg.pid >> $DAEMON_PIDS |
|
40 | 42 | $ hg -q clone -U http://localhost:$HGPORT ../clone |
|
41 | 43 | |
|
42 | 44 | A single profile is logged because file logging doesn't append |
|
43 | 45 | $ grep CallCount ../profile.log | wc -l |
|
44 | 46 | \s*1 (re) |
|
45 | 47 | |
|
46 | 48 | #endif |
|
47 | 49 | |
|
48 | 50 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now