8000 Feature request: embed full input in URL · Issue #489 · jlfwong/speedscope · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Feature request: embed full input in URL #489
Open
@SyntaxColoring

Description

@SyntaxColoring

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.

Metadata

Metadata

Assignees

No one assigned

    Label 322E s

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0