@parca/profile 0.16.240 → 0.16.241
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.241](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.240...@parca/profile@0.16.241) (2023-08-31)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @parca/profile
|
|
9
|
+
|
|
6
10
|
## [0.16.240](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.239...@parca/profile@0.16.240) (2023-08-31)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @parca/profile
|
|
@@ -91,7 +91,7 @@ const ProfileIcicleGraph = function ProfileIcicleGraphNonMemo({ graph, table, to
|
|
|
91
91
|
return _jsxs("div", { className: "flex justify-center p-10", children: ["An error occurred: ", error.message] });
|
|
92
92
|
}
|
|
93
93
|
if (graph === undefined && table === undefined)
|
|
94
|
-
return _jsx("div", { className: "mx-auto text-center", children: "
|
|
94
|
+
return _jsx("div", { className: "mx-auto text-center", children: "No data..." });
|
|
95
95
|
if (total === 0n && !loading)
|
|
96
96
|
return _jsx("div", { className: "mx-auto text-center", children: "Profile has no samples" });
|
|
97
97
|
if (isTrimmed) {
|
package/dist/Table/index.js
CHANGED
|
@@ -22,6 +22,7 @@ export const Table = React.memo(function Table({ data, sampleUnit: unit, navigat
|
|
|
22
22
|
const router = parseParams(window?.location.search);
|
|
23
23
|
const [rawDashboardItems] = useURLState({ param: 'dashboard_items' });
|
|
24
24
|
const [rawcompareMode] = useURLState({ param: 'compare_a' });
|
|
25
|
+
const [filterByFunctionInput] = useURLState({ param: 'filter_by_function' });
|
|
25
26
|
const compareMode = rawcompareMode === undefined ? false : rawcompareMode === 'true';
|
|
26
27
|
const dashboardItems = useMemo(() => {
|
|
27
28
|
if (rawDashboardItems !== undefined) {
|
|
@@ -100,10 +101,10 @@ export const Table = React.memo(function Table({ data, sampleUnit: unit, navigat
|
|
|
100
101
|
if (navigateTo != null) {
|
|
101
102
|
navigateTo('/', {
|
|
102
103
|
...router,
|
|
103
|
-
...{ search_string: '' },
|
|
104
|
+
...{ search_string: filterByFunctionInput ?? '' },
|
|
104
105
|
}, { replace: true });
|
|
105
106
|
}
|
|
106
|
-
}, [navigateTo, router]);
|
|
107
|
+
}, [navigateTo, router, filterByFunctionInput]);
|
|
107
108
|
useEffect(() => {
|
|
108
109
|
if (setActionButtons === undefined) {
|
|
109
110
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parca/profile",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.241",
|
|
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": "39455561ec0a34a25d5eeb32c933da2dbbf2a604"
|
|
53
53
|
}
|
|
@@ -188,7 +188,7 @@ const ProfileIcicleGraph = function ProfileIcicleGraphNonMemo({
|
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
if (graph === undefined && table === undefined)
|
|
191
|
-
return <div className="mx-auto text-center">
|
|
191
|
+
return <div className="mx-auto text-center">No data...</div>;
|
|
192
192
|
|
|
193
193
|
if (total === 0n && !loading)
|
|
194
194
|
return <div className="mx-auto text-center">Profile has no samples</div>;
|
package/src/Table/index.tsx
CHANGED
|
@@ -57,6 +57,7 @@ export const Table = React.memo(function Table({
|
|
|
57
57
|
const router = parseParams(window?.location.search);
|
|
58
58
|
const [rawDashboardItems] = useURLState({param: 'dashboard_items'});
|
|
59
59
|
const [rawcompareMode] = useURLState({param: 'compare_a'});
|
|
60
|
+
const [filterByFunctionInput] = useURLState({param: 'filter_by_function'});
|
|
60
61
|
|
|
61
62
|
const compareMode: boolean = rawcompareMode === undefined ? false : rawcompareMode === 'true';
|
|
62
63
|
|
|
@@ -158,12 +159,12 @@ export const Table = React.memo(function Table({
|
|
|
158
159
|
'/',
|
|
159
160
|
{
|
|
160
161
|
...router,
|
|
161
|
-
...{search_string: ''},
|
|
162
|
+
...{search_string: filterByFunctionInput ?? ''},
|
|
162
163
|
},
|
|
163
164
|
{replace: true}
|
|
164
165
|
);
|
|
165
166
|
}
|
|
166
|
-
}, [navigateTo, router]);
|
|
167
|
+
}, [navigateTo, router, filterByFunctionInput]);
|
|
167
168
|
|
|
168
169
|
useEffect(() => {
|
|
169
170
|
if (setActionButtons === undefined) {
|