Skip to content
This repository
Browse code

[doc] Add more instruction on profiling hue server

  • Loading branch information...
commit 875549afe6f9926ba438c66ffdd2ad9da58eb1ae 1 parent 0fe62b5
bc Wong authored

Showing 1 changed file with 6 additions and 3 deletions. Show diff stats Hide diff stats

  1. +6 3 README.rst
9 README.rst
Source Rendered
@@ -172,8 +172,12 @@ the file names is /tmp/<app_module>.<page_url>.<time_taken>.<timestamp>.prof.
172 172 Hue uses the hotshot profiling library for instrumentation. The documentation
173 173 for this library is located at: http://docs.python.org/library/hotshot.html.
174 174
175   -To make use of the profiling data quickly, you can create a script that does
176   -the following::
  175 +You can use kcachegrind to view the profiled data graphically::
  176 +
  177 + $ hotshot2calltree /tmp/xyz.prof > /tmp/xyz.trace
  178 + $ kcachegrind /tmp/xyz.trace
  179 +
  180 +More generally, you can programmatically inspect a trace::
177 181
178 182 #!/usr/bin/python
179 183 import hotshot.stats
@@ -188,4 +192,3 @@ time spent in that function, followed by the number of times the function was
188 192 called, and then prints out the top 100 time-wasters. For information on the
189 193 other stats available, take a look at this website:
190 194 http://docs.python.org/library/profile.html#pstats.Stats
191   -

0 comments on commit 875549a

Please sign in to comment.
Something went wrong with that request. Please try again.