Skip to content
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

feat: adds support for goroutines, mutex and block profiling #15

Merged
merged 1 commit into from
Jun 27, 2022

Conversation

petethepig
Copy link
Member

TODO: add documentation for these. Describe how to enable mutex and block profiling in particular.

Copy link
Contributor

@kolesnikovae kolesnikovae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines +296 to +307
SampleTypeConfig: map[string]*upstream.SampleType{
"contentions": {
DisplayName: "mutex_count",
Units: "lock_samples",
Cumulative: true,
},
"delay": {
DisplayName: "mutex_duration",
Units: "lock_nanoseconds",
Cumulative: true,
},
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm slightly concerned with the fact that contentions and delay sample types can't be enabled separately – for example, if a user specifies ProfileMutexCount they might not expect samples of ProfileMutexDuration to be collected. We have a similar problem with memory profile types: #13.

@petethepig petethepig merged commit 72c28da into main Jun 27, 2022
@petethepig petethepig deleted the new-types branch June 27, 2022 21:07
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