This is an archive of the discontinued LLVM Phabricator instance.

[llvm-gsymutil] Fix tracking of currently open file
ClosedPublic

Authored by vikmik on Aug 29 2022, 11:42 PM.

Details

Summary

Prior to this change, CurrentGSYMPath was never updated. As a consequence, the GSYM file was reopened for every frame, even if all frames were relative to the same GSYM file.

This change brings a 13x speedup on a test I'm doing (symbolizing ~25K frames from libxul)

(This is my first-ever LLVM change - sorry if I missed something in the process!)

Diff Detail

Event Timeline

vikmik created this revision.Aug 29 2022, 11:42 PM
vikmik created this object with edit policy "vikmik (Victor Michel)".
Herald added a project: Restricted Project. · View Herald TranscriptAug 29 2022, 11:42 PM
vikmik requested review of this revision.Aug 29 2022, 11:42 PM
This comment was removed by vikmik.
vikmik edited the summary of this revision. (Show Details)Aug 30 2022, 3:54 AM

I can't seem to accept this revision, but looks good to me.

vikmik changed the edit policy from "vikmik (Victor Michel)" to "All Users".Aug 30 2022, 12:41 PM

I can't seem to accept this revision, but looks good to me.

Oops. I hadn't used phabricator for 6 years - fixed! You should be able to accept now.
Thanks!

clayborg accepted this revision.Aug 30 2022, 2:54 PM
This revision is now accepted and ready to land.Aug 30 2022, 2:54 PM

@vikmik Thanks a lot for fixing this!

simon.giesecke accepted this revision.Aug 31 2022, 3:33 AM
vikmik added a comment.Sep 1 2022, 3:59 PM

Thanks @clayborg & @simon.giesecke :)
I don't think I have access to push this myself to the main branch - is either of you able to do this? Thanks!

smeenai added a subscriber: smeenai.Oct 3 2022, 1:14 PM

What name and email would you like this committed under?

vikmik added a comment.EditedOct 3 2022, 5:42 PM

@smeenai you can use "Victor Michel" / [redacted]@gmail.com

Thank you!

This revision was automatically updated to reflect the committed changes.