Refactor activity detection: change to window-based tracking for I/O …#96
Conversation
There was a problem hiding this comment.
Code Review
This pull request modifies IOTracer.py to track disk activity using a 60-second sampling window (_ACTIVITY_WINDOW_S) instead of a 1-second window, updating the telemetry calculations accordingly. The review feedback suggests supporting fractional window tracking to prevent under-reporting on exit or during intermediate posts. This includes changing the window tracking variables to floats, handling the final partial window proportionally on exit in _activity_detector, and casting the final duration_delta to an integer.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
…events