Last active
June 22, 2016 10:23
-
-
Save jpata/d9ef39c3f73606a05c4d6e808acac8a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cProfile, time | |
def func(): | |
s = 0 | |
for i in range(100000): | |
s += i | |
p = cProfile.Profile(time.clock) | |
p.runcall(func) | |
p.print_stats() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment