jlfwong / speedscope

🔬 A fast, interactive web-based viewer for performance profiles.
https://www.speedscope.app
MIT License
5.59k stars 247 forks source link

Be able to click on the scopes at the bottom and jump back to that in the scopes above. #350

Open alecazam opened 3 years ago

alecazam commented 3 years ago

Sometimes, I'm trying to walk up/down the scopes, but the middle scope section has scrolled to some other place. Being able to double-click on the hierarchical scopes from a selected scopes and have that highlight that scope above would allow for better navigation. Currently selecting the other scopes does nothing, and the highlight doesn't shift in the "Time Order" view. That view is big and complex enough, that it's easy to lose where you were at.

jlfwong commented 3 years ago

Are you talking about being able to click on the stack frames here?

image

That shouldn't be too hard. At the moment, if you double click on one of the frames in the main view (so not the bottom view), I think that might do what you want.

alecazam commented 3 years ago

That is the list on the right in the image that you posted. Double click or select in that list then selects the same element and scrolls to rectangle in Time Order view if not on screen. Hover in that list to show the same timings that you show in the Time Order view.

Also keyboard navigation support would help. up/down arrow keys to go up/down that list and the elements in the Sandwich view. I think we'll have to stick with the chrome tracer since we need to see across threads, but will offer this as an option since I love the pinch-zoom pan. Great little tool though.