Repository navigation
sysmon: keep one history for every chart - #4313
Merged
Merged
Conversation
DgopService now records every sample it receives into one shared store (a ring buffer per series on one timeline, 30 minutes) instead of each surface keeping its own copy. Whatever is already being measured, for example by a desktop widget or a bar widget, fills the system monitor's charts too, so they open with history instead of starting empty. Charts read time-bucketed ranges from the store, so the desktop widget's graph time range is a real range query and its own sampling timer is gone. Nothing is polled for the store itself. When polling stops, the store is freed after the retention window. Stretches where nothing was measured show as gaps instead of a straight line (needs the DSparkline change in dux-qml-common). Claude-Session: https://claude.ai/code/session_01DQu2E4BboXnuoPrnnmViJ7
Contributor
Claude reviewNo issues found. |
6 of 12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Part of the system monitor widgets redesign. All charts now read from one shared history instead of keeping a separate history per surface. Whatever is already being measured anyway, for example by a desktop widget or a bar widget, now also shows up in the system monitor's charts, so they open with history instead of starting empty every time.
The history keeps the last 30 minutes of every value that was measured. Nothing is polled for it, it only records what something else already asked dgop for, and it is freed 30 minutes after nothing measures anymore. The desktop widget's graph time range now uses it directly instead of its own sampling timer.
The old
DgopService.cpuHistory,memoryHistory,networkHistoryanddiskHistoryare still kept, but deprecated in favor ofDgopService.history().Stretches where nothing was measured should be shown in the chart instead of drawing a straight line across it. That needs the DSparkline change in dux-qml-common: duxlabs-dev/dux-qml-common#54
Type of change
Related issues
Screenshots / video
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings