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

Improve hermes profile frame keys to better group frames #459

Merged
merged 3 commits into from
Dec 28, 2023

Conversation

zacharyfmarion
Copy link
Contributor

@zacharyfmarion zacharyfmarion commented Dec 27, 2023

Because all args are serialized in the key for hermes profiles, frames were not properly getting grouped since the "parent" property was different. This PR ensures that the frame key is properly constructed from the function name, file name, line + column number.

Before After
Screenshot 2023-12-27 at 2 25 32 PM Screenshot 2023-12-27 at 2 26 02 PM
Screenshot 2023-12-27 at 2 13 37 PM Screenshot 2023-12-27 at 2 14 20 PM

@zacharyfmarion
Copy link
Contributor Author

@jlfwong one more for you before we start thinking about communicating this out 😅

@coveralls
Copy link

Coverage Status

coverage: 43.535% (+0.006%) from 43.529%
when pulling cd0167b on zacharyfmarion:zac/better-frame-key
into 3f3da22 on jlfwong:main.

@jlfwong
Copy link
Owner

jlfwong commented Dec 28, 2023

Looks good! If you update the PR name to give this a more descriptive name for the commit log, I'll merge

@zacharyfmarion zacharyfmarion changed the title Zac/better frame key Impeove hermes profile frame keys to better group frames Dec 28, 2023
@zacharyfmarion zacharyfmarion changed the title Impeove hermes profile frame keys to better group frames Improve hermes profile frame keys to better group frames Dec 28, 2023
@zacharyfmarion
Copy link
Contributor Author

@jfwong updated, I always miss something 😃

@jlfwong jlfwong merged commit e9a17d5 into jlfwong:main Dec 28, 2023
6 checks passed
@jlfwong
Copy link
Owner

jlfwong commented Dec 28, 2023

@zacharyfmarion you also fix things so fast it doesn't matter much 😄

@jlfwong
Copy link
Owner

jlfwong commented Dec 28, 2023

Published as v1.19.0 and deployed to https://www.speedscope.app/

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

3 participants