Skip to content

Commit 03dc5d2

Browse files
authored
Merge pull request #5656 from parca-dev/hover-profile-type
ui: Fix passing profile type
2 parents ed4b2c9 + f9498f2 commit 03dc5d2

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

ui/packages/shared/profile/src/ProfileIcicleGraph/IcicleGraphArrow/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {useContextMenu} from 'react-contexify';
1919
import {FlamegraphArrow} from '@parca/client';
2020
import {useURLState} from '@parca/components';
2121
import {USER_PREFERENCES, useCurrentColorProfile, useUserPreference} from '@parca/hooks';
22+
import {ProfileType} from '@parca/parser';
2223
import {getColorForFeature, selectDarkMode, useAppSelector} from '@parca/store';
2324
import {getLastItem, type ColorConfig} from '@parca/utilities';
2425

@@ -64,6 +65,7 @@ interface IcicleGraphArrowProps {
6465
arrow: FlamegraphArrow;
6566
total: bigint;
6667
filtered: bigint;
68+
profileType?: ProfileType;
6769
profileSource: ProfileSource;
6870
width?: number;
6971
curPath: CurrentPathFrame[];
@@ -111,6 +113,7 @@ export const IcicleGraphArrow = memo(function IcicleGraphArrow({
111113
width,
112114
setCurPath,
113115
curPath,
116+
profileType,
114117
profileSource,
115118
mappingsListFromMetadata,
116119
compareAbsolute,
@@ -267,6 +270,7 @@ export const IcicleGraphArrow = memo(function IcicleGraphArrow({
267270
table={table}
268271
total={total}
269272
totalUnfiltered={total + filtered}
273+
profileType={profileType}
270274
unit={arrow.unit}
271275
compareAbsolute={compareAbsolute}
272276
>
@@ -282,6 +286,7 @@ export const IcicleGraphArrow = memo(function IcicleGraphArrow({
282286
hideMenu={hideAll}
283287
hideBinary={hideBinary}
284288
unit={arrow.unit}
289+
profileType={profileType}
285290
/>
286291
<MemoizedTooltip contextElement={svg.current} dockedMetainfo={dockedMetainfo} />
287292
<svg

ui/packages/shared/profile/src/ProfileIcicleGraph/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ const ProfileIcicleGraph = function ProfileIcicleGraphNonMemo({
235235
filtered={filtered}
236236
curPath={curPathArrow}
237237
setCurPath={setNewCurPathArrow}
238+
profileType={profileType}
238239
isHalfScreen={isHalfScreen}
239240
mappingsListFromMetadata={mappingsList}
240241
compareAbsolute={isCompareAbsolute}
@@ -254,6 +255,7 @@ const ProfileIcicleGraph = function ProfileIcicleGraphNonMemo({
254255
filtered,
255256
curPathArrow,
256257
setNewCurPathArrow,
258+
profileType,
257259
isHalfScreen,
258260
isDarkMode,
259261
mappingsList,

0 commit comments

Comments
 (0)