@parca/profile 0.16.509 → 0.16.511

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.16.511](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.510...@parca/profile@0.16.511) (2025-05-08)
7
+
8
+ **Note:** Version bump only for package @parca/profile
9
+
10
+ ## [0.16.510](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.509...@parca/profile@0.16.510) (2025-05-08)
11
+
12
+ **Note:** Version bump only for package @parca/profile
13
+
6
14
  ## [0.16.509](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.508...@parca/profile@0.16.509) (2025-05-07)
7
15
 
8
16
  **Note:** Version bump only for package @parca/profile
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ProfileIcicleGraph/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAKhF,OAAO,EAAC,UAAU,EAAE,eAAe,EAAC,MAAM,eAAe,CAAC;AAE1D,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAG1C,OAAO,EAAC,mBAAmB,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAOpE,OAAO,EAAC,gBAAgB,EAA0B,MAAM,0BAA0B,CAAC;AAInF,MAAM,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;AAEpE,UAAU,uBAAuB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,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ChartRef,
134
134
  iciclechartHelpText,
135
135
  ]);
136
+ useEffect(() => {
137
+ if (isTrimmed) {
138
+ console.info(`Trimmed ${trimmedFormatted} (${trimmedPercentage}%) too small values.`);
139
+ }
140
+ }, [isTrimmed, trimmedFormatted, trimmedPercentage]);
136
141
  if (error != null) {
137
142
  onError?.(error);
138
143
  if (authenticationErrorMessage !== undefined && error.code === 'UNAUTHENTICATED') {
139
144
  return _jsx(ErrorContent, { errorMessage: authenticationErrorMessage });
140
145
  }
141
- return _jsx(ErrorContent, { errorMessage: capitalizeOnlyFirstLetter(error.message) });
142
- }
143
- if (isTrimmed) {
144
- console.info(`Trimmed ${trimmedFormatted} (${trimmedPercentage}%) too small values.`);
146
+ return (_jsx(ErrorContent, { errorMessage: _jsxs(_Fragment, { children: [_jsx("span", { children: capitalizeOnlyFirstLetter(error.message) }), isIcicleChart ? iciclechartHelpText ?? null : null] }) }));
145
147
  }
146
148
  return (_jsx(AnimatePresence, { children: _jsxs(motion.div, { className: "relative h-full w-full", initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { duration: 0.5 }, children: [compareMode ? _jsx(DiffLegend, {}) : null, _jsx("div", { className: "min-h-48", id: "h-icicle-graph", children: _jsx(_Fragment, { children: icicleGraph }) }), _jsxs("p", { className: "my-2 text-xs", children: ["Showing ", totalFormatted, ' ', isFiltered ? (_jsxs("span", { children: ["(", filteredPercentage, "%) filtered of ", totalUnfilteredFormatted, ' '] })) : (_jsx(_Fragment, {})), "values.", ' '] })] }, "icicle-graph-loaded") }));
147
149
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ProfileViewWithData.d.ts","sourceRoot":"","sources":["../src/ProfileViewWithData.tsx"],"names":[],"mappings":"AAeA,OAAO,EAA0B,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAM1E,OAAO,EAAsB,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAKnE,UAAU,wBAAwB;IAChC,WAAW,EAAE,kBAAkB,CAAC;IAChC,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED,eAAO,MAAM,mBAAmB,+DAI7B,wBAAwB,KAAG,GAAG,CAAC,OAyQjC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"ProfileViewWithData.d.ts","sourceRoot":"","sources":["../src/ProfileViewWithData.tsx"],"names":[],"mappings":"AAeA,OAAO,EAA0B,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAM1E,OAAO,EAAsB,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAKnE,UAAU,wBAAwB;IAChC,WAAW,EAAE,kBAAkB,CAAC;IAChC,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED,eAAO,MAAM,mBAAmB,+DAI7B,wBAAwB,KAAG,GAAG,CAAC,OA2QjC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -49,6 +49,9 @@ export const ProfileViewWithData = ({ queryClient, profileSource, showVisualizat
49
49
  if (dashboardItems.includes('iciclechart') && !profileType.delta) {
50
50
  newDashboardItems = dashboardItems.filter(item => item !== 'iciclechart');
51
51
  }
52
+ else {
53
+ return;
54
+ }
52
55
  if (newDashboardItems.length === 0) {
53
56
  newDashboardItems = ['icicle'];
54
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parca/profile",
3
- "version": "0.16.509",
3
+ "version": "0.16.511",
4
4
  "description": "Profile viewing libraries",
5
5
  "dependencies": {
6
6
  "@headlessui/react": "^1.7.19",
@@ -77,5 +77,5 @@
77
77
  "access": "public",
78
78
  "registry": "https://registry.npmjs.org/"
79
79
  },
80
- "gitHead": "d8c1287c193944f04f7ed36d7486dc17452ea3d3"
80
+ "gitHead": "56bc28ad4c9e60a31602dd5d248d2b42a959ae54"
81
81
  }
@@ -296,6 +296,12 @@ const ProfileIcicleGraph = function ProfileIcicleGraphNonMemo({
296
296
  iciclechartHelpText,
297
297
  ]);
298
298
 
299
+ useEffect(() => {
300
+ if (isTrimmed) {
301
+ console.info(`Trimmed ${trimmedFormatted} (${trimmedPercentage}%) too small values.`);
302
+ }
303
+ }, [isTrimmed, trimmedFormatted, trimmedPercentage]);
304
+
299
305
  if (error != null) {
300
306
  onError?.(error);
301
307
 
@@ -303,11 +309,16 @@ const ProfileIcicleGraph = function ProfileIcicleGraphNonMemo({
303
309
  return <ErrorContent errorMessage={authenticationErrorMessage} />;
304
310
  }
305
311
 
306
- return <ErrorContent errorMessage={capitalizeOnlyFirstLetter(error.message)} />;
307
- }
308
-
309
- if (isTrimmed) {
310
- console.info(`Trimmed ${trimmedFormatted} (${trimmedPercentage}%) too small values.`);
312
+ return (
313
+ <ErrorContent
314
+ errorMessage={
315
+ <>
316
+ <span>{capitalizeOnlyFirstLetter(error.message)}</span>
317
+ {isIcicleChart ? iciclechartHelpText ?? null : null}
318
+ </>
319
+ }
320
+ />
321
+ );
311
322
  }
312
323
 
313
324
  return (
@@ -68,6 +68,8 @@ export const ProfileViewWithData = ({
68
68
  let newDashboardItems = dashboardItems;
69
69
  if (dashboardItems.includes('iciclechart') && !profileType.delta) {
70
70
  newDashboardItems = dashboardItems.filter(item => item !== 'iciclechart');
71
+ } else {
72
+ return;
71
73
  }
72
74
  if (newDashboardItems.length === 0) {
73
75
  newDashboardItems = ['icicle'];