@parca/profile 0.16.304 → 0.16.305

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,10 @@
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.305 (2023-11-15)
7
+
8
+ **Note:** Version bump only for package @parca/profile
9
+
6
10
  ## [0.16.304](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.303...@parca/profile@0.16.304) (2023-11-09)
7
11
 
8
12
  **Note:** Version bump only for package @parca/profile
@@ -14,7 +14,7 @@ import { divide, valueFormatter } from '@parca/utilities';
14
14
  import { FIELD_CUMULATIVE, FIELD_DIFF, FIELD_LOCATION_ADDRESS, } from '../../ProfileIcicleGraph/IcicleGraphArrow';
15
15
  import { getTextForCumulative, nodeLabel } from '../../ProfileIcicleGraph/IcicleGraphArrow/utils';
16
16
  export const useGraphTooltip = ({ table, unit, total, totalUnfiltered, row, level, }) => {
17
- if (row === null) {
17
+ if (row === null || row === 0) {
18
18
  return null;
19
19
  }
20
20
  const locationAddress = table.getChild(FIELD_LOCATION_ADDRESS)?.get(row) ?? 0n;
@@ -57,8 +57,8 @@ export const IcicleNode = React.memo(function IcicleNodeNoMemo({ table, row, map
57
57
  // get the actual values from the columns
58
58
  const mappingFile = arrowToString(mappingColumn?.get(row));
59
59
  const functionName = arrowToString(functionNameColumn?.get(row));
60
- const cumulative = BigInt(cumulativeColumn?.get(row));
61
- const diff = BigInt(diffColumn?.get(row));
60
+ const cumulative = cumulativeColumn?.get(row) !== null ? BigInt(cumulativeColumn?.get(row)) : 0n;
61
+ const diff = diffColumn?.get(row) !== null ? BigInt(diffColumn?.get(row)) : null;
62
62
  const childRows = Array.from(table.getChild(FIELD_CHILDREN)?.get(row) ?? []);
63
63
  // TODO: Maybe it's better to pass down the sorter function as prop instead of figuring this out here.
64
64
  switch (sortBy) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parca/profile",
3
- "version": "0.16.304",
3
+ "version": "0.16.305",
4
4
  "description": "Profile viewing libraries",
5
5
  "dependencies": {
6
6
  "@parca/client": "^0.16.98",
@@ -50,5 +50,5 @@
50
50
  "access": "public",
51
51
  "registry": "https://registry.npmjs.org/"
52
52
  },
53
- "gitHead": "a342b32b3ed89bee6659d1f4fd073c6bcd52cb16"
53
+ "gitHead": "42d5b5da9506741c6fa60aa756e7b8279861a8a7"
54
54
  }
@@ -48,7 +48,7 @@ export const useGraphTooltip = ({
48
48
  row,
49
49
  level,
50
50
  }: Props): GraphTooltipData | null => {
51
- if (row === null) {
51
+ if (row === null || row === 0) {
52
52
  return null;
53
53
  }
54
54
 
@@ -194,8 +194,8 @@ export const IcicleNode = React.memo(function IcicleNodeNoMemo({
194
194
  // get the actual values from the columns
195
195
  const mappingFile: string | null = arrowToString(mappingColumn?.get(row));
196
196
  const functionName: string | null = arrowToString(functionNameColumn?.get(row));
197
- const cumulative = BigInt(cumulativeColumn?.get(row));
198
- const diff: bigint | null = BigInt(diffColumn?.get(row));
197
+ const cumulative = cumulativeColumn?.get(row) !== null ? BigInt(cumulativeColumn?.get(row)) : 0n;
198
+ const diff: bigint | null = diffColumn?.get(row) !== null ? BigInt(diffColumn?.get(row)) : null;
199
199
  const childRows: number[] = Array.from(table.getChild(FIELD_CHILDREN)?.get(row) ?? []);
200
200
 
201
201
  // TODO: Maybe it's better to pass down the sorter function as prop instead of figuring this out here.