line_profiler icon indicating copy to clipboard operation
line_profiler copied to clipboard

line_profiler for all functions and [if __name__ == "__main__":]

Open ManPython opened this issue 7 years ago • 3 comments

  1. Is there any simple way to use line_profiler as call kernprof.exe -l -v -all example.py where -all getting all functions that we have without decorate them?

  2. How we can profile the part of code where is if name == "main" ?

ManPython avatar Aug 15 '18 12:08 ManPython

Did you find any workaround for this behavior ? Thanks !

jhagege avatar Nov 05 '18 09:11 jhagege

@jhagege no progress here.

ManPython avatar Nov 05 '18 10:11 ManPython

I would love to see this as well. And relatedly, the ability for adding @profile on a class definition to automatically profile all functions in the class.

(Also, I have to say, this tool is super useful!)

timabbott avatar Feb 28 '19 01:02 timabbott