Run ❯
Get your
own Python
server
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
import profile def work(): s = 0 for i in range(20000): s += i*i return s profile.run('work()')
5 function calls in 0.123 seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 0.001 0.001 :0(exec)
1 0.122 0.122 0.122 0.122 :0(setprofile)
1 0.000 0.000 0.001 0.001 <string>:1(<module>)
0 0.000 0.000 profile:0(profiler)
1 0.000 0.000 0.123 0.123 profile:0(work())
1 0.001 0.001 0.001 0.001 prog.py:3(work)