test-profile.t
48 lines
| 1.3 KiB
| text/troff
|
Tads3Lexer
/ tests / test-profile.t
Matt Mackall
|
r12478 | test --time | ||
Martin Geisler
|
r16933 | $ hg --time help -q help 2>&1 | grep time > /dev/null | ||
Matt Mackall
|
r12478 | $ hg init a | ||
$ cd a | ||||
Mads Kiilerich
|
r16898 | #if lsprof | ||
Matt Mackall
|
r12478 | test --profile | ||
Mads Kiilerich
|
r16898 | $ hg --profile st 2>../out | ||
$ grep CallCount ../out > /dev/null || cat ../out | ||||
$ hg --profile --config profiling.output=../out st | ||||
$ grep CallCount ../out > /dev/null || cat ../out | ||||
Durham Goode
|
r26191 | $ hg --profile --config profiling.output=blackbox --config extensions.blackbox= st | ||
$ grep CallCount .hg/blackbox.log > /dev/null || cat .hg/blackbox.log | ||||
Mads Kiilerich
|
r16898 | $ hg --profile --config profiling.format=text st 2>../out | ||
$ grep CallCount ../out > /dev/null || cat ../out | ||||
$ echo "[profiling]" >> $HGRCPATH | ||||
$ echo "format=kcachegrind" >> $HGRCPATH | ||||
$ hg --profile st 2>../out | ||||
$ grep 'events: Ticks' ../out > /dev/null || cat ../out | ||||
$ hg --profile --config profiling.output=../out st | ||||
$ grep 'events: Ticks' ../out > /dev/null || cat ../out | ||||
#endif | ||||
Mads Kiilerich
|
r16913 | |||
Gregory Szorc
|
r29787 | #if lsprof serve | ||
Profiling of HTTP requests works | ||||
$ hg --profile --config profiling.format=text --config profiling.output=../profile.log serve -d -p $HGPORT --pid-file ../hg.pid -A ../access.log | ||||
$ cat ../hg.pid >> $DAEMON_PIDS | ||||
$ hg -q clone -U http://localhost:$HGPORT ../clone | ||||
A single profile is logged because file logging doesn't append | ||||
$ grep CallCount ../profile.log | wc -l | ||||
\s*1 (re) | ||||
#endif | ||||
Mads Kiilerich
|
r16913 | $ cd .. | ||