Skip to content

Refactor activity detection: change to window-based tracking for I/O …#96

Merged
raflyhangga merged 1 commit into
mainfrom
activity-window-1min
Jul 7, 2026
Merged

Refactor activity detection: change to window-based tracking for I/O …#96
raflyhangga merged 1 commit into
mainfrom
activity-window-1min

Conversation

@raflyhangga

Copy link
Copy Markdown
Contributor

…events

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/tracer/IOTracer.py
Comment thread src/tracer/IOTracer.py
Comment thread src/tracer/IOTracer.py
@raflyhangga raflyhangga merged commit 7213498 into main Jul 7, 2026
4 checks passed
@raflyhangga raflyhangga deleted the activity-window-1min branch July 7, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant