Jupyter runtime profiling
So, I installed jupyter notebook via anaconda and I am working on python 3 core.
I am trying to do time profiling with magic command %time
as shown here
The problem is that it only prints Wall Time not CPU time
with %time
or %%time
without help
-
%time
prints wall time for first line only -
%%time
prints wall time for solid cell
I'm not sure if there is any specified configuration for printing cpu time
EDIT
To clarify usage %%time
, two metrics should be printed for the entire cell
- Metric 1 : CPU time
- Metric 2 : time on the wall
My problem is that I only get wall time and not cpu time.
You can check this link on the expected output for%%time
+3
source to share