line_profiler icon indicating copy to clipboard operation
line_profiler copied to clipboard

Line profiler not showing complete stats

Open talhaanwarch opened this issue 6 years ago • 3 comments

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

talhaanwarch avatar Mar 09 '19 21:03 talhaanwarch

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

Nodd avatar Jun 23 '19 19:06 Nodd

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

AstroMen avatar Jun 26 '19 08:06 AstroMen

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 ?

Nodd avatar Jun 28 '19 08:06 Nodd