mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Profiling] show frames in leaf-root order (#140922)
This commit is contained in:
parent
5a81f0b559
commit
af5eacaebe
1 changed files with 4 additions and 2 deletions
|
@ -90,7 +90,9 @@ export const SubChart: React.FC<SubChartProps> = ({
|
|||
|
||||
const compact = !!onShowMoreClick;
|
||||
|
||||
const displayedFrames = compact ? metadata.slice(0, NUM_DISPLAYED_FRAMES) : metadata;
|
||||
const displayedFrames = compact
|
||||
? metadata.concat().reverse().slice(0, NUM_DISPLAYED_FRAMES)
|
||||
: metadata.concat().reverse();
|
||||
|
||||
const hasMoreFrames = displayedFrames.length < metadata.length;
|
||||
|
||||
|
@ -110,7 +112,7 @@ export const SubChart: React.FC<SubChartProps> = ({
|
|||
<>
|
||||
<EuiFlexItem grow={false} key={frame.FrameID}>
|
||||
<EuiFlexGroup direction="row" alignItems="center">
|
||||
<EuiFlexItem grow={false}>{frameIndex + 1}</EuiFlexItem>
|
||||
<EuiFlexItem grow={false}>{metadata.indexOf(frame) + 1}</EuiFlexItem>
|
||||
<EuiFlexItem grow>
|
||||
<StackFrameSummary frame={frame} />
|
||||
</EuiFlexItem>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue