From c545c8c96bccd2056b37f8d3a181d5da35af75b4 Mon Sep 17 00:00:00 2001 From: Joseph Crail Date: Tue, 19 Apr 2022 09:21:19 -0700 Subject: [PATCH] Fix flamegraph config after 8.1 upgrade (#65) --- package.json | 2 +- .../profiling/public/components/flamegraph.tsx | 13 +++---------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 1ef321f66f4669..2365b5436c4f91 100644 --- a/package.json +++ b/package.json @@ -988,4 +988,4 @@ "yargs": "^15.4.1", "zlib": "^1.0.5" } -} \ No newline at end of file +} diff --git a/src/plugins/profiling/public/components/flamegraph.tsx b/src/plugins/profiling/public/components/flamegraph.tsx index 85ee76ad3ce8cc..0b81ceb06c0cfe 100644 --- a/src/plugins/profiling/public/components/flamegraph.tsx +++ b/src/plugins/profiling/public/components/flamegraph.tsx @@ -57,18 +57,11 @@ export const FlameGraph: React.FC = ({ id, height }) => { id={id} data={ctx.leaves} layers={layers} + drilldown + maxRowCount={1} + layout={PartitionLayout.icicle} valueAccessor={(d: any) => d.value as number} valueFormatter={() => ''} - config={{ - partitionLayout: PartitionLayout.icicle, - drilldown: true, - fillLabel: { - padding: { left: 0, right: 0, top: 0, bottom: 0 }, - }, - minFontSize: 5, - maxFontSize: 20, - maxRowCount: 1, - }} />