Skip to content

fix: Measure CPU usage between ticks, not since boot - #46

Merged
andreiborza merged 3 commits into
ab/cpu-usage-without-cpufreqfrom
ab/cpu-usage-delta
Dec 1, 2026
Merged

andreiborza merged 3 commits into
ab/cpu-usage-without-cpufreqfrom
ab/cpu-usage-delta

Conversation

@andreiborza

Copy link
Copy Markdown
Member

What

The CPU usage measurement now shows the CPU load between two ticks. Before, it showed the average load since the host started.

Why

The average since boot is almost flat, so the CPU usage in a profile did not show the load at that time. This PR is stacked on #45.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@andreiborza

Copy link
Copy Markdown
Member Author

Not sure if we want this, wdyt @timfish?

@andreiborza
andreiborza requested a review from timfish December 1, 2026 13:53
@andreiborza
andreiborza marked this pull request as ready for review December 1, 2026 13:54
@timfish

timfish commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Seems like this was maybe just an oversight before?

@andreiborza
andreiborza merged commit 7e56062 into ab/cpu-usage-without-cpufreq Dec 1, 2026
344 of 351 checks passed
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.

2 participants