##// END OF EJS Templates
profiling: Adding profiling.output config variable...
profiling: Adding profiling.output config variable If specified, outputs profiling data to the said file. Prints to stderr by default

File last commit:

r8022:4f3fdfaa default
r8022:4f3fdfaa default
Show More
test-profile
18 lines | 515 B | text/plain | TextLexer
Patrick Mezard
Test --time, --profile and --lsprof
r5099 #!/bin/sh
echo % test --time
Patrick Mezard
test-profile: fix grep, check hotshot availability
r5102 hg --time help -q help 2>&1 | grep Time > /dev/null || echo --time failed
Patrick Mezard
Test --time, --profile and --lsprof
r5099
Nicolas Dumazet
profiling: Adding profiling.output config variable...
r8022 hg init a
cd a
Patrick Mezard
Test --time, --profile and --lsprof
r5099 echo % test --profile
Nicolas Dumazet
profiling: dropping hotshot profiling. --profile as a unique profiling option...
r8021 if "$TESTDIR/hghave" -q lsprof; then
Nicolas Dumazet
profiling: Adding profiling.output config variable...
r8022 hg --profile st 2>../out || echo --profile failed
grep CallCount < ../out > /dev/null || echo wrong --profile
hg --profile --config profiling.output=../out st 2>&1 \
|| echo --profile + output to file failed
grep CallCount < ../out > /dev/null \
|| echo wrong --profile output when saving to a file
Patrick Mezard
test-profile: fix grep, check hotshot availability
r5102 fi