Skip to content
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.

does line_profiler support %%lprun Magics #102

Closed
weiguang-zz opened this issue Sep 15, 2017 · 1 comment
Closed

does line_profiler support %%lprun Magics #102

weiguang-zz opened this issue Sep 15, 2017 · 1 comment

Comments

@weiguang-zz
Copy link

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!

@brettolsen
Copy link
Contributor

Nope, sorry.

@caethan caethan closed this as completed Dec 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants