Skip to content

Commit

Permalink
fix split and upload fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
kolesnikovae committed Feb 21, 2024
1 parent a8683a2 commit 9391970
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pprof/fix_go_heap_truncated.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func split(p *profilev1.Profile) ([]*profilev1.Sample, []int) {
const avgGroupSize = 16 // Estimate.
groups := make([]int, 0, len(samples)/avgGroupSize)
var prev []byte
for i := 1; i < len(samples); i++ {
for i := 0; i < len(samples); i++ {
cur := suffix(samples[i].LocationId)
if !bytes.Equal(cur, prev) {
groups = append(groups, i)
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 9391970

Please sign in to comment.