Open mikpom opened 6 years ago
No activity on this one but I still believe this would be a major improvement to command line profiling. I also noticed that it is somewhat duplicate of #26 . In common between the issues is request for the ability to profile top-level code not within any function. I want also to note that it is NOT a duplicate of #3 where a different thing is requested.
I wants CLI option too. It will be super useful because I don't have to modifying the source code.
When profiling using
%lprun
magic inside IPython shell I occasionally use-m module
which allows to profile all lines in a specified module. When using kernprof from the command line I only found an option to profile using the decorator. How can I bring this module-profiling functionality to command line kernprof invocation?Thanks!