##// 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 #endif
51 #endif
52
52
53 #if lsprof serve
53 #if serve
54
54
55 Profiling of HTTP requests works
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 > --config profiling.format=text \
62 > --config profiling.format=text \
59 > --config profiling.output=../profile.log \
63 > --config profiling.output=../profile.log \
60 > serve -d \
64 > serve -d \
@@ -67,7 +71,9 Profiling of HTTP requests works
67 $ cat ../error.log
71 $ cat ../error.log
68
72
69 A single profile is logged because file logging doesn't append
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 \s*1 (re)
77 \s*1 (re)
72
78
73 #endif
79 #endif
General Comments 0
You need to be logged in to leave comments. Login now