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 pdata function table order #286

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

korniltsev
Copy link

@korniltsev korniltsev commented Dec 20, 2024

The code used to rely on map iteration order which is unpredictable and results in random flamegraphs for ontarget symbolized functions.
In this PR we switch to building a properly ordered function table slice.

Before: https://flamegraph.com/share/7ea36b00-bee5-11ef-9832-26c3e5347170
After: https://flamegraph.com/share/522fade3-bee5-11ef-9832-26c3e5347170

@korniltsev korniltsev requested review from a team as code owners December 20, 2024 15:18
@liad-miggo
Copy link

Indeed fixed the problem!
LGTM

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