Skip to content

profiles: improve sample_type comment#1

Merged
florianl merged 1 commit intoflorianl:issue-633from
felixge:push-zuvkovzllrrk
May 27, 2025
Merged

profiles: improve sample_type comment#1
florianl merged 1 commit intoflorianl:issue-633from
felixge:push-zuvkovzllrrk

Conversation

@felixge
Copy link
Copy Markdown

@felixge felixge commented May 11, 2025

I think using nanoseconds is the better default unit for CPU profiles
because the weight of a count can be different depending on the sample
rate.

Using the same unit for off_cpu and cpu is more consistent.

The comment above was a little confusing, since it referred only to a
cpu profile, but was then followed by an off_cpu profile sample as well.
@felixge felixge changed the title profiles: use single Profile.sample_type profiles: improve sample_type comment May 11, 2025
@florianl florianl merged commit 37962b4 into florianl:issue-633 May 27, 2025
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.

2 participants