| | cmd/pprof: add Go implementation Update issue 8798 This is a new implementation of pprof, written in Go instead of in Perl. It was written primarily by Raul Silvera and is in use for profiling programs of all languages inside Google. The internal structure is a bit package-heavy, but it matches the copy used inside Google, and since it is in an internal directory, we can make changes to it later if we need to. The only "new" file here is src/cmd/pprof/pprof.go, which stitches together the Google pprof and the Go command libraries for object file access. I am explicitly NOT interested in style or review comments on the rest of the files (that is, src/cmd/pprof/internal/...). Those are intended to stay as close to the Google copies as possible, like we did with the pprof Perl script. Still to do: - Basic tests. - Real command documentation. - Hook up disassemblers. Total comments: 21 Total comments: 1 | Unified diffs | Side-by-side diffs | Delta from patch set | Stats (+7728 lines, -0 lines) | Patch |  | A | src/cmd/pprof/internal/commands/commands.go | View | 1 2 | 1 chunk | +197 lines, -0 lines | 0 comments | Download |  | A | src/cmd/pprof/internal/driver/driver.go | View | 1 2 | 1 chunk | +1036 lines, -0 lines | 0 comments | Download |  | A | src/cmd/pprof/internal/driver/interactive.go | View | 1 2 | 1 chunk | +492 lines, -0 lines | 0 comments | Download |  | A | src/cmd/pprof/internal/fetch/fetch.go | View | 1 2 | 1 chunk | +82 lines, -0 lines | 0 comments | Download |  | A | src/cmd/pprof/internal/plugin/plugin.go | View | 1 2 | 1 chunk | +213 lines, -0 lines | 0 comments | Download |  | A | src/cmd/pprof/internal/profile/encode.go | View | 1 2 | 1 chunk | +470 lines, -0 lines | 0 comments | Download |  | A | src/cmd/pprof/internal/profile/filter.go | View | 1 2 | 1 chunk | +157 lines, -0 lines | 0 comments | Download |  | A | src/cmd/pprof/internal/profile/legacy_profile.go | View | 1 2 | 1 chunk | +1250 lines, -0 lines | 0 comments | Download |  | A | src/cmd/pprof/internal/profile/profile.go | View | 1 2 | 1 chunk | +567 lines, -0 lines | 0 comments | Download |  | A | src/cmd/pprof/internal/profile/proto.go | View | 1 2 | 1 chunk | +298 lines, -0 lines | 0 comments | Download |  | A | src/cmd/pprof/internal/profile/prune.go | View | 1 2 | 1 chunk | +97 lines, -0 lines | 0 comments | Download |  | A | src/cmd/pprof/internal/report/report.go | View | 1 2 | 1 chunk | +1718 lines, -0 lines | 0 comments | Download |  | A | src/cmd/pprof/internal/report/source.go | View | 1 2 | 1 chunk | +450 lines, -0 lines | 0 comments | Download |  | A | src/cmd/pprof/internal/report/source_html.go | View | 1 2 | 1 chunk | +77 lines, -0 lines | 0 comments | Download |  | A | src/cmd/pprof/internal/svg/svg.go | View | 1 2 | 1 chunk | +75 lines, -0 lines | 0 comments | Download |  | A | src/cmd/pprof/internal/symbolizer/symbolizer.go | View | 1 2 | 1 chunk | +191 lines, -0 lines | 0 comments | Download |  | A | src/cmd/pprof/internal/symbolz/symbolz.go | View | 1 2 | 1 chunk | +111 lines, -0 lines | 0 comments | Download |  | A | src/cmd/pprof/internal/tempfile/tempfile.go | View | 1 2 | 1 chunk | +45 lines, -0 lines | 0 comments | Download |  | A | src/cmd/pprof/pprof.go | View | 1 2 3 4 | 1 chunk | +202 lines, -0 lines | 0 comments | Download | Total messages: 15 |