Skip to content

Some proposed tweaks for process gpu and cpu stats - #574

Open
vjr wants to merge 1 commit into
stsdc/process-gpufrom
vishal/fix-dgpu-igpu-combo
Open

vjr wants to merge 1 commit into
stsdc/process-gpufrom
vishal/fix-dgpu-igpu-combo

Conversation

@vjr

@vjr vjr commented Sep 18, 2026

Copy link
Copy Markdown
Member

In ProcessDRM.vala:

  • Don't aggressively reset gpu_percentage back to zero.
  • In calculate_percentage_ns () guard against negative results.

In ProcessTreeView.vala and model/data:

  • Preserve cpu/gpu percentages as double - avoid cast to int.
  • Display cpu/gpu percentages with two decimal places (format "%.2f") so as to not confuse people thinking all percentages look like zero.

In test_process_drm.vala:

  • I'm unsure if exact comparison double == -1.0 will work, so check double < 0 instead?

In ProcessDRM.vala:
 - Don't aggressively reset gpu_percentage back to zero.
 - In calculate_percentage_ns () guard against negative results.

In ProcessTreeView.vala and model/data:
 - Preserve cpu/gpu percentages as double - avoid cast to int.
 - Display cpu/gpu percentages with two decimal places (format "%0.2f") so as to not confuse people thinking all percentages look like zero.

In test_process_drm.vala:
 - Unsure if exact comparison double == -1.0 will work, so check double < 0 instead?

Thank you for your attention to this matter!
@vjr
vjr requested a review from stsdc September 18, 2026 14:49
@vjr vjr self-assigned this Sep 18, 2026
@vjr
vjr added this pull request to stack #575 September 18, 2026 14:49
@vjr
vjr requested review from a team and danirabbit September 18, 2026 14:49
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