how can i profile every line of code

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

    how can i profile every line of code

    I want to profile a function which has some lines of statement. It seem
    that profile module only report function's stats instead of every line
    of code, how can i profile every line of code?
    thanks.
    scsoce
  • Tim Lesher

    #2
    Re: how can i profile every line of code

    On Feb 21, 10:06 am, scsoce <scs...@gmail.c omwrote:
    I want to profile a function which has some lines of statement. It seem
    that profile module only report function's stats instead of every line
    of code, how can i profile every line of code?
    thanks.
    Use the hotshot profiler, and when creating the profiler instance,
    specify linetimings=Tru e:




    Comment

    • Tim Lesher

      #3
      Re: how can i profile every line of code

      On Feb 21, 3:27 pm, Tim Lesher <tles...@gmail. comwrote:
      On Feb 21, 10:06 am, scsoce <scs...@gmail.c omwrote:
      >
      I want to profile a function which has some lines of statement. It seem
      that profile module only report function's stats instead of every line
      of code, how can i profile every line of code?
      thanks.
      >
      Use the hotshot profiler, and when creating the profiler instance,
      specify linetimings=Tru e:
      >
      http://docs.python.org/lib/module-hotshot.html
      Err, that should be "lineevents=Tru e", not linetimings.

      Comment

      Working...