##// 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
#!/bin/sh
echo % test --time
hg --time help -q help 2>&1 | grep Time > /dev/null || echo --time failed
hg init a
cd a
echo % test --profile
if "$TESTDIR/hghave" -q lsprof; then
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
fi