line_profiler
line_profiler copied to clipboard
line_profiler for all functions and [if __name__ == "__main__":]
-
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?
-
How we can profile the part of code where is if name == "main" ?
Did you find any workaround for this behavior ? Thanks !
@jhagege no progress here.
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!)