]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/pprof: update vendored github.com/google/pprof
authorDmitri Shuralyov <dmitshur@golang.org>
Mon, 26 Jan 2026 16:53:10 +0000 (11:53 -0500)
committerGopher Robot <gobot@golang.org>
Mon, 26 Jan 2026 19:24:11 +0000 (11:24 -0800)
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-20260115054156-294ebfa9ad83
go mod tidy
go mod vendor

Change-Id: Ife3c2d40fa9c34e69cdde27b5c7846e499094abf
Reviewed-on: https://go-review.googlesource.com/c/go/+/739300
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Florian Lehner <lehner.florian86@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>

src/cmd/go.mod
src/cmd/go.sum
src/cmd/vendor/github.com/google/pprof/internal/driver/settings.go
src/cmd/vendor/github.com/google/pprof/internal/driver/svg.go
src/cmd/vendor/github.com/google/pprof/internal/driver/webui.go
src/cmd/vendor/github.com/google/pprof/internal/graph/dotgraph.go
src/cmd/vendor/github.com/google/pprof/internal/report/report.go
src/cmd/vendor/github.com/google/pprof/internal/report/source.go
src/cmd/vendor/github.com/google/pprof/profile/profile.go
src/cmd/vendor/modules.txt

index 3b02794aa8f0246fa55f910d12a2e77db3f824ce..3bc983397186a6a81c0e9e1e0a673b95141595ed 100644 (file)
@@ -3,7 +3,7 @@ module cmd
 go 1.27
 
 require (
-       github.com/google/pprof v0.0.0-20251213031049-b05bdaca462f
+       github.com/google/pprof v0.0.0-20260115054156-294ebfa9ad83
        golang.org/x/arch v0.23.1-0.20260109160903-657d90bd6695
        golang.org/x/build v0.0.0-20260122183339-3ba88df37c64
        golang.org/x/mod v0.32.0
index 987ebe2783e52fa2186eccd223fdec823a9304ef..224585feb6332df7f795937e2620e756dd161e57 100644 (file)
@@ -1,7 +1,7 @@
 github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
 github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
-github.com/google/pprof v0.0.0-20251213031049-b05bdaca462f h1:HU1RgM6NALf/KW9HEY6zry3ADbDKcmpQ+hJedoNGQYQ=
-github.com/google/pprof v0.0.0-20251213031049-b05bdaca462f/go.mod h1:67FPmZWbr+KDT/VlpWtw6sO9XSjpJmLuHpoLmWiTGgY=
+github.com/google/pprof v0.0.0-20260115054156-294ebfa9ad83 h1:z2ogiKUYzX5Is6zr/vP9vJGqPwcdqsWjOt+V8J7+bTc=
+github.com/google/pprof v0.0.0-20260115054156-294ebfa9ad83/go.mod h1:MxpfABSjhmINe3F1It9d+8exIHFvUqtLIRCdOGNXqiI=
 github.com/ianlancetaylor/demangle v0.0.0-20250417193237-f615e6bd150b h1:ogbOPx86mIhFy764gGkqnkFC8m5PJA7sPzlk9ppLVQA=
 github.com/ianlancetaylor/demangle v0.0.0-20250417193237-f615e6bd150b/go.mod h1:gx7rwoVhcfuVKG5uya9Hs3Sxj7EIvldVofAWIUtGouw=
 github.com/yuin/goldmark v1.6.0 h1:boZcn2GTjpsynOsC0iJHnBWa4Bi0qzfJjthwauItG68=
index 5011a066669bbdea08d48ddb46a83021a1dc3d30..a07db37e77b63e74c32e812aba0017129c1ae234 100644 (file)
@@ -90,7 +90,7 @@ func configMenu(fname string, u url.URL) []configMenuEntry {
        result := make([]configMenuEntry, len(configs))
        lastMatch := -1
        for i, cfg := range configs {
-               dst, changed := cfg.config.makeURL(u)
+               dst, changed := cfg.makeURL(u)
                if !changed {
                        lastMatch = i
                }
index 9cbef4d7878f11de21627e78fb6591a24390688a..20832b7d2d20cedc7c0cf127595aad842d972575 100644 (file)
@@ -33,7 +33,7 @@ var (
 func massageSVG(svg string) string {
        // Work around for dot bug which misses quoting some ampersands,
        // resulting on unparsable SVG.
-       svg = strings.Replace(svg, "&;", "&amp;;", -1)
+       svg = strings.ReplaceAll(svg, "&;", "&amp;;")
 
        // Dot's SVG output is
        //
index 568a5cb99a7dbb55244616395036eb4654214e32..a747635c59e3d393f01abdb672c2561083541db9 100644 (file)
@@ -353,7 +353,7 @@ func dotToSvg(dot []byte) ([]byte, error) {
        }
 
        // Fix dot bug related to unquoted ampersands.
-       svg := bytes.Replace(out.Bytes(), []byte("&;"), []byte("&amp;;"), -1)
+       svg := bytes.ReplaceAll(out.Bytes(), []byte("&;"), []byte("&amp;;"))
 
        // Cleanup for embedding by dropping stuff before the <svg> start.
        if pos := bytes.Index(svg, []byte("<svg")); pos >= 0 {
index 09d40fd2c9901773ece5de9201a4c7ab9236eb4b..d704fc4e13b53eaeff33b7d1e5d464f39f710af7 100644 (file)
@@ -384,11 +384,11 @@ func dotColor(score float64, isBackground bool) string {
 func multilinePrintableName(info *NodeInfo) string {
        infoCopy := *info
        infoCopy.Name = escapeForDot(ShortenFunctionName(infoCopy.Name))
-       infoCopy.Name = strings.Replace(infoCopy.Name, "::", `\n`, -1)
+       infoCopy.Name = strings.ReplaceAll(infoCopy.Name, "::", `\n`)
        // Go type parameters are reported as "[...]" by Go pprof profiles.
        // Keep this ellipsis rather than replacing with newlines below.
-       infoCopy.Name = strings.Replace(infoCopy.Name, "[...]", "[…]", -1)
-       infoCopy.Name = strings.Replace(infoCopy.Name, ".", `\n`, -1)
+       infoCopy.Name = strings.ReplaceAll(infoCopy.Name, "[...]", "[…]")
+       infoCopy.Name = strings.ReplaceAll(infoCopy.Name, ".", `\n`)
        if infoCopy.File != "" {
                infoCopy.File = filepath.Base(infoCopy.File)
        }
index ad8b84bf80863850c7b10f76a84da22c830a0690..73a601c3e3fefd02294540ddb487c2e18100a3ad 100644 (file)
@@ -535,7 +535,7 @@ func symbolsFromBinaries(prof *profile.Profile, g *graph.Graph, rx *regexp.Regex
                // the regexp (unless the regexp is an address and the mapping's range covers
                // the address)
                if !fileHasSamplesAndMatched[m.File] {
-                       if address == nil || !(m.Start <= *address && *address <= m.Limit) {
+                       if address == nil || m.Start > *address || *address > m.Limit {
                                continue
                        }
                }
index f17952faee1f0afa48fa882eebeaaebd3411bd96..771f500ec10197f5887f5ad78a4011f8f7697974 100644 (file)
@@ -1066,15 +1066,16 @@ func trimPath(path, trimPath, searchPath string) string {
 func indentation(line string) int {
        column := 0
        for _, c := range line {
-               if c == ' ' {
+               switch c {
+               case ' ':
                        column++
-               } else if c == '\t' {
+               case '\t':
                        column++
                        for column%8 != 0 {
                                column++
                        }
-               } else {
-                       break
+               default:
+                       return column
                }
        }
        return column
index 43f561d445541542b9ea33209e7e891b7f59ad08..18df65a8df3967aa730ec998b829148de7f37a57 100644 (file)
@@ -278,7 +278,7 @@ func (p *Profile) massageMappings() {
 
        // Use heuristics to identify main binary and move it to the top of the list of mappings
        for i, m := range p.Mapping {
-               file := strings.TrimSpace(strings.Replace(m.File, "(deleted)", "", -1))
+               file := strings.TrimSpace(strings.ReplaceAll(m.File, "(deleted)", ""))
                if len(file) == 0 {
                        continue
                }
index b0e53e80ce69149a2fb0513711ce57737216969d..ceed574b32b507bccd53cf3c9914038876df854c 100644 (file)
@@ -1,5 +1,5 @@
-# github.com/google/pprof v0.0.0-20251213031049-b05bdaca462f
-## explicit; go 1.24.9
+# github.com/google/pprof v0.0.0-20260115054156-294ebfa9ad83
+## explicit; go 1.24.0
 github.com/google/pprof/driver
 github.com/google/pprof/internal/binutils
 github.com/google/pprof/internal/driver