Skip to content

Commit

Permalink
pkg/query: Replace remaining slices.Clone
Browse files Browse the repository at this point in the history
Same as #3552
  • Loading branch information
brancz committed Aug 5, 2023
1 parent 2d6b35a commit 98bae34
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/query/flamegraph_arrow.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
"github.com/polarsignals/frostdb/pqarrow/builder"
"go.opentelemetry.io/otel/trace"
"golang.org/x/exp/maps"
"golang.org/x/exp/slices"

queryv1alpha1 "github.com/parca-dev/parca/gen/proto/go/parca/query/v1alpha1"
"github.com/parca-dev/parca/pkg/profile"
Expand Down Expand Up @@ -351,7 +350,7 @@ func generateFlamegraphArrowRecord(ctx context.Context, mem memory.Allocator, tr
fb.builderCumulative.Add(cr, r.Value.Value(i))
// Continue with this row as the parent for the next iteration and compare to its children.
fb.parent.Set(cr)
compareRows = slices.Clone(fb.children[cr])
compareRows = copyChildren(fb.children[cr])
continue stacktraces
}
// reset the compare rows
Expand Down

0 comments on commit 98bae34

Please sign in to comment.