| 110 | } |
| 111 | _isInForeground = true; |
| 112 | scheduleNextTick(); |
| 113 | } |
| 114 | |
| 115 | // Must be called with _mutex held. A syn probe that was in flight when monitoring paused is |
| 116 | // measured against a clock that keeps advancing while the process is suspended (steady_clock does |
| 117 | // not stop with the app), so evaluating it on the first tick after resume would report time the |
| 118 | // app never spent running as a spurious unattributed ANR. Slide the probe's deadline so it gets a |
no outgoing calls