equal
deleted
inserted
replaced
|
1 test --time |
|
2 |
|
3 $ hg --time help -q help 2>&1 | grep Time > /dev/null |
|
4 $ hg init a |
|
5 $ cd a |
|
6 |
|
7 test --profile |
|
8 |
|
9 $ if "$TESTDIR/hghave" -q lsprof; then |
|
10 > hg --profile st 2>../out || echo --profile failed |
|
11 > grep CallCount < ../out > /dev/null || echo wrong --profile |
|
12 > |
|
13 > hg --profile --config profiling.output=../out st 2>&1 \ |
|
14 > || echo --profile + output to file failed |
|
15 > grep CallCount < ../out > /dev/null \ |
|
16 > || echo wrong --profile output when saving to a file |
|
17 > |
|
18 > hg --profile --config profiling.format=text st 2>&1 \ |
|
19 > | grep CallCount > /dev/null || echo --profile format=text failed |
|
20 > |
|
21 > echo "[profiling]" >> $HGRCPATH |
|
22 > echo "format=kcachegrind" >> $HGRCPATH |
|
23 > |
|
24 > hg --profile st 2>../out || echo --profile format=kcachegrind failed |
|
25 > grep 'events: Ticks' < ../out > /dev/null || echo --profile output is wrong |
|
26 > |
|
27 > hg --profile --config profiling.output=../out st 2>&1 \ |
|
28 > || echo --profile format=kcachegrind + output to file failed |
|
29 > grep 'events: Ticks' < ../out > /dev/null \ |
|
30 > || echo --profile output is wrong |
|
31 > fi |