tests/test-profile
author Nicolas Dumazet <nicdumz.commits@gmail.com>
Wed, 08 Apr 2009 14:18:20 +0200
changeset 8021 1c2cf2e5dc9b
parent 5102 9b0efeb725f4
child 8022 4f3fdfaa3874
permissions -rwxr-xr-x
profiling: dropping hotshot profiling. --profile as a unique profiling option hotshot was an experimental module, which is broken for Python < 2.5 And even for Python >= 2.5 users, hotshot usage is discouraged: cProfile (formerly lsprof) should be used instead.

#!/bin/sh

echo % test --time
hg --time help -q help 2>&1 | grep Time > /dev/null || echo --time failed

echo % test --profile
if "$TESTDIR/hghave" -q lsprof; then
    hg --profile help -q help 2>&1 | grep CallCount > /dev/null || echo --profile failed
fi