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

pkg/parca: Add e2e test for Go PGO #2520

Merged
merged 1 commit into from
Feb 15, 2023
Merged

pkg/parca: Add e2e test for Go PGO #2520

merged 1 commit into from
Feb 15, 2023

Conversation

brancz
Copy link
Member

@brancz brancz commented Feb 3, 2023

Add a test to ensure that the data exported by Parca can be used by Go's newly added profile-guided optimizations (PGO).

While testing this I realized that the functionality currently expects the samples count to be on index position 1 (understandable since that's where the runtime-generated profiles have it). But Parca takes the profiles apart and only returns a single sample type, therefore it currently panics, which is why this patch includes the small fix for the pprof profile. An issue has already been filed upstream: golang/go#58292

Copy link
Member

@kakkoyun kakkoyun left a comment

Choose a reason for hiding this comment

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

LGTM.

I think we just need to appease the linter and we should merge it.

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.

3 participants