comparison tests/test-profile @ 8024:9a1b86cfd29e

profiling: Adding support for kcachegrind output format, using lsprofcalltree
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Wed, 08 Apr 2009 14:20:57 +0200
parents fd9debb3ea1b
children
comparison
equal deleted inserted replaced
8023:fd9debb3ea1b 8024:9a1b86cfd29e
16 grep CallCount < ../out > /dev/null \ 16 grep CallCount < ../out > /dev/null \
17 || echo wrong --profile output when saving to a file 17 || echo wrong --profile output when saving to a file
18 18
19 hg --profile --config profiling.format=text st 2>&1 \ 19 hg --profile --config profiling.format=text st 2>&1 \
20 | grep CallCount > /dev/null || echo --profile format=text failed 20 | grep CallCount > /dev/null || echo --profile format=text failed
21
22 echo "[profiling]" >> $HGRCPATH
23 echo "format=kcachegrind" >> $HGRCPATH
24
25 hg --profile st 2>../out || echo --profile format=kcachegrind failed
26 grep 'events: Ticks' < ../out > /dev/null || echo --profile output is wrong
27
28 hg --profile --config profiling.output=../out st 2>&1 \
29 || echo --profile format=kcachegrind + output to file failed
30 grep 'events: Ticks' < ../out > /dev/null \
31 || echo --profile output is wrong
21 fi 32 fi