Skip to content

Normalize processor utilization - #12

Merged
samuel-williams-shopify merged 1 commit into
mainfrom
fix-linux-processor-utilization
Aug 2, 2026
Merged

Normalize processor utilization#12
samuel-williams-shopify merged 1 commit into
mainfrom
fix-linux-processor-utilization

Conversation

@samuel-williams-shopify

@samuel-williams-shopify samuel-williams-shopify commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • restore Linux General#processor_utilization using cumulative processor and elapsed time
  • normalize both Linux /proc and ps pcpu results to core units, where 1.0 represents one fully occupied CPU core
  • document that utilization is not bounded to 0.0..1.0 and may exceed 1.0 for multi-threaded processes
  • add deterministic coverage for conversion of ps pcpu percentages and regenerate the agent context

Testing

  • bundle exec bake test
  • bundle exec rubocop (36 files, no offenses)
  • bundle exec bake decode:index:coverage lib (41/41 public definitions documented)
  • git diff --check

@samuel-williams-shopify
samuel-williams-shopify force-pushed the fix-linux-processor-utilization branch from 05a34dc to 96f36c7 Compare August 1, 2026 10:48
@samuel-williams-shopify
samuel-williams-shopify force-pushed the fix-linux-processor-utilization branch from 96f36c7 to b393ec3 Compare August 2, 2026 22:01
@samuel-williams-shopify samuel-williams-shopify changed the title Restore Linux processor utilization Normalize processor utilization Aug 2, 2026
@samuel-williams-shopify
samuel-williams-shopify merged commit b3a27a1 into main Aug 2, 2026
34 of 40 checks passed
@ioquatix
ioquatix deleted the fix-linux-processor-utilization branch August 2, 2026 22:22
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