Extracting results from a large hotshot profile

Brian Cole brianc at temple.edu
Mon Jan 16 12:05:32 EST 2006

Thanks for the tip. I got the following error message when trying to
run your profiler.

Traceback (most recent call last):
  File "c:\Documents and Settings\coleb2\My Documents\software\Python24\lib\site
-packages\wx-2.6-msw-ansi\wx\_core.py", line 13469, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "runsnake.py", line 106, in load
    for count, files, functions in hotshotreader.loadHotshot( filename, 20000 ):
  File "c:\Documents and Settings\coleb2\My Documents\software\Python24\Lib\site
-packages\runsnakerun\hotshotreader.py", line 95, in loadHotshot
    localDeltas[depth] = 0
IndexError: index out of bounds

I don't know much about Numeric, or NumPy, or whatever it's called
now. I'm quite confused by the whole matter in fact.

As the traceback shows I'm running this on Windows. I'm gonna go
wrestle with installing wxPython and Numeric on my Linux box and see
if that makes a difference.


On 1/16/06, Mike C. Fletcher <mcfletch at rogers.com> wrote:
> Brian Cole wrote:
> ...
> >I did a hotshot profile. To make this profile took
> >about a day. However, I've been trying to extract results from the
> >profile for the past two days. It's eating up all the memory (2G
> >memory) on the machine and is slowing sucking up the swap space
> >(another 2G).
> >
> >I'm hesitant to kill it for I might get results out of it some day
> >(even if I may have to bequeath them to my grand-children), but is
> >there a better way to do this?
> >
> >
> ...
> >The profile is 355 MB large. Is there anything I can do to extract that data?
> >
> >
> You might want to try my RunSnakeRun utility:
>     http://www.vrplumber.com/programming/runsnakerun/
> It's designed to load large hotspot runs.  I've never had a 355 MB one,
> but I regularly load 140+MB ones on a desktop 1GB machine.  It does an
> incremental load, so you start to see results as soon as it starts
> running and continues loading the data-set in the background (it can
> take quite a while for the full data-set to load, but I don't *think* it
> should run out of RAM).
> In case you don't want the GUI, the package includes the core
> hotshotreader module that actually does the incremental loading, you
> could use that to produce a view by writing code to display the results
> statically.
> HTH,
> Mike
> --
> ________________________________________________
>   Mike C. Fletcher
>   Designer, VR Plumber, Coder
>   http://www.vrplumber.com
>   http://blog.vrplumber.com

More information about the Python-list mailing list