From 91f8abee91ed8c386b2862b62c4bdb8d200ec78c Mon Sep 17 00:00:00 2001 From: "red-hat-konflux[bot]" <126015336+red-hat-konflux[bot]@users.noreply.github.com> Date: Sun, 8 Nov 2026 01:30:45 +0000 Subject: [PATCH] chore(deps): update github.com/google/pprof digest to 4bf881d Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com> --- go.mod | 2 +- go.sum | 4 +- .../github.com/google/pprof/profile/encode.go | 39 +++++++++++++++---- vendor/modules.txt | 2 +- 4 files changed, 35 insertions(+), 12 deletions(-) diff --git a/go.mod b/go.mod index 71dd4f511..270a53393 100644 --- a/go.mod +++ b/go.mod @@ -111,7 +111,7 @@ require ( github.com/google/go-github/v69 v69.2.0 // indirect github.com/google/go-github/v88 v88.0.0 // indirect github.com/google/go-querystring v1.2.0 // indirect - github.com/google/pprof v0.0.0-20261026192309-dbd0ed30aa88 // indirect + github.com/google/pprof v0.0.0-20261105003125-4bf881d7fb0b // indirect github.com/hashicorp/go-version v1.9.0 // indirect github.com/huandu/xstrings v1.5.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect diff --git a/go.sum b/go.sum index 9cf3c2088..bae9928d2 100644 --- a/go.sum +++ b/go.sum @@ -261,8 +261,8 @@ github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/ github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20261026192309-dbd0ed30aa88 h1:BnzMe/RUfFezpFwXsOWHmSMNO8qt7755OL25C+AezGQ= -github.com/google/pprof v0.0.0-20261026192309-dbd0ed30aa88/go.mod h1:yUo1AMMpsPIDFGuwDK8nLcf8+vvAd5l2O6JDZ6hpwrM= +github.com/google/pprof v0.0.0-20261105003125-4bf881d7fb0b h1:5NKFt6kcAJNVt3XBOf8jwp8TnWZVOZFmmGkK0XextI4= +github.com/google/pprof v0.0.0-20261105003125-4bf881d7fb0b/go.mod h1:yUo1AMMpsPIDFGuwDK8nLcf8+vvAd5l2O6JDZ6hpwrM= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.1-0.20241114170450-2d3c2a9cc518 h1:UBg1xk+oAsIVbFuGg6hdfAm7EvCv3EL80vFxJNsslqw= github.com/google/uuid v1.6.1-0.20241114170450-2d3c2a9cc518/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= diff --git a/vendor/github.com/google/pprof/profile/encode.go b/vendor/github.com/google/pprof/profile/encode.go index 8ce9d3cf3..3af74d445 100644 --- a/vendor/github.com/google/pprof/profile/encode.go +++ b/vendor/github.com/google/pprof/profile/encode.go @@ -321,9 +321,29 @@ func (p *Profile) postDecode() error { for _, s := range p.Sample { if len(s.labelX) > 0 { - labels := make(map[string][]string, len(s.labelX)) - numLabels := make(map[string][]int64, len(s.labelX)) - numUnits := make(map[string][]string, len(s.labelX)) + var numStr, numNum, numUnit int + for _, l := range s.labelX { + if l.strX != 0 { + numStr++ + } else if l.numX != 0 || l.unitX != 0 { + numNum++ + if l.unitX != 0 { + numUnit++ + } + } + } + var labels map[string][]string + if numStr > 0 { + labels = make(map[string][]string, numStr) + } + var numLabels map[string][]int64 + if numNum > 0 { + numLabels = make(map[string][]int64, numNum) + } + var numUnits map[string][]string + if numUnit > 0 { + numUnits = make(map[string][]string, numUnit) + } for _, l := range s.labelX { var key, value string key, err = getString(p.stringTable, &l.keyX, err) @@ -332,10 +352,10 @@ func (p *Profile) postDecode() error { labels[key] = append(labels[key], value) } else if l.numX != 0 || l.unitX != 0 { numValues := numLabels[key] - units := numUnits[key] if l.unitX != 0 { var unit string unit, err = getString(p.stringTable, &l.unitX, err) + units := numUnits[key] units = padStringArray(units, len(numValues)) numUnits[key] = append(units, unit) } @@ -347,14 +367,17 @@ func (p *Profile) postDecode() error { } if len(numLabels) > 0 { s.NumLabel = numLabels - for key, units := range numUnits { - if len(units) > 0 { - numUnits[key] = padStringArray(units, len(numLabels[key])) + if len(numUnits) > 0 { + for key, units := range numUnits { + if len(units) > 0 { + numUnits[key] = padStringArray(units, len(numLabels[key])) + } } + s.NumUnit = numUnits } - s.NumUnit = numUnits } } + s.labelX = nil s.Location = locBuffer[:len(s.locationIDX)] locBuffer = locBuffer[len(s.locationIDX):] diff --git a/vendor/modules.txt b/vendor/modules.txt index c632bb005..e1b827fd6 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -492,7 +492,7 @@ github.com/google/go-github/v88/github # github.com/google/go-querystring v1.2.0 ## explicit; go 1.13 github.com/google/go-querystring/query -# github.com/google/pprof v0.0.0-20261026192309-dbd0ed30aa88 +# github.com/google/pprof v0.0.0-20261105003125-4bf881d7fb0b ## explicit; go 1.26.0 github.com/google/pprof/profile # github.com/google/uuid v1.6.1-0.20241114170450-2d3c2a9cc518