@parca/profile 0.16.206 → 0.16.208
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.208](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.207...@parca/profile@0.16.208) (2023-07-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @parca/profile
|
|
9
|
+
|
|
10
|
+
## [0.16.207](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.206...@parca/profile@0.16.207) (2023-07-12)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @parca/profile
|
|
13
|
+
|
|
6
14
|
## 0.16.206 (2023-07-12)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @parca/profile
|
|
@@ -69,7 +69,17 @@ export const IcicleNode = React.memo(function IcicleNodeNoMemo({ table, row, map
|
|
|
69
69
|
// TODO: Support fallthrough to comparing addresses or something
|
|
70
70
|
const afn = functionNameColumn?.get(a);
|
|
71
71
|
const bfn = functionNameColumn?.get(b);
|
|
72
|
-
|
|
72
|
+
if (afn !== null && bfn !== null) {
|
|
73
|
+
return afn.localeCompare(bfn);
|
|
74
|
+
}
|
|
75
|
+
if (afn === null && bfn !== null) {
|
|
76
|
+
return -1;
|
|
77
|
+
}
|
|
78
|
+
if (afn !== null && bfn === null) {
|
|
79
|
+
return 1;
|
|
80
|
+
}
|
|
81
|
+
// both are null
|
|
82
|
+
return 0;
|
|
73
83
|
});
|
|
74
84
|
break;
|
|
75
85
|
case FIELD_CUMULATIVE:
|
|
@@ -87,10 +97,10 @@ export const IcicleNode = React.memo(function IcicleNodeNoMemo({ table, row, map
|
|
|
87
97
|
return Number(bDiff - aDiff);
|
|
88
98
|
}
|
|
89
99
|
if (aDiff === null && bDiff !== null) {
|
|
90
|
-
return 1;
|
|
100
|
+
return -1;
|
|
91
101
|
}
|
|
92
102
|
if (aDiff !== null && bDiff === null) {
|
|
93
|
-
return
|
|
103
|
+
return 1;
|
|
94
104
|
}
|
|
95
105
|
// both are null
|
|
96
106
|
return 0;
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parca/profile",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.208",
|
|
4
4
|
"description": "Profile viewing libraries",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@parca/client": "^0.16.
|
|
7
|
-
"@parca/components": "^0.16.
|
|
6
|
+
"@parca/client": "^0.16.80",
|
|
7
|
+
"@parca/components": "^0.16.167",
|
|
8
8
|
"@parca/dynamicsize": "^0.16.54",
|
|
9
|
-
"@parca/hooks": "^0.0.
|
|
9
|
+
"@parca/hooks": "^0.0.15",
|
|
10
10
|
"@parca/parser": "^0.16.55",
|
|
11
|
-
"@parca/store": "^0.16.
|
|
12
|
-
"@parca/utilities": "^0.0.
|
|
11
|
+
"@parca/store": "^0.16.91",
|
|
12
|
+
"@parca/utilities": "^0.0.20",
|
|
13
13
|
"@tanstack/react-query": "^4.0.5",
|
|
14
14
|
"@types/react-beautiful-dnd": "^13.1.3",
|
|
15
15
|
"apache-arrow": "^12.0.0",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"access": "public",
|
|
48
48
|
"registry": "https://registry.npmjs.org/"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "6598149618b644783f5d638b6a913026cb8adc25"
|
|
51
51
|
}
|
|
@@ -190,9 +190,19 @@ export const IcicleNode = React.memo(function IcicleNodeNoMemo({
|
|
|
190
190
|
case FIELD_FUNCTION_NAME:
|
|
191
191
|
childRows.sort((a, b) => {
|
|
192
192
|
// TODO: Support fallthrough to comparing addresses or something
|
|
193
|
-
const afn: string = functionNameColumn?.get(a);
|
|
194
|
-
const bfn: string = functionNameColumn?.get(b);
|
|
195
|
-
|
|
193
|
+
const afn: string | null = functionNameColumn?.get(a);
|
|
194
|
+
const bfn: string | null = functionNameColumn?.get(b);
|
|
195
|
+
if (afn !== null && bfn !== null) {
|
|
196
|
+
return afn.localeCompare(bfn);
|
|
197
|
+
}
|
|
198
|
+
if (afn === null && bfn !== null) {
|
|
199
|
+
return -1;
|
|
200
|
+
}
|
|
201
|
+
if (afn !== null && bfn === null) {
|
|
202
|
+
return 1;
|
|
203
|
+
}
|
|
204
|
+
// both are null
|
|
205
|
+
return 0;
|
|
196
206
|
});
|
|
197
207
|
break;
|
|
198
208
|
case FIELD_CUMULATIVE:
|
|
@@ -210,10 +220,10 @@ export const IcicleNode = React.memo(function IcicleNodeNoMemo({
|
|
|
210
220
|
return Number(bDiff - aDiff);
|
|
211
221
|
}
|
|
212
222
|
if (aDiff === null && bDiff !== null) {
|
|
213
|
-
return 1;
|
|
223
|
+
return -1;
|
|
214
224
|
}
|
|
215
225
|
if (aDiff !== null && bDiff === null) {
|
|
216
|
-
return
|
|
226
|
+
return 1;
|
|
217
227
|
}
|
|
218
228
|
// both are null
|
|
219
229
|
return 0;
|