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: duplicate listings in weblist report #10100

mdempsky opened this issue Mar 7, 2015 · 1 comment

cmd/pprof: duplicate listings in weblist report #10100

mdempsky opened this issue Mar 7, 2015 · 1 comment


Copy link

@mdempsky mdempsky commented Mar 7, 2015

When using the interactive "weblist" command, pprof generates multiple reports, one per source file, even though each report contains the same data accumulated across all sources.


go build -gcflags="-cpuprofile=$PWD/cpuprofile.1" -a runtime
cp cpuprofile.1 cpuprofile.2
go tool pprof $(go env GOTOOLDIR)/6g cpuprofile.1 cpuprofile.2

Then try running "list main.main" and "weblist main.main". Notice that weblist shows the same data, but twice because of the two source files.

When you have a lot of source files (e.g., 2000+ from repeatedly building the entire standard library), this makes using weblist impractical, because it constructs the entire report in memory first. (Currently I'm resorting to an ad hoc tool to concatenate CPU profile data.)

@rsc rsc added this to the Go1.5Maybe milestone Apr 10, 2015
Copy link

@rsc rsc commented Jul 14, 2015

Too late for Go 1.5.

@rsc rsc modified the milestones: Unplanned, Go1.5Maybe Jul 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants