Closed weiguang-zz closed 6 years ago
for example, i can use the %%prun magics to test the whole cell code
%%prun import time time.sleep(2)
3 function calls in 2.002 seconds Ordered by: internal time ncalls tottime percall cumtime percall filename:lineno(function) 1 2.002 2.002 2.002 2.002 {time.sleep} 1 0.000 0.000 2.002 2.002 <string>:2(<module>) 1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
i want to ask if the line_profiler support the %%lprun applying to the whole cell. for example:
%%lprun import time time.sleep(2)
thank you!
Nope, sorry.
for example, i can use the %%prun magics to test the whole cell code
i want to ask if the line_profiler support the %%lprun applying to the whole cell. for example:
thank you!