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

Link display to source code #410

Open
jvahue opened this issue Nov 15, 2022 · 3 comments
Open

Link display to source code #410

jvahue opened this issue Nov 15, 2022 · 3 comments

Comments

@jvahue
Copy link

jvahue commented Nov 15, 2022

It would be nice if I could be scanning down the stack and somehow get to the actual source code line being referenced. When looking at the trace it's cumbersome to have to manually go back to the code to see what line the trace is referring to. Some kind of setup file to link an editor with a cmd line syntax for that editor to open a file and go to that line would be great.

Possible double clicking on the item in the summary statistics takes you to the code it is referencing.

@technicalpickles
Copy link

This would be super useful. I find myself having to copy & paste the file path, and open manually in an editor or on GitHub.

Some kind of setup file to link an editor with a cmd line syntax for that editor to open a file and go to that line would be great.

Some editors register URI-handlers, ie for VS Code, plugins can register they will handle vscode:// URLs: https://github.com/microsoft/vscode-extension-samples/tree/main/uri-handler-sample

It might also be possible to configure a mapping, where if a file path is starts with /app/, and you configure a GitHub user/repo/sha, then you can construct a URL to go directly to it.

@sransara
Copy link

sransara commented Oct 12, 2023

Just pushed an update in my Speedscope in VSCode extension to support rudimentary linking support from the detail view.

Many thanks to @jlfwong for the awesome tool.

@jlfwong
Copy link
Owner

jlfwong commented Oct 12, 2023

@sransara Coool! Thanks for sharing this!

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

No branches or pull requests

4 participants