From 98bae340bfd9cc7166b1a3d87c48e883eca26a61 Mon Sep 17 00:00:00 2001 From: Frederic Branczyk Date: Sat, 5 Aug 2023 13:10:09 +0200 Subject: [PATCH] pkg/query: Replace remaining slices.Clone Same as https://github.com/parca-dev/parca/pull/3552 --- pkg/query/flamegraph_arrow.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/query/flamegraph_arrow.go b/pkg/query/flamegraph_arrow.go index 3bbe3e20920..6cb21bb71ed 100644 --- a/pkg/query/flamegraph_arrow.go +++ b/pkg/query/flamegraph_arrow.go @@ -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" @@ -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