hotshot ??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Charles Hartman

    #1

    hotshot ??

    (I asked this a day or two ago; if there was an answer, I missed it.
    Anybody using hotshot?)


    I've used profile before, but wanted to get more information so I
    thought I'd try hotshot instead. It works fine when used like profile.
    But when I run it using this line,
    prof = hotshot.Profile ('ScanHot.prof' , lineevents=1)
    though it runs all right, when I try to load the resulting file I get
    this:
    [color=blue][color=green][color=darkred]
    >>> hs = hotshot.stats.l oad("ScanHot.pr of")[/color][/color][/color]
    Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    File
    "/System/Library/Frameworks/Python.framewor k/Versions/2.3/lib/
    python2.3/hotshot/stats.py", line 12, in load
    return StatsLoader(fil ename).load()
    File
    "/System/Library/Frameworks/Python.framewor k/Versions/2.3/lib/
    python2.3/hotshot/stats.py", line 51, in load
    assert not self._stack
    AssertionError

    --which I don't understand. (The program is a GUI one using wxPython
    2.5, running from within the WingIDE on a Mac under OS 10.3.8, if any
    of that makes a difference. Nothing there prevents hotshot from loading
    a file that's been made without the lineevents=1 argument.)


    Charles Hartman
    Professor of English, Poet in Residence



Working...