-
Notifications
You must be signed in to change notification settings - Fork 21
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(godeltaprof): fix mutex tests on gotip #108
Conversation
yey, green light \M/ |
6c4afd9
to
5c31860
Compare
5c31860
to
65a479d
Compare
The delta bench became slower by 20-50% |
Ok, I understand now: the benchmarks were using different randomized testdata. Fixed.
So it looks like the cost of deduplication is about 5% of overall time(including compression), which is not that bad. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Nice job!
Fixes #103
This PR fixes an issue when a heap/mutex profile has a record with equal stack (by accumulating values for duplicate stacks before delta computation).
The issue was found in tests for mutex(golang started to produce two profile records for the same mutex ( see the linked issue for more info))
I'm not sure if it is possible to trigger the issue for heap.
The PR turned up big because of refactored test helpers for reuse. I can split PR into 2 or 3 smaller ones if needed.
This PR also drops support for go16, go17 as I wanted to use generics in
prof/map.go
So it looks like the cost of deduplication is about 5% of overall time(including compression), which is not that bad.