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

fix(jfr): merge equal samples #2652

Merged
merged 3 commits into from
Nov 7, 2023
Merged

fix(jfr): merge equal samples #2652

merged 3 commits into from
Nov 7, 2023

Conversation

korniltsev
Copy link
Collaborator

@korniltsev korniltsev commented Nov 7, 2023

Before this PR a long running profile could contain N equal samples with value=1
After this PR we use jfr stacktrace id (StackTraceRef) to find equal samples and add values to an existing sample, giving us just one sample with value=N

This will produces smalle pprofs and make it faster, especially for long running profiles

@korniltsev korniltsev requested a review from a team as a code owner November 7, 2023 11:09
Copy link
Collaborator

@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

@korniltsev korniltsev merged commit f4b0a60 into main Nov 7, 2023
16 checks passed
@korniltsev korniltsev deleted the jfr-pprof-unique-samples branch November 7, 2023 11:23
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.

None yet

2 participants