Skip to content

Commit 9c55599

Browse files
committed
Line Profiler
1 parent d2bd76a commit 9c55599

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,10 +1421,10 @@ main()
14211421
$ kernprof -lv test.py
14221422
Line # Hits Time Per Hit % Time Line Contents
14231423
==============================================================
1424-
2 @profile
1425-
3 def main():
1426-
4 1 2901.0 2901.0 45.2 a = [(i%3 + 1) * 3 for i in range(10000)]
1427-
5 1 3518.0 3518.0 54.8 b = [i ** (i/10000) for i in range(10000)]
1424+
1 @profile
1425+
2 def main():
1426+
3 1 6196.0 6196.0 53.2 a = [(i%3 + 1) * 3 for i in range(10000)]
1427+
4 1 5455.0 5455.0 46.8 b = [i ** (i/10000) for i in range(10000)]
14281428
```
14291429

14301430
### Call Graph

0 commit comments

Comments
 (0)