@parca/profile 0.16.248 → 0.16.249
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.249](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.248...@parca/profile@0.16.249) (2023-09-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @parca/profile
|
|
9
|
+
|
|
6
10
|
## [0.16.248](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.247...@parca/profile@0.16.248) (2023-09-05)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @parca/profile
|
|
@@ -34,8 +34,8 @@ const GraphTooltipArrowContent = ({ table, unit, total, totalUnfiltered, row, le
|
|
|
34
34
|
return _jsx(_Fragment, {});
|
|
35
35
|
}
|
|
36
36
|
const locationAddress = table.getChild(FIELD_LOCATION_ADDRESS)?.get(row) ?? 0n;
|
|
37
|
-
const cumulative = table.getChild(FIELD_CUMULATIVE)?.get(row) ?? 0n;
|
|
38
|
-
const diff = table.getChild(FIELD_DIFF)?.get(row) ?? 0n;
|
|
37
|
+
const cumulative = BigInt(table.getChild(FIELD_CUMULATIVE)?.get(row)) ?? 0n;
|
|
38
|
+
const diff = BigInt(table.getChild(FIELD_DIFF)?.get(row)) ?? 0n;
|
|
39
39
|
const onCopy = () => {
|
|
40
40
|
setIsCopied(true);
|
|
41
41
|
if (timeoutHandle !== null) {
|
|
@@ -32,8 +32,8 @@ export const IcicleGraphNodes = React.memo(function IcicleGraphNodesNoMemo({ tab
|
|
|
32
32
|
let childrenCumulative = BigInt(0);
|
|
33
33
|
const childrenElements = [];
|
|
34
34
|
childRows.forEach((child, i) => {
|
|
35
|
-
const xStart = Math.floor(xScale(childrenCumulative));
|
|
36
|
-
const c = cumulatives?.get(child);
|
|
35
|
+
const xStart = Math.floor(xScale(BigInt(childrenCumulative)));
|
|
36
|
+
const c = BigInt(cumulatives?.get(child));
|
|
37
37
|
childrenCumulative += c;
|
|
38
38
|
childrenElements.push(_jsx(IcicleNode, { table: table, row: child, mappingColors: mappingColors, x: xStart, y: 0, totalWidth: totalWidth, height: RowHeight, path: path, setCurPath: setCurPath, setHoveringRow: setHoveringRow, setHoveringLevel: setHoveringLevel, level: level, curPath: curPath, total: total, xScale: xScale, sortBy: sortBy, searchString: searchString, darkMode: darkMode, compareMode: compareMode }, `node-${level}-${i}`));
|
|
39
39
|
});
|
|
@@ -58,8 +58,8 @@ export const IcicleNode = React.memo(function IcicleNodeNoMemo({ table, row, map
|
|
|
58
58
|
// get the actual values from the columns
|
|
59
59
|
const mappingFile = arrowToString(mappingColumn?.get(row));
|
|
60
60
|
const functionName = arrowToString(functionNameColumn?.get(row));
|
|
61
|
-
const cumulative = cumulativeColumn?.get(row);
|
|
62
|
-
const diff = diffColumn?.get(row);
|
|
61
|
+
const cumulative = BigInt(cumulativeColumn?.get(row));
|
|
62
|
+
const diff = BigInt(diffColumn?.get(row));
|
|
63
63
|
const childRows = Array.from(table.getChild(FIELD_CHILDREN)?.get(row) ?? []);
|
|
64
64
|
// TODO: Maybe it's better to pass down the sorter function as prop instead of figuring this out here.
|
|
65
65
|
switch (sortBy) {
|
|
@@ -125,11 +125,11 @@ export const IcicleNode = React.memo(function IcicleNodeNoMemo({ table, row, map
|
|
|
125
125
|
const nextLevel = level + 1;
|
|
126
126
|
const nextCurPath = curPath.length === 0 ? [] : curPath.slice(1);
|
|
127
127
|
const newXScale = nextCurPath.length === 0 && curPath.length === 1
|
|
128
|
-
? scaleLinear([0n, cumulative], [0, totalWidth])
|
|
128
|
+
? scaleLinear([0n, BigInt(cumulative)], [0, totalWidth])
|
|
129
129
|
: xScale;
|
|
130
130
|
const width = nextCurPath.length > 0 || (nextCurPath.length === 0 && curPath.length === 1)
|
|
131
131
|
? totalWidth
|
|
132
|
-
: xScale(cumulative);
|
|
132
|
+
: xScale(BigInt(cumulative));
|
|
133
133
|
const { isHighlightEnabled = false, isHighlighted = false } = useMemo(() => {
|
|
134
134
|
if (searchString === undefined || searchString === '') {
|
|
135
135
|
return { isHighlightEnabled: false };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parca/profile",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.249",
|
|
4
4
|
"description": "Profile viewing libraries",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@parca/client": "^0.16.86",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"access": "public",
|
|
50
50
|
"registry": "https://registry.npmjs.org/"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "05cf63fe3be4153289f20f8c92b1a82add88339c"
|
|
53
53
|
}
|
|
@@ -74,8 +74,8 @@ const GraphTooltipArrowContent = ({
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
const locationAddress: bigint = table.getChild(FIELD_LOCATION_ADDRESS)?.get(row) ?? 0n;
|
|
77
|
-
const cumulative: bigint = table.getChild(FIELD_CUMULATIVE)?.get(row) ?? 0n;
|
|
78
|
-
const diff: bigint = table.getChild(FIELD_DIFF)?.get(row) ?? 0n;
|
|
77
|
+
const cumulative: bigint = BigInt(table.getChild(FIELD_CUMULATIVE)?.get(row)) ?? 0n;
|
|
78
|
+
const diff: bigint = BigInt(table.getChild(FIELD_DIFF)?.get(row)) ?? 0n;
|
|
79
79
|
|
|
80
80
|
const onCopy = (): void => {
|
|
81
81
|
setIsCopied(true);
|
|
@@ -88,8 +88,8 @@ export const IcicleGraphNodes = React.memo(function IcicleGraphNodesNoMemo({
|
|
|
88
88
|
let childrenCumulative = BigInt(0);
|
|
89
89
|
const childrenElements: ReactNode[] = [];
|
|
90
90
|
childRows.forEach((child, i) => {
|
|
91
|
-
const xStart = Math.floor(xScale(childrenCumulative));
|
|
92
|
-
const c
|
|
91
|
+
const xStart = Math.floor(xScale(BigInt(childrenCumulative)));
|
|
92
|
+
const c = BigInt(cumulatives?.get(child));
|
|
93
93
|
childrenCumulative += c;
|
|
94
94
|
|
|
95
95
|
childrenElements.push(
|
|
@@ -190,8 +190,8 @@ export const IcicleNode = React.memo(function IcicleNodeNoMemo({
|
|
|
190
190
|
// get the actual values from the columns
|
|
191
191
|
const mappingFile: string | null = arrowToString(mappingColumn?.get(row));
|
|
192
192
|
const functionName: string | null = arrowToString(functionNameColumn?.get(row));
|
|
193
|
-
const cumulative
|
|
194
|
-
const diff: bigint | null = diffColumn?.get(row);
|
|
193
|
+
const cumulative = BigInt(cumulativeColumn?.get(row));
|
|
194
|
+
const diff: bigint | null = BigInt(diffColumn?.get(row));
|
|
195
195
|
const childRows: number[] = Array.from(table.getChild(FIELD_CHILDREN)?.get(row) ?? []);
|
|
196
196
|
|
|
197
197
|
// TODO: Maybe it's better to pass down the sorter function as prop instead of figuring this out here.
|
|
@@ -260,13 +260,13 @@ export const IcicleNode = React.memo(function IcicleNodeNoMemo({
|
|
|
260
260
|
const nextCurPath = curPath.length === 0 ? [] : curPath.slice(1);
|
|
261
261
|
const newXScale =
|
|
262
262
|
nextCurPath.length === 0 && curPath.length === 1
|
|
263
|
-
? scaleLinear([0n, cumulative], [0, totalWidth])
|
|
263
|
+
? scaleLinear([0n, BigInt(cumulative)], [0, totalWidth])
|
|
264
264
|
: xScale;
|
|
265
265
|
|
|
266
266
|
const width: number =
|
|
267
267
|
nextCurPath.length > 0 || (nextCurPath.length === 0 && curPath.length === 1)
|
|
268
268
|
? totalWidth
|
|
269
|
-
: xScale(cumulative);
|
|
269
|
+
: xScale(BigInt(cumulative));
|
|
270
270
|
|
|
271
271
|
const {isHighlightEnabled = false, isHighlighted = false} = useMemo(() => {
|
|
272
272
|
if (searchString === undefined || searchString === '') {
|