line_profiler icon indicating copy to clipboard operation
line_profiler copied to clipboard

%lprun-like module profiling using kernprof

Open mikpom opened this issue 8 years ago • 2 comments

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!

mikpom avatar Oct 24 '17 20:10 mikpom

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.

mikpom avatar Dec 06 '17 00:12 mikpom

I wants CLI option too. It will be super useful because I don't have to modifying the source code.

CreatCodeBuild avatar Dec 06 '17 20:12 CreatCodeBuild