Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@

import React, {Fragment} from 'react';

import cx from 'classnames';
import twColors from 'tailwindcss/colors';

import {scaleLinear} from '@parca/utilities';

import {FIELD_CHILDREN, FIELD_CUMULATIVE, FIELD_DURATION, FIELD_TIMESTAMP} from '.';
Expand All @@ -33,7 +30,6 @@ export const IcicleChartRootNode = React.memo(function IcicleChartRootNodeNonMem
colors,
colorBy,
y,
height,
setCurPath,
curPath,
level,
Expand Down Expand Up @@ -96,30 +92,13 @@ export const IcicleChartRootNode = React.memo(function IcicleChartRootNodeNonMem

return (
<Fragment key={row}>
<g transform={`translate(${x + 1}, ${y + 1})`}>
<rect
x={0}
y={0}
width={width}
height={RowHeight}
style={{
fill: darkMode ? twColors.gray[500] : twColors.gray[200],
}}
className={cx(`stroke-white dark:stroke-gray-700 fill-gray-600 dark:fill-gray-100`)}
/>
<svg width={width - 5} height={height}>
<text x={5} y={15} style={{fontSize: '12px'}}>
root
</text>
</svg>
</g>
<IcicleNode
table={table}
row={row}
colors={colors}
colorBy={colorBy}
x={x}
y={RowHeight}
y={y}
totalWidth={width ?? 1}
height={RowHeight}
setCurPath={setCurPath}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const getDashboardItem = ({
return (
<ProfileIcicleGraph
curPath={curPath}
setNewCurPath={setNewCurPath}
setNewCurPath={() => {}}
arrow={flamechartData?.arrow}
total={total}
filtered={filtered}
Expand Down