rkern / line_profiler

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

Line profiler not showing complete stats #141

Open talhaanwarch opened 5 years ago

talhaanwarch commented 5 years ago

Greetings. I am bit confused how to use line profiler, when i run following command in anaconda prompt , it just show me the following output

kernprof -l test.py
python -m line_profiler test.py.lprof

screen shot is attached http://prntscr.com/mvnbnr

May be i am doing some mistake. Waiting for your response

Nodd commented 5 years ago

Does your code actually run the test function when you run it without kernprof ?

AstroMen commented 5 years ago

Hi @Nodd , I also encounter the same issue, not completed results as below. Part of code works, part of code doesn't work. What should I do for this case? Thanks.

image image

Nodd commented 5 years ago

I think it's likely that the code doesn't run. Maybe it crashes on logger.info because the environment in kernprof is slightly different than the standard interpreter ? is there any traceback in the console ?