Skip to content

Add processor metrics - #10

Merged
samuel-williams-shopify merged 14 commits into
mainfrom
add-interval-sampler
Jul 31, 2026
Merged

Add processor metrics#10
samuel-williams-shopify merged 14 commits into
mainfrom
add-interval-sampler

Conversation

@samuel-williams-shopify

@samuel-williams-shopify samuel-williams-shopify commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add Process::Metrics::Processor for per-process interval CPU measurements
  • report fractional utilization, where one occupied core is 1.0 and multi-core usage can exceed 1.0
  • expose stable process start times from the Linux /proc and portable ps backends so PID reuse establishes a new baseline
  • document the interval semantics and add deterministic coverage for dynamic process sets and invalid deltas

The existing stateless General#processor_utilization percentage remains unchanged. Processor::Sample#utilization is an interval ratio suitable for direct use as ORCA cpu_utilization.

Testing

  • bundle exec sus
  • bundle exec rubocop
  • bundle exec bake decode:index:coverage lib
  • Linux Ruby 3.3 container smoke test against /proc

@samuel-williams-shopify samuel-williams-shopify changed the title Add interval process metrics sampler Add processor metrics sampler Jul 31, 2026
@samuel-williams-shopify samuel-williams-shopify changed the title Add processor metrics sampler Add processor metrics Jul 31, 2026
Assisted-By: devx/56c5beec-347d-4712-9cc7-ea033e4d2a8a
@samuel-williams-shopify
samuel-williams-shopify merged commit fc50467 into main Jul 31, 2026
34 of 39 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.

1 participant