Browse files

[doc] Add more instruction on profiling hue server

  • Loading branch information...
bc Wong
bc Wong committed Apr 25, 2012
1 parent 0fe62b5 commit 875549afe6f9926ba438c66ffdd2ad9da58eb1ae
Showing with 6 additions and 3 deletions.
  1. +6 −3 README.rst
@@ -172,8 +172,12 @@ the file names is /tmp/<app_module>.<page_url>.<time_taken>.<timestamp>.prof.
Hue uses the hotshot profiling library for instrumentation. The documentation
for this library is located at:
-To make use of the profiling data quickly, you can create a script that does
-the following::
+You can use kcachegrind to view the profiled data graphically::
+ $ hotshot2calltree /tmp/ > /tmp/xyz.trace
+ $ kcachegrind /tmp/xyz.trace
+More generally, you can programmatically inspect a trace::
import hotshot.stats
@@ -188,4 +192,3 @@ time spent in that function, followed by the number of times the function was
called, and then prints out the top 100 time-wasters. For information on the
other stats available, take a look at this website:

0 comments on commit 875549a

Please sign in to comment.