-
Notifications
You must be signed in to change notification settings - Fork 450
Add experimental sampling interval tracks per process #5719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add experimental sampling interval tracks per process #5719
Conversation
Add a new experimental feature to visualize sampling intervals within each process. This helps identify when samples were missed, delayed, or when there are variations in sampling frequency. The feature is similar to experimental.enableProcessCPUTracks() and can be enabled via the console with: experimental.enableSamplingIntervalTracks() Implementation details: - Add 'sampling-interval' LocalTrack type - Create TrackSamplingInterval and TrackSamplingIntervalGraph components - Implement canvas rendering with max-min decimation optimization - Add hover tooltips showing actual vs expected sampling intervals - Include hover dot indicator for currently inspected sample
fqueze
commented
Dec 14, 2025
Screenshot of a case where this helped figure out that there was a connection between spikes in the power track and changes in sampling rate:
image
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@ ## main #5719 +/- ## ========================================== - Coverage 85.62% 84.93% -0.70% ========================================== Files 312 315 +3 Lines 30880 31288 +408 Branches 8504 8511 +7 ========================================== + Hits 26441 26574 +133 - Misses 4009 4284 +275 Partials 430 430 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Add a new experimental feature to visualize sampling intervals within each process. This helps identify when samples were missed, delayed, or when there are variations in sampling frequency.
The feature is similar to experimental.enableProcessCPUTracks() and can be enabled via the console with:
experimental.enableSamplingIntervalTracks()
Implementation details:
Example power profile where I was interested in seeing inconsistencies in sampling rate from the power meter: https://share.firefox.dev/48U79KE
Example Firefox profile with lots of missing samples: https://share.firefox.dev/4p5d8mc