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

cmd/pprof: SVG profile uses javascript from #10375

alicebob opened this issue Apr 8, 2015 · 4 comments

cmd/pprof: SVG profile uses javascript from #10375

alicebob opened this issue Apr 8, 2015 · 4 comments


Copy link

@alicebob alicebob commented Apr 8, 2015

The .svg profile as generated by pprof's web command includes some Javascript from

the file is linked here:

flagSVGPan: flag.String("svgpan", "", "URL for SVGPan Library"),

I found it surprising to find pprof's SVG has external dependencies. Not just because of tracking reasons (I don't think need to know about my pprof usage), but also because it doesn't always work (e.g. working on a train).

Would it be possible to just include the javascript code verbatim in the .SVG, or otherwise to not include the external link by default?

@minux minux changed the title SVG profile uses javascript from cmd/pprof: SVG profile uses javascript from Apr 8, 2015
@minux minux added the repo-main label Apr 8, 2015
@minux minux added this to the Go1.5 milestone Apr 8, 2015
Copy link

@dr2chase dr2chase commented Apr 8, 2015

I note that the referenced code has a claimed-to-be-BSD license -- source/binary use and redistribution allowed with attribution and NO-WARRANTY.

@rsc rsc removed the repo-main label Apr 14, 2015
Copy link

@rsc rsc commented Apr 27, 2015

The old Perl pprof (in Go 1.3) copied this code directly into the generated SVG.
The port to Go erred by trying to avoid this duplication and use a link.
The Go version of pprof will be updated to do what the Perl pprof did.

Thank you for the report.

@rsc rsc self-assigned this Apr 27, 2015
Copy link

@gopherbot gopherbot commented Jun 4, 2015

CL mentions this issue.

@rsc rsc closed this in 14da5be Jun 5, 2015
Copy link
Contributor Author

@alicebob alicebob commented Jun 5, 2015

Looks great. Thanks!

@golang golang locked and limited conversation to collaborators Jun 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.