diff options
| author | Dmitri Shuralyov <dmitshur@golang.org> | 2025-02-11 18:08:32 -0500 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-02-12 20:49:10 -0800 |
| commit | f2cadb6b2e589247be6730e8cb13c23d88450fbf (patch) | |
| tree | bfd23204cb5505d6adc53e4de5250ef5fcc7eb83 /src/cmd/vendor/github.com/google/pprof/internal/driver | |
| parent | 679cd8e7798db593d0973519f6d3ee7ea7659142 (diff) | |
| download | go-f2cadb6b2e589247be6730e8cb13c23d88450fbf.tar.xz | |
cmd/pprof: update vendored github.com/google/pprof [generated]
Pull in the latest published version of github.com/google/pprof
as part of the continuous process of keeping Go's dependencies
up to date.
For #36905.
[git-generate]
cd src/cmd
go get github.com/google/pprof@v0.0.0-20250208200701-d0013a598941
go mod tidy
go mod vendor
Change-Id: I87e5621286d3db85f358fb86875aaf65bd7811a9
Reviewed-on: https://go-review.googlesource.com/c/go/+/648916
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Diffstat (limited to 'src/cmd/vendor/github.com/google/pprof/internal/driver')
| -rw-r--r-- | src/cmd/vendor/github.com/google/pprof/internal/driver/html/stacks.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/vendor/github.com/google/pprof/internal/driver/html/stacks.js b/src/cmd/vendor/github.com/google/pprof/internal/driver/html/stacks.js index 484c2d7590..7db06996da 100644 --- a/src/cmd/vendor/github.com/google/pprof/internal/driver/html/stacks.js +++ b/src/cmd/vendor/github.com/google/pprof/internal/driver/html/stacks.js @@ -135,7 +135,9 @@ function stackViewer(stacks, nodes) { } // Update params to include src. - let v = pprofQuoteMeta(stacks.Sources[src].FullName); + // When `pprof` is invoked with `-lines`, FullName will be suffixed with `:<line>`, + // which we need to remove. + let v = pprofQuoteMeta(stacks.Sources[src].FullName.replace(/:[0-9]+$/, '')); if (param != 'f' && param != 'sf') { // old f,sf values are overwritten // Add new source to current parameter value. const old = params.get(param); |
