Commit 212dd95
Fix timer loop exit condition for sampling profiler
Summary:
There is a bug in the timer loop implementation. If the profiler is
disabled even before a single iteration of the loop can execute, it
attempts to take a sample instead of exiting immediately.
This has been a source of test flakiness.
Reviewed By: dulinriley
Differential Revision: D26108740
fbshipit-source-id: 9bf706c996288dff233288137cf3f17ffcb64b2f1 parent 51241e9 commit 212dd95
1 file changed
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | 229 | | |
236 | 230 | | |
237 | 231 | | |
| |||
0 commit comments