From 77a2d20413ce3785f2c14a6dbddbcb16451e4b42 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 bb817e1c22dfa..64cc3cb94583c 100644 --- a/package.json +++ b/package.json @@ -1007,4 +1007,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 85ee76ad3ce8c..0b81ceb06c0cf 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, - }} />