Skip to content

Commit

Permalink
Fix flamegraph config after 8.1 upgrade (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbcrail authored and rockdaboot committed Jun 8, 2022
1 parent 413d4a6 commit 77a2d20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1007,4 +1007,4 @@
"yargs": "^15.4.1",
"zlib": "^1.0.5"
}
}
}
13 changes: 3 additions & 10 deletions src/plugins/profiling/public/components/flamegraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,11 @@ export const FlameGraph: React.FC<FlameGraphProps> = ({ 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,
}}
/>
</Chart>
</>
Expand Down

0 comments on commit 77a2d20

Please sign in to comment.