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

Track source from profile disassembly view #168

Merged

Conversation

grahambates
Copy link
Contributor

This adds a mode in the profiler to enable following the timeline position in source files as well as disassembly. It's similar to how it works in the objdump editor when you disassemble an elf file. When this mode is enabled, scrubbing the timeline position on the flame graph will scroll through source locations in the right hand editor. This is similar to what @rjobling proposed in issue #99.

image

I've also added a toggle for the register overlay in the disassembly tab using the same UI pattern. I thought it was useful to be able to disable this when it's obscuring the disassembly content.

image

@grahambates
Copy link
Contributor Author

@BartmanAbyss are you unsure about this change or do you just need time to review and test? Let me know if there's anything I can do or if you want to discuss.

I'm aware that I'm bombarding you with PRs at the moment and I hope you're ok with this! I've just been pushing fixes and improvements as they've come up while using the extension and I've been aiming to provide working solutions rather than raising issues that create work for you. Is this the best way to collaborate or would you prefer some more upfront discussion?

@BartmanAbyss BartmanAbyss merged commit 0c58fb3 into BartmanAbyss:master Nov 13, 2022
@BartmanAbyss
Copy link
Owner

It's all good. Was just a little busy this week and wanted to test this PR first.
I appreciate all the improvements you contribute.

@grahambates grahambates deleted the disasm_track_source_in_profile branch November 13, 2022 16:46
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