resetCaptureState method
void
resetCaptureState()
Clears all per-leg accumulator state so capture screens can
re-enter a fresh below/at/above leg without leakage from the
prior leg's paint time, debug snapshot, or pending issues, and
restarts the window clock. _vmConnected is owned by the
controller and intentionally left untouched.
Implementation
void resetCaptureState() {
_paintTimeUs = 0;
_pendingVmWindowPercent = null;
_lastObservedPaintPercent = 0;
_peakObservedPaintPercent = 0;
_pendingEnrichedDirtyTotal = 0;
_stagedEnrichedDirtyTotal = null;
_pendingDebugSnapshot = null;
_windowStart = _clock();
_issues.clear();
_clearHeld();
_highlights.clear();
_hotInstances.clear();
}