rkern / line_profiler

(OLD REPO) Line-by-line profiling for Python - Current repo ->
https://github.com/pyutils/line_profiler
Other
3.6k stars 254 forks source link

%lprun-like module profiling using kernprof #104

Open mikpom opened 6 years ago

mikpom commented 6 years ago

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 commented 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.

CreatCodeBuild commented 6 years ago

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