##// END OF EJS Templates
profiling: use "stat" profiler to profile individual request...
marmoute -
r52734:102770bb stable
parent child Browse files
Show More
@@ -50,11 +50,15 In alias
50 50
51 51 #endif
52 52
53 #if lsprof serve
53 #if serve
54 54
55 55 Profiling of HTTP requests works
56 56
57 $ prof \
57 $ stats_prof () {
58 > hg --config profiling.type=stat --profile $@
59 > }
60
61 $ stats_prof \
58 62 > --config profiling.format=text \
59 63 > --config profiling.output=../profile.log \
60 64 > serve -d \
@@ -67,7 +71,9 Profiling of HTTP requests works
67 71 $ cat ../error.log
68 72
69 73 A single profile is logged because file logging doesn't append
70 $ grep CallCount ../profile.log | wc -l
74 $ grep 'Sample count:' ../profile.log | wc -l
75 \s*1 (re)
76 $ grep 'Total time:' ../profile.log | wc -l
71 77 \s*1 (re)
72 78
73 79 #endif
General Comments 0
You need to be logged in to leave comments. Login now