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

Feature request: embed full input in URL #489

Open
SyntaxColoring opened this issue Dec 18, 2024 · 0 comments
Open

Feature request: embed full input in URL #489

SyntaxColoring opened this issue Dec 18, 2024 · 0 comments

Comments

@SyntaxColoring
Copy link

SyntaxColoring commented Dec 18, 2024

Right now, to show someone a profile on speedscope, I either have to:

  • Give them my trace file and have them import it into speedscope
  • Upload my trace file somewhere (e.g. GitHub Gist) and send them a speedscope link with a #profileURL fragment

I'd like to be able to embed the input directly into the URL, like http://speedscope.app#profileBlob=<URL-encoded file contents>. This would let me give people links that they can check out without any extra steps and without depending on 3rd-party services. It would also make it easy for tools—say, CI workflows—to output speedscope links.

The traces that I work with are ~500 kB. Chrome supposedly allows URLs as big as 2 MB, though I haven't tested this.

I've tried a data: URL, like this:

https://www.speedscope.app/#profileURL=data:text/plain;charset=utf-8;base64,cm9ib3Rfc2VydmVyLmFwcDty...

But speedscope gives me a "something went wrong" error and I see this in the console:

Failed to load resource: net::ERR_INVALID_URL

speedscope.6f107512.js:183 Failed to load format TypeError: Failed to fetch

If this feature sounds good, I'm happy to try working on it.

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

1 participant