Created
August 26, 2017 10:05
-
-
Save MSeifert04/bb103bd95c57ccda88fc2709fc361579 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 line_profiler | |
def foo(): | |
for i in range(10000): | |
a = i**i | |
if i % 1000 == 0: | |
print(i) | |
lp = line_profiler.LineProfiler() | |
lp.add_function(foo) | |
lp_wrapper = lp(foo) | |
lp_wrapper() | |
lp.print_stats() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment