@parca/profile 0.16.240 → 0.16.242

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.242](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.241...@parca/profile@0.16.242) (2023-08-31)
7
+
8
+ **Note:** Version bump only for package @parca/profile
9
+
10
+ ## [0.16.241](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.240...@parca/profile@0.16.241) (2023-08-31)
11
+
12
+ **Note:** Version bump only for package @parca/profile
13
+
6
14
  ## [0.16.240](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.239...@parca/profile@0.16.240) (2023-08-31)
7
15
 
8
16
  **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: "no data..." });
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) {
@@ -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,10 +1,10 @@
1
1
  {
2
2
  "name": "@parca/profile",
3
- "version": "0.16.240",
3
+ "version": "0.16.242",
4
4
  "description": "Profile viewing libraries",
5
5
  "dependencies": {
6
6
  "@parca/client": "^0.16.86",
7
- "@parca/components": "^0.16.187",
7
+ "@parca/components": "^0.16.188",
8
8
  "@parca/dynamicsize": "^0.16.54",
9
9
  "@parca/hooks": "^0.0.21",
10
10
  "@parca/parser": "^0.16.55",
@@ -16,7 +16,7 @@
16
16
  "d3": "7.8.5",
17
17
  "d3-scale": "^4.0.2",
18
18
  "d3-selection": "3.0.0",
19
- "graphviz-wasm": "3.0.0",
19
+ "graphviz-wasm": "3.0.1",
20
20
  "react-beautiful-dnd": "^13.1.1",
21
21
  "react-copy-to-clipboard": "^5.1.0",
22
22
  "react-flame-graph": "^1.4.0",
@@ -49,5 +49,5 @@
49
49
  "access": "public",
50
50
  "registry": "https://registry.npmjs.org/"
51
51
  },
52
- "gitHead": "86e4f37f0fdffafdc5bbe71e8efe04550af1ae59"
52
+ "gitHead": "38f61e5bc68000801734fc679bda583a75296643"
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">no data...</div>;
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>;
@@ -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) {