Commit d9b0a79
committed
profiling(Gecko): check if thread list is not empty before accessing it
It seems to sometimes happen that some samples (possibly at the very start / end)
do not have any active threads in the interpreter state.
It is OK to make main_tid maybe None here, since if it is, the threads list is
empty, and so the for loop will not execute anyways.
Signed-off-by: Sofia Donato Ferreira <flowlnlnln@gmail.com>1 parent 8920f2f commit d9b0a79
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
177 | 179 | | |
178 | 180 | | |
179 | 181 | | |
| |||
0 commit comments