Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016aEc8uf7GZbHQHXmoX8o2k
This was referenced Sep 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Without context-switch records,
samply importwrites each main-event sample's period intothreadCPUDeltaas nanoseconds, whatever the event. Forperf record -e cycles, this puts cycle counts into the CPU graph as if they were time.The period now becomes the CPU delta only when the main event is
cpu-clockortask-clock. Other main events get a CPU delta of 0.This changes the Firefox Profiler's CPU graph for imports of non-clock events without context switches: it shows no CPU data instead of wrong values. Imports with context switches and
samply recordare unchanged. The profile interval is unchanged in all cases.cpu-clockandtask-clockevents could not be recorded on the test machine ("Bad event name"), so the clock branch is covered by the unit test only.Posted by Claude Code.
🤖 Generated with Claude Code
https://claude.ai/code/session_016aEc8uf7GZbHQHXmoX8o2k