Skip to content

Instantly share code, notes, and snippets.

@ericness
Created March 21, 2022 23:11
Show Gist options
  • Save ericness/1e27e0c4fa7efbbdd9b46bdf7102d9ad to your computer and use it in GitHub Desktop.
Save ericness/1e27e0c4fa7efbbdd9b46bdf7102d9ad to your computer and use it in GitHub Desktop.
LeetCode 200 pyinstrument output
_ ._ __/__ _ _ _ _ _/_ Recorded: 18:04:16 Samples: 277
/_//_/// /_\ / //_// / //_'/ // Duration: 0.277 CPU time: 0.277
/ _/ v4.1.1
Program: 200_number_of_islands.py
0.277 <module> <string>:1
[4 frames hidden] <string>, runpy
0.277 _run_code runpy.py:64
└─ 0.277 <module> 200_number_of_islands.py:8
├─ 0.270 numIslands 200_number_of_islands.py:24
│ ├─ 0.197 breadth_first_search 200_number_of_islands.py:48
│ │ ├─ 0.143 [self]
│ │ ├─ 0.040 <lambda> <string>:1
│ │ │ [4 frames hidden] <string>, <built-in>
│ │ ├─ 0.007 set.add <built-in>:0
│ │ │ [2 frames hidden] <built-in>
│ │ ├─ 0.004 deque.popleft <built-in>:0
│ │ │ [2 frames hidden] <built-in>
│ │ └─ 0.003 deque.append <built-in>:0
│ │ [2 frames hidden] <built-in>
│ ├─ 0.052 [self]
│ └─ 0.020 <lambda> <string>:1
│ [4 frames hidden] <string>, <built-in>
└─ 0.007 [self]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment