@parca/profile 0.19.17 → 0.19.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/GraphTooltipArrow/useGraphTooltip/index.js +2 -2
  3. package/dist/GraphTooltipArrow/useGraphTooltipMetaInfo/index.js +2 -2
  4. package/dist/ProfileFlameGraph/FlameGraphArrow/ContextMenu.d.ts.map +1 -0
  5. package/dist/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/ContextMenuWrapper.d.ts +1 -1
  6. package/dist/ProfileFlameGraph/FlameGraphArrow/ContextMenuWrapper.d.ts.map +1 -0
  7. package/dist/{ProfileIcicleGraph/IcicleGraphArrow/IcicleGraphNodes.d.ts → ProfileFlameGraph/FlameGraphArrow/FlameGraphNodes.d.ts} +8 -8
  8. package/dist/ProfileFlameGraph/FlameGraphArrow/FlameGraphNodes.d.ts.map +1 -0
  9. package/dist/{ProfileIcicleGraph/IcicleGraphArrow/IcicleGraphNodes.js → ProfileFlameGraph/FlameGraphArrow/FlameGraphNodes.js} +14 -14
  10. package/dist/ProfileFlameGraph/FlameGraphArrow/MemoizedTooltip.d.ts.map +1 -0
  11. package/dist/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/MemoizedTooltip.js +1 -1
  12. package/dist/ProfileFlameGraph/FlameGraphArrow/TextWithEllipsis.d.ts.map +1 -0
  13. package/dist/ProfileFlameGraph/FlameGraphArrow/TooltipContext.d.ts.map +1 -0
  14. package/dist/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/index.d.ts +7 -7
  15. package/dist/ProfileFlameGraph/FlameGraphArrow/index.d.ts.map +1 -0
  16. package/dist/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/index.js +21 -15
  17. package/dist/ProfileFlameGraph/FlameGraphArrow/useMappingList.d.ts.map +1 -0
  18. package/dist/ProfileFlameGraph/FlameGraphArrow/useNodeColor.d.ts.map +1 -0
  19. package/dist/ProfileFlameGraph/FlameGraphArrow/utils.d.ts.map +1 -0
  20. package/dist/{ProfileIcicleGraph → ProfileFlameGraph}/index.d.ts +8 -8
  21. package/dist/ProfileFlameGraph/index.d.ts.map +1 -0
  22. package/dist/{ProfileIcicleGraph → ProfileFlameGraph}/index.js +33 -33
  23. package/dist/ProfileSelector/useAutoQuerySelector.js +1 -1
  24. package/dist/ProfileView/components/ActionButtons/SortByDropdown.js +1 -1
  25. package/dist/ProfileView/components/ColorStackLegend.js +2 -2
  26. package/dist/ProfileView/components/DashboardItems/index.d.ts +1 -1
  27. package/dist/ProfileView/components/DashboardItems/index.d.ts.map +1 -1
  28. package/dist/ProfileView/components/DashboardItems/index.js +7 -7
  29. package/dist/ProfileView/components/DashboardLayout/index.d.ts +1 -1
  30. package/dist/ProfileView/components/DashboardLayout/index.d.ts.map +1 -1
  31. package/dist/ProfileView/components/DiffLegend.js +1 -1
  32. package/dist/ProfileView/components/GroupByLabelsDropdown/index.js +1 -1
  33. package/dist/ProfileView/components/Toolbars/MultiLevelDropdown.js +1 -1
  34. package/dist/ProfileView/components/Toolbars/index.d.ts +5 -5
  35. package/dist/ProfileView/components/Toolbars/index.d.ts.map +1 -1
  36. package/dist/ProfileView/components/Toolbars/index.js +4 -4
  37. package/dist/ProfileView/components/ViewSelector/Dropdown.d.ts +2 -1
  38. package/dist/ProfileView/components/ViewSelector/Dropdown.d.ts.map +1 -1
  39. package/dist/ProfileView/components/ViewSelector/Dropdown.js +2 -2
  40. package/dist/ProfileView/components/ViewSelector/index.d.ts.map +1 -1
  41. package/dist/ProfileView/components/ViewSelector/index.js +12 -8
  42. package/dist/ProfileView/components/VisualizationContainer/index.d.ts +1 -1
  43. package/dist/ProfileView/components/VisualizationContainer/index.d.ts.map +1 -1
  44. package/dist/ProfileView/components/VisualizationPanel.d.ts +1 -1
  45. package/dist/ProfileView/components/VisualizationPanel.d.ts.map +1 -1
  46. package/dist/ProfileView/components/VisualizationPanel.js +1 -1
  47. package/dist/ProfileView/hooks/useProfileMetadata.js +1 -1
  48. package/dist/ProfileView/hooks/useVisualizationState.d.ts +1 -1
  49. package/dist/ProfileView/hooks/useVisualizationState.d.ts.map +1 -1
  50. package/dist/ProfileView/hooks/useVisualizationState.js +1 -1
  51. package/dist/ProfileView/index.js +3 -3
  52. package/dist/ProfileView/types/visualization.d.ts +1 -1
  53. package/dist/ProfileView/types/visualization.d.ts.map +1 -1
  54. package/dist/ProfileViewWithData.js +10 -10
  55. package/dist/Sandwich/components/CalleesSection.d.ts +1 -1
  56. package/dist/Sandwich/components/CalleesSection.d.ts.map +1 -1
  57. package/dist/Sandwich/components/CalleesSection.js +3 -3
  58. package/dist/Sandwich/components/CallersSection.d.ts +1 -1
  59. package/dist/Sandwich/components/CallersSection.d.ts.map +1 -1
  60. package/dist/Sandwich/components/CallersSection.js +3 -3
  61. package/dist/Sandwich/index.d.ts.map +1 -1
  62. package/dist/Sandwich/index.js +3 -5
  63. package/dist/Sandwich/utils/processRowData.d.ts +1 -1
  64. package/dist/Sandwich/utils/processRowData.d.ts.map +1 -1
  65. package/dist/Table/hooks/useColorManagement.js +1 -1
  66. package/dist/Table/index.js +2 -2
  67. package/dist/Table/utils/functions.d.ts +1 -1
  68. package/dist/Table/utils/functions.d.ts.map +1 -1
  69. package/dist/index.d.ts +1 -1
  70. package/dist/index.d.ts.map +1 -1
  71. package/dist/index.js +2 -2
  72. package/package.json +7 -7
  73. package/src/GraphTooltipArrow/useGraphTooltip/index.ts +2 -2
  74. package/src/GraphTooltipArrow/useGraphTooltipMetaInfo/index.ts +2 -2
  75. package/src/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/ContextMenuWrapper.tsx +1 -1
  76. package/src/{ProfileIcicleGraph/IcicleGraphArrow/IcicleGraphNodes.tsx → ProfileFlameGraph/FlameGraphArrow/FlameGraphNodes.tsx} +27 -30
  77. package/src/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/MemoizedTooltip.tsx +1 -1
  78. package/src/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/index.tsx +34 -27
  79. package/src/{ProfileIcicleGraph/benchmarks/ProfileIcicleGraph-10M.benchmark.tsx → ProfileFlameGraph/benchmarks/ProfileFlameGraph-10M.benchmark.tsx} +2 -2
  80. package/src/{ProfileIcicleGraph/benchmarks/ProfileIcicleGraph-1M.benchmark.tsx → ProfileFlameGraph/benchmarks/ProfileFlameGraph-1M.benchmark.tsx} +2 -2
  81. package/src/{ProfileIcicleGraph/benchmarks/ProfileIcicleGraph-20M.benchmark.tsx → ProfileFlameGraph/benchmarks/ProfileFlameGraph-20M.benchmark.tsx} +2 -2
  82. package/src/{ProfileIcicleGraph → ProfileFlameGraph}/index.tsx +57 -57
  83. package/src/ProfileSelector/useAutoQuerySelector.ts +1 -1
  84. package/src/ProfileView/components/ActionButtons/SortByDropdown.tsx +1 -1
  85. package/src/ProfileView/components/ColorStackLegend.tsx +2 -2
  86. package/src/ProfileView/components/DashboardItems/index.tsx +8 -8
  87. package/src/ProfileView/components/DashboardLayout/index.tsx +1 -1
  88. package/src/ProfileView/components/DiffLegend.tsx +3 -3
  89. package/src/ProfileView/components/GroupByLabelsDropdown/index.tsx +1 -1
  90. package/src/ProfileView/components/Toolbars/MultiLevelDropdown.tsx +1 -1
  91. package/src/ProfileView/components/Toolbars/index.tsx +7 -7
  92. package/src/ProfileView/components/ViewSelector/Dropdown.tsx +8 -1
  93. package/src/ProfileView/components/ViewSelector/index.tsx +12 -7
  94. package/src/ProfileView/components/VisualizationContainer/index.tsx +1 -1
  95. package/src/ProfileView/components/VisualizationPanel.tsx +4 -4
  96. package/src/ProfileView/hooks/useProfileMetadata.ts +1 -1
  97. package/src/ProfileView/hooks/useVisualizationState.ts +2 -2
  98. package/src/ProfileView/index.tsx +4 -4
  99. package/src/ProfileView/types/visualization.ts +2 -2
  100. package/src/ProfileViewWithData.tsx +10 -10
  101. package/src/Sandwich/components/CalleesSection.tsx +4 -4
  102. package/src/Sandwich/components/CallersSection.tsx +5 -5
  103. package/src/Sandwich/index.tsx +10 -4
  104. package/src/Sandwich/utils/processRowData.ts +1 -1
  105. package/src/Table/hooks/useColorManagement.ts +1 -1
  106. package/src/Table/index.tsx +2 -2
  107. package/src/Table/utils/functions.ts +1 -1
  108. package/src/index.tsx +2 -2
  109. package/dist/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.d.ts.map +0 -1
  110. package/dist/ProfileIcicleGraph/IcicleGraphArrow/ContextMenuWrapper.d.ts.map +0 -1
  111. package/dist/ProfileIcicleGraph/IcicleGraphArrow/IcicleGraphNodes.d.ts.map +0 -1
  112. package/dist/ProfileIcicleGraph/IcicleGraphArrow/MemoizedTooltip.d.ts.map +0 -1
  113. package/dist/ProfileIcicleGraph/IcicleGraphArrow/TextWithEllipsis.d.ts.map +0 -1
  114. package/dist/ProfileIcicleGraph/IcicleGraphArrow/TooltipContext.d.ts.map +0 -1
  115. package/dist/ProfileIcicleGraph/IcicleGraphArrow/index.d.ts.map +0 -1
  116. package/dist/ProfileIcicleGraph/IcicleGraphArrow/useMappingList.d.ts.map +0 -1
  117. package/dist/ProfileIcicleGraph/IcicleGraphArrow/useNodeColor.d.ts.map +0 -1
  118. package/dist/ProfileIcicleGraph/IcicleGraphArrow/utils.d.ts.map +0 -1
  119. package/dist/ProfileIcicleGraph/index.d.ts.map +0 -1
  120. /package/dist/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/ContextMenu.d.ts +0 -0
  121. /package/dist/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/ContextMenu.js +0 -0
  122. /package/dist/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/ContextMenuWrapper.js +0 -0
  123. /package/dist/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/MemoizedTooltip.d.ts +0 -0
  124. /package/dist/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/TextWithEllipsis.d.ts +0 -0
  125. /package/dist/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/TextWithEllipsis.js +0 -0
  126. /package/dist/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/TooltipContext.d.ts +0 -0
  127. /package/dist/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/TooltipContext.js +0 -0
  128. /package/dist/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/useMappingList.d.ts +0 -0
  129. /package/dist/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/useMappingList.js +0 -0
  130. /package/dist/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/useNodeColor.d.ts +0 -0
  131. /package/dist/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/useNodeColor.js +0 -0
  132. /package/dist/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/utils.d.ts +0 -0
  133. /package/dist/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/utils.js +0 -0
  134. /package/src/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/ContextMenu.tsx +0 -0
  135. /package/src/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/TextWithEllipsis.tsx +0 -0
  136. /package/src/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/TooltipContext.tsx +0 -0
  137. /package/src/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/useMappingList.ts +0 -0
  138. /package/src/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/useNodeColor.ts +0 -0
  139. /package/src/{ProfileIcicleGraph/IcicleGraphArrow → ProfileFlameGraph/FlameGraphArrow}/utils.ts +0 -0
  140. /package/src/{ProfileIcicleGraph → ProfileFlameGraph}/benchmarks/benchdata/populateData.js +0 -0
@@ -17,8 +17,8 @@ import {QueryRequest_ReportType, QueryServiceClient} from '@parca/client';
17
17
  import {useGrpcMetadata, useParcaContext, useURLState} from '@parca/components';
18
18
  import {saveAsBlob} from '@parca/utilities';
19
19
 
20
- import {validateIcicleChartQuery} from './ProfileIcicleGraph';
21
- import {FIELD_FUNCTION_NAME} from './ProfileIcicleGraph/IcicleGraphArrow';
20
+ import {validateFlameChartQuery} from './ProfileFlameGraph';
21
+ import {FIELD_FUNCTION_NAME} from './ProfileFlameGraph/FlameGraphArrow';
22
22
  import {MergedProfileSource, ProfileSource} from './ProfileSource';
23
23
  import {ProfileView} from './ProfileView';
24
24
  import {useQuery} from './useQuery';
@@ -59,20 +59,20 @@ export const ProfileViewWithData = ({
59
59
  const [pprofDownloading, setPprofDownloading] = useState<boolean>(false);
60
60
 
61
61
  useEffect(() => {
62
- // If profile type is not delta, remove iciclechart from the dashboard items
63
- // and set it to icicle if no other items are selected.
62
+ // If profile type is not delta, remove flamechart from the dashboard items
63
+ // and set it to flame if no other items are selected.
64
64
  if (profileSource == null) {
65
65
  return;
66
66
  }
67
67
  const profileType = profileSource.ProfileType();
68
68
  let newDashboardItems = dashboardItems;
69
- if (dashboardItems.includes('iciclechart') && !profileType.delta) {
70
- newDashboardItems = dashboardItems.filter(item => item !== 'iciclechart');
69
+ if (dashboardItems.includes('flamechart') && !profileType.delta) {
70
+ newDashboardItems = dashboardItems.filter(item => item !== 'flamechart');
71
71
  } else {
72
72
  return;
73
73
  }
74
74
  if (newDashboardItems.length === 0) {
75
- newDashboardItems = ['icicle'];
75
+ newDashboardItems = ['flamegraph'];
76
76
  }
77
77
  setDashboardItems(newDashboardItems);
78
78
  }, [profileSource, dashboardItems, setDashboardItems]);
@@ -91,7 +91,7 @@ export const ProfileViewWithData = ({
91
91
  response: flamegraphResponse,
92
92
  error: flamegraphError,
93
93
  } = useQuery(queryClient, profileSource, QueryRequest_ReportType.FLAMEGRAPH_ARROW, {
94
- skip: !dashboardItems.includes('icicle'),
94
+ skip: !dashboardItems.includes('flamegraph'),
95
95
  nodeTrimThreshold,
96
96
  groupBy,
97
97
  invertCallStack,
@@ -104,8 +104,8 @@ export const ProfileViewWithData = ({
104
104
  error: flamechartError,
105
105
  } = useQuery(queryClient, profileSource, QueryRequest_ReportType.FLAMECHART, {
106
106
  skip: !(
107
- dashboardItems.includes('iciclechart') &&
108
- validateIcicleChartQuery(profileSource as MergedProfileSource).isValid
107
+ dashboardItems.includes('flamechart') &&
108
+ validateFlameChartQuery(profileSource as MergedProfileSource).isValid
109
109
  ),
110
110
  nodeTrimThreshold,
111
111
  groupBy,
@@ -15,8 +15,8 @@ import React from 'react';
15
15
 
16
16
  import {type FlamegraphArrow} from '@parca/client';
17
17
 
18
- import ProfileIcicleGraph from '../../ProfileIcicleGraph';
19
- import {type CurrentPathFrame} from '../../ProfileIcicleGraph/IcicleGraphArrow/utils';
18
+ import ProfileFlameGraph from '../../ProfileFlameGraph';
19
+ import {type CurrentPathFrame} from '../../ProfileFlameGraph/FlameGraphArrow/utils';
20
20
  import {type ProfileSource} from '../../ProfileSource';
21
21
 
22
22
  interface CalleesSectionProps {
@@ -53,7 +53,7 @@ export function CalleesSection({
53
53
  <div className="[writing-mode:vertical-lr] -rotate-180 px-1 uppercase text-[10px] text-left">
54
54
  {'<-'} Callees
55
55
  </div>
56
- <ProfileIcicleGraph
56
+ <ProfileFlameGraph
57
57
  arrow={
58
58
  calleesFlamegraphResponse?.report.oneofKind === 'flamegraphArrow'
59
59
  ? calleesFlamegraphResponse?.report?.flamegraphArrow
@@ -70,7 +70,7 @@ export function CalleesSection({
70
70
  }
71
71
  metadataMappingFiles={metadataMappingFiles}
72
72
  metadataLoading={false}
73
- isSandwichIcicleGraph={true}
73
+ isInSandwichView={true}
74
74
  curPathArrow={curPathArrow}
75
75
  setNewCurPathArrow={setCurPathArrow}
76
76
  profileSource={profileSource}
@@ -19,8 +19,8 @@ import {Tooltip} from 'react-tooltip';
19
19
  import {type FlamegraphArrow} from '@parca/client';
20
20
  import {Button} from '@parca/components';
21
21
 
22
- import ProfileIcicleGraph from '../../ProfileIcicleGraph';
23
- import {type CurrentPathFrame} from '../../ProfileIcicleGraph/IcicleGraphArrow/utils';
22
+ import ProfileFlameGraph from '../../ProfileFlameGraph';
23
+ import {type CurrentPathFrame} from '../../ProfileFlameGraph/FlameGraphArrow/utils';
24
24
  import {type ProfileSource} from '../../ProfileSource';
25
25
 
26
26
  const FIELD_DEPTH = 'depth';
@@ -112,7 +112,7 @@ export function CallersSection({
112
112
  Callers {'->'}
113
113
  </div>
114
114
  <div className="flex-1 overflow-hidden relative">
115
- <ProfileIcicleGraph
115
+ <ProfileFlameGraph
116
116
  arrow={
117
117
  callersFlamegraphResponse?.report.oneofKind === 'flamegraphArrow'
118
118
  ? callersFlamegraphResponse?.report?.flamegraphArrow
@@ -129,10 +129,10 @@ export function CallersSection({
129
129
  }
130
130
  metadataMappingFiles={metadataMappingFiles}
131
131
  metadataLoading={false}
132
- isSandwichIcicleGraph={true}
132
+ isInSandwichView={true}
133
133
  curPathArrow={curPathArrow}
134
134
  setNewCurPathArrow={setCurPathArrow}
135
- isFlamegraph={true}
135
+ isRenderedAsFlamegraph={true}
136
136
  profileSource={profileSource}
137
137
  tooltipId="callers"
138
138
  maxFrameCount={defaultMaxFrames}
@@ -24,7 +24,7 @@ import {ProfileType} from '@parca/parser';
24
24
 
25
25
  import useMappingList, {
26
26
  useFilenamesList,
27
- } from '../ProfileIcicleGraph/IcicleGraphArrow/useMappingList';
27
+ } from '../ProfileFlameGraph/FlameGraphArrow/useMappingList';
28
28
  import {ProfileSource} from '../ProfileSource';
29
29
  import {useDashboard} from '../ProfileView/context/DashboardContext';
30
30
  import {useVisualizationState} from '../ProfileView/hooks/useVisualizationState';
@@ -239,9 +239,15 @@ const Sandwich = React.memo(function Sandwich({
239
239
  ) : (
240
240
  <div className="items-center justify-center flex h-full w-full">
241
241
  <p className="text-sm">
242
- {dashboardItems.includes('table')
243
- ? 'Please select a function to view its callers and callees.'
244
- : 'Use the right-click menu on the flame graph to choose a function to view its callers and callees.'}
242
+ {dashboardItems.includes('table') ? (
243
+ 'Please select a function to view its callers and callees.'
244
+ ) : (
245
+ <>
246
+ Use the right-click menu on the Flame{' '}
247
+ {dashboardItems.includes('flamegraph') ? 'Graph' : 'Chart'} to choose a
248
+ function to view its callers and callees.
249
+ </>
250
+ )}
245
251
  </p>
246
252
  </div>
247
253
  )}
@@ -13,7 +13,7 @@
13
13
 
14
14
  import {type Table} from 'apache-arrow';
15
15
 
16
- import {type colorByColors} from '../../ProfileIcicleGraph/IcicleGraphArrow/IcicleGraphNodes';
16
+ import {type colorByColors} from '../../ProfileFlameGraph/FlameGraphArrow/FlameGraphNodes';
17
17
  import {
18
18
  FIELD_CUMULATIVE,
19
19
  FIELD_CUMULATIVE_DIFF,
@@ -15,7 +15,7 @@ import {useMemo} from 'react';
15
15
 
16
16
  import {type ColorConfig} from '@parca/utilities';
17
17
 
18
- import {getFilenameColors, getMappingColors} from '../../ProfileIcicleGraph/IcicleGraphArrow';
18
+ import {getFilenameColors, getMappingColors} from '../../ProfileFlameGraph/FlameGraphArrow';
19
19
 
20
20
  interface UseColorManagementProps {
21
21
  isDarkMode: boolean;
@@ -29,7 +29,7 @@ import {isSearchMatch} from '@parca/utilities';
29
29
 
30
30
  import useMappingList, {
31
31
  useFilenamesList,
32
- } from '../ProfileIcicleGraph/IcicleGraphArrow/useMappingList';
32
+ } from '../ProfileFlameGraph/FlameGraphArrow/useMappingList';
33
33
  import {useProfileViewContext} from '../ProfileView/context/ProfileViewContext';
34
34
  import TableContextMenuWrapper, {TableContextMenuWrapperRef} from './TableContextMenuWrapper';
35
35
  import {useColorManagement} from './hooks/useColorManagement';
@@ -138,7 +138,7 @@ export const Table = React.memo(function Table({
138
138
 
139
139
  const selectSpan = useCallback(
140
140
  (span: string): void => {
141
- if (dashboardItems.includes('icicle')) {
141
+ if (dashboardItems.includes('flamegraph')) {
142
142
  setSearchString(span.trim());
143
143
  } else {
144
144
  setSandwichFunctionName(span.trim());
@@ -16,7 +16,7 @@ import {Vector} from 'apache-arrow';
16
16
 
17
17
  import {getLastItem} from '@parca/utilities';
18
18
 
19
- import {colorByColors} from '../../ProfileIcicleGraph/IcicleGraphArrow/IcicleGraphNodes';
19
+ import {colorByColors} from '../../ProfileFlameGraph/FlameGraphArrow/FlameGraphNodes';
20
20
  import {hexifyAddress} from '../../utils';
21
21
 
22
22
  export interface DataRow {
package/src/index.tsx CHANGED
@@ -16,7 +16,7 @@ import ProfileExplorer, {getExpressionAsAString} from './ProfileExplorer';
16
16
  import ProfileTypeSelector from './ProfileTypeSelector';
17
17
  import CustomSelect from './SimpleMatchers/Select';
18
18
 
19
- export * from './ProfileIcicleGraph';
19
+ export * from './ProfileFlameGraph';
20
20
  export * from './ProfileSource';
21
21
  export * from './ProfileView';
22
22
  export * from './ProfileViewWithData';
@@ -26,7 +26,7 @@ export * from './SourceView';
26
26
  export * from './ProfileMetricsGraph';
27
27
 
28
28
  export const DEFAULT_PROFILE_EXPLORER_PARAM_VALUES = {
29
- dashboard_items: 'icicle',
29
+ dashboard_items: 'flamegraph',
30
30
  };
31
31
 
32
32
  export {ProfileExplorer, ProfileTypeSelector, getExpressionAsAString, CustomSelect, useLabelNames};
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../src/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAC,KAAK,EAAC,MAAM,cAAc,CAAC;AAOnC,OAAO,EAAC,W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7B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;CACnD;AAED,eAAO,MAAM,gBAAgB;;;CAG5B,CAAC;AACF,eAAO,MAAM,qBAAqB;;;;CAIjC,CAAC;AAEF,eAAO,MAAM,UAAU,6CA2NrB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MemoizedTooltip.d.ts","sourceRoot":"","sources":["../../../src/ProfileIcicleGraph/IcicleGraphArrow/MemoizedTooltip.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAkC,MAAM,OAAO,CAAC;AAOvD,UAAU,oBAAoB;IAC5B,cAAc,EAAE,OAAO,GAAG,IAAI,CAAC;IAC/B,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,eAAe,kDAwE1B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextWithEllipsis.d.ts","sourceRoot":"","sources":["../../../src/ProfileIcicleGraph/IcicleGraphArrow/TextWithEllipsis.tsx"],"names":[],"mappings":"AAiBA,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;CACf;AA2CD,iBAAS,gBAAgB,CAAC,EAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAC,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAuBjE;AAED,eAAe,gBAAgB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TooltipContext.d.ts","sourceRoot":"","sources":["../../../src/ProfileI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G,MAAM,EAsB9D,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,KAAK,GAAG,IAAI,KAAG,MAAM,EAyB5D,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useNodeColor.d.ts","sourceRoot":"","sources":["../../../src/ProfileIcicleGraph/IcicleGraphArrow/useNodeColor.ts"],"names":[],"mappings":"AAgBA,UAAU,MAAM;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,UAAU,KAAK;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,QAAA,MAAM,YAAY,GAAI,2EAOnB,KAAK,KAAG,MAMV,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/ProfileIcicleGraph/IcicleGraphArrow/utils.ts"],"names":[],"mappings":"AAaA,OAAO,EAAC,KAAK,EAAC,MAAM,cAAc,CAAC;AAEnC,OAAO,EAIL,KAAK,aAAa,EAClB,KAAK,eAAe,EACrB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAsB,aAAa,EAAC,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAC,SAAS,EAAgB,MAAM,aAAa,CAAC;AAWrD,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,GAAG,MAAM,CAuBzF;AAED,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,KAAG,aAMhD,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,UAAU,MAAM,KAAG,eAMzD,CA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