mirror of
https://github.com/golang/go.git
synced 2026-01-29 07:02:05 +03:00
cmd/pprof: update vendored github.com/google/pprof
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>
This commit is contained in:
committed by
Gopher Robot
parent
b04e7f31c8
commit
cffd7a3ec4
@@ -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
|
||||
|
||||
@@ -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=
|
||||
|
||||
2
src/cmd/vendor/github.com/google/pprof/internal/driver/settings.go
generated
vendored
2
src/cmd/vendor/github.com/google/pprof/internal/driver/settings.go
generated
vendored
@@ -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
|
||||
}
|
||||
|
||||
2
src/cmd/vendor/github.com/google/pprof/internal/driver/svg.go
generated
vendored
2
src/cmd/vendor/github.com/google/pprof/internal/driver/svg.go
generated
vendored
@@ -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, "&;", "&;", -1)
|
||||
svg = strings.ReplaceAll(svg, "&;", "&;")
|
||||
|
||||
// Dot's SVG output is
|
||||
//
|
||||
|
||||
2
src/cmd/vendor/github.com/google/pprof/internal/driver/webui.go
generated
vendored
2
src/cmd/vendor/github.com/google/pprof/internal/driver/webui.go
generated
vendored
@@ -353,7 +353,7 @@ func dotToSvg(dot []byte) ([]byte, error) {
|
||||
}
|
||||
|
||||
// Fix dot bug related to unquoted ampersands.
|
||||
svg := bytes.Replace(out.Bytes(), []byte("&;"), []byte("&;"), -1)
|
||||
svg := bytes.ReplaceAll(out.Bytes(), []byte("&;"), []byte("&;"))
|
||||
|
||||
// Cleanup for embedding by dropping stuff before the <svg> start.
|
||||
if pos := bytes.Index(svg, []byte("<svg")); pos >= 0 {
|
||||
|
||||
6
src/cmd/vendor/github.com/google/pprof/internal/graph/dotgraph.go
generated
vendored
6
src/cmd/vendor/github.com/google/pprof/internal/graph/dotgraph.go
generated
vendored
@@ -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)
|
||||
}
|
||||
|
||||
2
src/cmd/vendor/github.com/google/pprof/internal/report/report.go
generated
vendored
2
src/cmd/vendor/github.com/google/pprof/internal/report/report.go
generated
vendored
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
9
src/cmd/vendor/github.com/google/pprof/internal/report/source.go
generated
vendored
9
src/cmd/vendor/github.com/google/pprof/internal/report/source.go
generated
vendored
@@ -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
|
||||
|
||||
2
src/cmd/vendor/github.com/google/pprof/profile/profile.go
generated
vendored
2
src/cmd/vendor/github.com/google/pprof/profile/profile.go
generated
vendored
@@ -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
|
||||
}
|
||||
|
||||
4
src/cmd/vendor/modules.txt
vendored
4
src/cmd/vendor/modules.txt
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user