@parca/profile 0.19.150 → 0.19.151

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.19.151](https://github.com/parca-dev/parca/compare/@parca/profile@0.19.150...@parca/profile@0.19.151) (2026-05-18)
7
+
8
+ **Note:** Version bump only for package @parca/profile
9
+
6
10
  ## [0.19.150](https://github.com/parca-dev/parca/compare/@parca/profile@0.19.149...@parca/profile@0.19.150) (2026-05-08)
7
11
 
8
12
  **Note:** Version bump only for package @parca/profile
@@ -1,9 +1,7 @@
1
1
  import { QueryServiceClient } from '@parca/client';
2
- import type { NavigateFunction } from '@parca/utilities';
3
2
  interface ProfileExplorerCompareProps {
4
3
  queryClient: QueryServiceClient;
5
- navigateTo: NavigateFunction;
6
4
  }
7
- declare const ProfileExplorerCompare: ({ queryClient, navigateTo, }: ProfileExplorerCompareProps) => JSX.Element;
5
+ declare const ProfileExplorerCompare: ({ queryClient }: ProfileExplorerCompareProps) => JSX.Element;
8
6
  export default ProfileExplorerCompare;
9
7
  //# sourceMappingURL=ProfileExplorerCompare.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProfileExplorerCompare.d.ts","sourceRoot":"","sources":["../../src/ProfileExplorer/ProfileExplorerCompare.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAGjD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AAOvD,UAAU,2BAA2B;IACnC,WAAW,EAAE,kBAAkB,CAAC;IAChC,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED,QAAA,MAAM,sBAAsB,GAAI,8BAG7B,2BAA2B,KAAG,GAAG,CAAC,OAsHpC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"ProfileExplorerCompare.d.ts","sourceRoot":"","sources":["../../src/ProfileExplorer/ProfileExplorerCompare.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AASjD,UAAU,2BAA2B;IACnC,WAAW,EAAE,kBAAkB,CAAC;CACjC;AAED,QAAA,MAAM,sBAAsB,GAAI,iBAAe,2BAA2B,KAAG,GAAG,CAAC,OAoHhF,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -33,9 +33,8 @@ import { useCompareModeMeta } from '../hooks/useCompareModeMeta';
33
33
  import { useQueryState } from '../hooks/useQueryState';
34
34
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
35
35
  var ProfileExplorerCompare = function ProfileExplorerCompare(t0) {
36
- var $ = _c(44);
37
- var queryClient = t0.queryClient,
38
- navigateTo = t0.navigateTo;
36
+ var $ = _c(42);
37
+ var queryClient = t0.queryClient;
39
38
  var _useState = useState(true),
40
39
  _useState2 = _slicedToArray(_useState, 2),
41
40
  showMetricsGraph = _useState2[0],
@@ -153,7 +152,7 @@ var ProfileExplorerCompare = function ProfileExplorerCompare(t0) {
153
152
  t9 = $[20];
154
153
  }
155
154
  var t10;
156
- if ($[21] !== closeProfileA || $[22] !== navigateTo || $[23] !== queryClient || $[24] !== showMetricsGraph) {
155
+ if ($[21] !== closeProfileA || $[22] !== queryClient || $[23] !== showMetricsGraph) {
157
156
  t10 = /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
158
157
  className: "flex-column flex-1 p-2 shadow-md rounded-md"
159
158
  }, t9), {}, {
@@ -162,29 +161,27 @@ var ProfileExplorerCompare = function ProfileExplorerCompare(t0) {
162
161
  closeProfile: closeProfileA,
163
162
  enforcedProfileName: "",
164
163
  comparing: true,
165
- navigateTo: navigateTo,
166
164
  suffix: "_a",
167
165
  showMetricsGraph: showMetricsGraph,
168
166
  setDisplayHideMetricsGraphButton: setShowMetricsGraph
169
167
  })
170
168
  }));
171
169
  $[21] = closeProfileA;
172
- $[22] = navigateTo;
173
- $[23] = queryClient;
174
- $[24] = showMetricsGraph;
175
- $[25] = t10;
170
+ $[22] = queryClient;
171
+ $[23] = showMetricsGraph;
172
+ $[24] = t10;
176
173
  } else {
177
- t10 = $[25];
174
+ t10 = $[24];
178
175
  }
179
176
  var t11;
180
- if ($[26] === Symbol["for"]("react.memo_cache_sentinel")) {
177
+ if ($[25] === Symbol["for"]("react.memo_cache_sentinel")) {
181
178
  t11 = testId(TEST_IDS.COMPARE_SIDE_B);
182
- $[26] = t11;
179
+ $[25] = t11;
183
180
  } else {
184
- t11 = $[26];
181
+ t11 = $[25];
185
182
  }
186
183
  var t12;
187
- if ($[27] !== closeProfileB || $[28] !== enforcedProfileNameA || $[29] !== navigateTo || $[30] !== queryClient || $[31] !== showMetricsGraph) {
184
+ if ($[26] !== closeProfileB || $[27] !== enforcedProfileNameA || $[28] !== queryClient || $[29] !== showMetricsGraph) {
188
185
  t12 = /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
189
186
  className: "flex-column flex-1 p-2 shadow-md rounded-md"
190
187
  }, t11), {}, {
@@ -193,35 +190,33 @@ var ProfileExplorerCompare = function ProfileExplorerCompare(t0) {
193
190
  closeProfile: closeProfileB,
194
191
  enforcedProfileName: enforcedProfileNameA,
195
192
  comparing: true,
196
- navigateTo: navigateTo,
197
193
  suffix: "_b",
198
194
  showMetricsGraph: showMetricsGraph,
199
195
  setDisplayHideMetricsGraphButton: setShowMetricsGraph
200
196
  })
201
197
  }));
202
- $[27] = closeProfileB;
203
- $[28] = enforcedProfileNameA;
204
- $[29] = navigateTo;
205
- $[30] = queryClient;
206
- $[31] = showMetricsGraph;
207
- $[32] = t12;
198
+ $[26] = closeProfileB;
199
+ $[27] = enforcedProfileNameA;
200
+ $[28] = queryClient;
201
+ $[29] = showMetricsGraph;
202
+ $[30] = t12;
208
203
  } else {
209
- t12 = $[32];
204
+ t12 = $[30];
210
205
  }
211
206
  var t13;
212
- if ($[33] !== t10 || $[34] !== t12) {
207
+ if ($[31] !== t10 || $[32] !== t12) {
213
208
  t13 = /*#__PURE__*/_jsxs("div", {
214
209
  className: "flex justify-between gap-2 relative mb-2",
215
210
  children: [t10, t12]
216
211
  });
217
- $[33] = t10;
218
- $[34] = t12;
219
- $[35] = t13;
212
+ $[31] = t10;
213
+ $[32] = t12;
214
+ $[33] = t13;
220
215
  } else {
221
- t13 = $[35];
216
+ t13 = $[33];
222
217
  }
223
218
  var t14;
224
- if ($[36] !== isCompareAbsolute || $[37] !== profileSourceA || $[38] !== profileSourceB || $[39] !== queryClient) {
219
+ if ($[34] !== isCompareAbsolute || $[35] !== profileSourceA || $[36] !== profileSourceB || $[37] !== queryClient) {
225
220
  t14 = /*#__PURE__*/_jsx("div", {
226
221
  className: "grid grid-cols-1",
227
222
  children: profileSourceA != null && profileSourceB != null ? /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({}, testId(TEST_IDS.COMPARE_PROFILE_VIEW)), {}, {
@@ -238,24 +233,24 @@ var ProfileExplorerCompare = function ProfileExplorerCompare(t0) {
238
233
  })
239
234
  })
240
235
  });
241
- $[36] = isCompareAbsolute;
242
- $[37] = profileSourceA;
243
- $[38] = profileSourceB;
244
- $[39] = queryClient;
245
- $[40] = t14;
236
+ $[34] = isCompareAbsolute;
237
+ $[35] = profileSourceA;
238
+ $[36] = profileSourceB;
239
+ $[37] = queryClient;
240
+ $[38] = t14;
246
241
  } else {
247
- t14 = $[40];
242
+ t14 = $[38];
248
243
  }
249
244
  var t15;
250
- if ($[41] !== t13 || $[42] !== t14) {
245
+ if ($[39] !== t13 || $[40] !== t14) {
251
246
  t15 = /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({}, t8), {}, {
252
247
  children: [t13, t14]
253
248
  }));
254
- $[41] = t13;
255
- $[42] = t14;
256
- $[43] = t15;
249
+ $[39] = t13;
250
+ $[40] = t14;
251
+ $[41] = t15;
257
252
  } else {
258
- t15 = $[43];
253
+ t15 = $[41];
259
254
  }
260
255
  return t15;
261
256
  };
@@ -1,9 +1,7 @@
1
1
  import { QueryServiceClient } from '@parca/client';
2
- import type { NavigateFunction } from '@parca/utilities';
3
2
  interface ProfileExplorerSingleProps {
4
3
  queryClient: QueryServiceClient;
5
- navigateTo: NavigateFunction;
6
4
  }
7
- declare const ProfileExplorerSingle: ({ queryClient, navigateTo, }: ProfileExplorerSingleProps) => JSX.Element;
5
+ declare const ProfileExplorerSingle: ({ queryClient }: ProfileExplorerSingleProps) => JSX.Element;
8
6
  export default ProfileExplorerSingle;
9
7
  //# sourceMappingURL=ProfileExplorerSingle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProfileExplorerSingle.d.ts","sourceRoot":"","sources":["../../src/ProfileExplorer/ProfileExplorerSingle.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AAMvD,UAAU,0BAA0B;IAClC,WAAW,EAAE,kBAAkB,CAAC;IAChC,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED,QAAA,MAAM,qBAAqB,GAAI,8BAG5B,0BAA0B,KAAG,GAAG,CAAC,OAmCnC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"ProfileExplorerSingle.d.ts","sourceRoot":"","sources":["../../src/ProfileExplorer/ProfileExplorerSingle.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAMjD,UAAU,0BAA0B;IAClC,WAAW,EAAE,kBAAkB,CAAC;CACjC;AAED,QAAA,MAAM,qBAAqB,GAAI,iBAAe,0BAA0B,KAAG,GAAG,CAAC,OAkC9E,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -24,9 +24,8 @@ import ProfileSelector from '../ProfileSelector';
24
24
  import { useQueryState } from '../hooks/useQueryState';
25
25
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
26
26
  var ProfileExplorerSingle = function ProfileExplorerSingle(t0) {
27
- var $ = _c(15);
28
- var queryClient = t0.queryClient,
29
- navigateTo = t0.navigateTo;
27
+ var $ = _c(14);
28
+ var queryClient = t0.queryClient;
30
29
  var _useState = useState(true),
31
30
  _useState2 = _slicedToArray(_useState, 2),
32
31
  showMetricsGraph = _useState2[0],
@@ -64,7 +63,7 @@ var ProfileExplorerSingle = function ProfileExplorerSingle(t0) {
64
63
  }
65
64
  var handleSwitchToFifteenMinutes = t2;
66
65
  var t3;
67
- if ($[4] !== navigateTo || $[5] !== queryClient || $[6] !== showMetricsGraph) {
66
+ if ($[4] !== queryClient || $[5] !== showMetricsGraph) {
68
67
  t3 = /*#__PURE__*/_jsx("div", {
69
68
  className: "relative",
70
69
  children: /*#__PURE__*/_jsx(ProfileSelector, {
@@ -72,43 +71,41 @@ var ProfileExplorerSingle = function ProfileExplorerSingle(t0) {
72
71
  closeProfile: _temp,
73
72
  comparing: false,
74
73
  enforcedProfileName: "",
75
- navigateTo: navigateTo,
76
74
  suffix: "_a",
77
75
  showMetricsGraph: showMetricsGraph,
78
76
  setDisplayHideMetricsGraphButton: setShowMetricsGraph
79
77
  })
80
78
  });
81
- $[4] = navigateTo;
82
- $[5] = queryClient;
83
- $[6] = showMetricsGraph;
84
- $[7] = t3;
79
+ $[4] = queryClient;
80
+ $[5] = showMetricsGraph;
81
+ $[6] = t3;
85
82
  } else {
86
- t3 = $[7];
83
+ t3 = $[6];
87
84
  }
88
85
  var t4;
89
- if ($[8] !== handleSwitchToFifteenMinutes || $[9] !== profileSource || $[10] !== queryClient) {
86
+ if ($[7] !== handleSwitchToFifteenMinutes || $[8] !== profileSource || $[9] !== queryClient) {
90
87
  t4 = profileSource != null && /*#__PURE__*/_jsx(ProfileViewWithData, {
91
88
  queryClient: queryClient,
92
89
  profileSource: profileSource,
93
90
  onSwitchToFifteenMinutes: handleSwitchToFifteenMinutes
94
91
  });
95
- $[8] = handleSwitchToFifteenMinutes;
96
- $[9] = profileSource;
97
- $[10] = queryClient;
98
- $[11] = t4;
92
+ $[7] = handleSwitchToFifteenMinutes;
93
+ $[8] = profileSource;
94
+ $[9] = queryClient;
95
+ $[10] = t4;
99
96
  } else {
100
- t4 = $[11];
97
+ t4 = $[10];
101
98
  }
102
99
  var t5;
103
- if ($[12] !== t3 || $[13] !== t4) {
100
+ if ($[11] !== t3 || $[12] !== t4) {
104
101
  t5 = /*#__PURE__*/_jsxs(_Fragment, {
105
102
  children: [t3, t4]
106
103
  });
107
- $[12] = t3;
108
- $[13] = t4;
109
- $[14] = t5;
104
+ $[11] = t3;
105
+ $[12] = t4;
106
+ $[13] = t5;
110
107
  } else {
111
- t5 = $[14];
108
+ t5 = $[13];
112
109
  }
113
110
  return t5;
114
111
  };
@@ -1,9 +1,7 @@
1
1
  import { QueryServiceClient } from '@parca/client';
2
- import { type NavigateFunction } from '@parca/utilities';
3
2
  interface ProfileExplorerProps {
4
3
  queryClient: QueryServiceClient;
5
- navigateTo: NavigateFunction;
6
4
  }
7
- declare const ProfileExplorer: ({ queryClient, navigateTo }: ProfileExplorerProps) => JSX.Element;
5
+ declare const ProfileExplorer: ({ queryClient }: ProfileExplorerProps) => JSX.Element;
8
6
  export default ProfileExplorer;
9
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ProfileExplorer/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAGjD,OAAO,EAA4B,KAAK,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AAOlF,UAAU,oBAAoB;IAC5B,WAAW,EAAE,kBAAkB,CAAC;IAChC,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAuDD,QAAA,MAAM,eAAe,GAAI,6BAA2B,oBAAoB,KAAG,GAAG,CAAC,OAc9E,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ProfileExplorer/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAUjD,UAAU,oBAAoB;IAC5B,WAAW,EAAE,kBAAkB,CAAC;CACjC;AAuDD,QAAA,MAAM,eAAe,GAAI,iBAAe,oBAAoB,KAAG,GAAG,CAAC,OAclE,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -43,9 +43,8 @@ var ErrorContent = function ErrorContent(t0) {
43
43
  return t1;
44
44
  };
45
45
  var ProfileExplorerApp = function ProfileExplorerApp(t0) {
46
- var $ = _c(20);
47
- var queryClient = t0.queryClient,
48
- navigateTo = t0.navigateTo;
46
+ var $ = _c(18);
47
+ var queryClient = t0.queryClient;
49
48
  var _useHasProfileData = useHasProfileData(queryClient),
50
49
  hasProfileDataLoading = _useHasProfileData.loading,
51
50
  hasProfileData = _useHasProfileData.data,
@@ -137,37 +136,32 @@ var ProfileExplorerApp = function ProfileExplorerApp(t0) {
137
136
  }
138
137
  if (isCompareMode) {
139
138
  var _t5;
140
- if ($[14] !== navigateTo || $[15] !== queryClient) {
139
+ if ($[14] !== queryClient) {
141
140
  _t5 = /*#__PURE__*/_jsx(ProfileExplorerCompare, {
142
- queryClient: queryClient,
143
- navigateTo: navigateTo
141
+ queryClient: queryClient
144
142
  });
145
- $[14] = navigateTo;
146
- $[15] = queryClient;
147
- $[16] = _t5;
143
+ $[14] = queryClient;
144
+ $[15] = _t5;
148
145
  } else {
149
- _t5 = $[16];
146
+ _t5 = $[15];
150
147
  }
151
148
  return _t5;
152
149
  }
153
150
  var t3;
154
- if ($[17] !== navigateTo || $[18] !== queryClient) {
151
+ if ($[16] !== queryClient) {
155
152
  t3 = /*#__PURE__*/_jsx(ProfileExplorerSingle, {
156
- queryClient: queryClient,
157
- navigateTo: navigateTo
153
+ queryClient: queryClient
158
154
  });
159
- $[17] = navigateTo;
160
- $[18] = queryClient;
161
- $[19] = t3;
155
+ $[16] = queryClient;
156
+ $[17] = t3;
162
157
  } else {
163
- t3 = $[19];
158
+ t3 = $[17];
164
159
  }
165
160
  return t3;
166
161
  };
167
162
  var ProfileExplorer = function ProfileExplorer(t0) {
168
- var $ = _c(8);
169
- var queryClient = t0.queryClient,
170
- navigateTo = t0.navigateTo;
163
+ var $ = _c(7);
164
+ var queryClient = t0.queryClient;
171
165
  var _useParcaContext2 = useParcaContext(),
172
166
  additionalFlamegraphColorProfiles = _useParcaContext2.additionalFlamegraphColorProfiles;
173
167
  var t1;
@@ -181,30 +175,28 @@ var ProfileExplorer = function ProfileExplorer(t0) {
181
175
  var _t6 = t1,
182
176
  reduxStore = _t6.store;
183
177
  var t2;
184
- if ($[2] !== navigateTo || $[3] !== queryClient) {
178
+ if ($[2] !== queryClient) {
185
179
  t2 = /*#__PURE__*/_jsx(KeyDownProvider, {
186
180
  children: /*#__PURE__*/_jsx(ProfileExplorerApp, {
187
- queryClient: queryClient,
188
- navigateTo: navigateTo
181
+ queryClient: queryClient
189
182
  })
190
183
  });
191
- $[2] = navigateTo;
192
- $[3] = queryClient;
193
- $[4] = t2;
184
+ $[2] = queryClient;
185
+ $[3] = t2;
194
186
  } else {
195
- t2 = $[4];
187
+ t2 = $[3];
196
188
  }
197
189
  var t3;
198
- if ($[5] !== reduxStore || $[6] !== t2) {
190
+ if ($[4] !== reduxStore || $[5] !== t2) {
199
191
  t3 = /*#__PURE__*/_jsx(Provider, {
200
192
  store: reduxStore,
201
193
  children: t2
202
194
  });
203
- $[5] = reduxStore;
204
- $[6] = t2;
205
- $[7] = t3;
195
+ $[4] = reduxStore;
196
+ $[5] = t2;
197
+ $[6] = t3;
206
198
  } else {
207
- t3 = $[7];
199
+ t3 = $[6];
208
200
  }
209
201
  return t3;
210
202
  };
@@ -1,7 +1,6 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
2
  import { RpcError } from '@protobuf-ts/runtime-rpc';
3
3
  import { ProfileTypesResponse, QueryServiceClient } from '@parca/client';
4
- import { type NavigateFunction } from '@parca/utilities';
5
4
  export interface QuerySelection {
6
5
  expression: string;
7
6
  from: number;
@@ -22,7 +21,6 @@ interface ProfileSelectorProps extends ProfileSelectorFeatures {
22
21
  closeProfile: () => void;
23
22
  enforcedProfileName: string;
24
23
  comparing: boolean;
25
- navigateTo: NavigateFunction;
26
24
  setDisplayHideMetricsGraphButton?: Dispatch<SetStateAction<boolean>>;
27
25
  suffix?: '_a' | '_b';
28
26
  onSearchHook?: () => void;
@@ -33,6 +31,6 @@ export interface IProfileTypesResult {
33
31
  error?: RpcError;
34
32
  }
35
33
  export declare const useProfileTypes: (client: QueryServiceClient, start?: number, end?: number) => IProfileTypesResult;
36
- declare const ProfileSelector: ({ queryClient, closeProfile, enforcedProfileName, comparing, navigateTo: _navigateTo, showMetricsGraph, showSumBySelector, showProfileTypeSelector, setDisplayHideMetricsGraphButton, suffix, onSearchHook, }: ProfileSelectorProps) => JSX.Element;
34
+ declare const ProfileSelector: ({ queryClient, closeProfile, enforcedProfileName, comparing, showMetricsGraph, showSumBySelector, showProfileTypeSelector, setDisplayHideMetricsGraphButton, suffix, onSearchHook, }: ProfileSelectorProps) => JSX.Element;
37
35
  export default ProfileSelector;
38
36
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ProfileSelector/index.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAC,QAAQ,EAAE,cAAc,EAAyC,MAAM,OAAO,CAAC;AAEvF,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAGlD,OAAO,EAAsB,oBAAoB,EAAE,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAK5F,OAAO,EAAyB,KAAK,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AAgB/E,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IAC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AAC;AAEF,eAAe,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parca/profile",
3
- "version": "0.19.150",
3
+ "version": "0.19.151",
4
4
  "description": "Profile viewing libraries",
5
5
  "dependencies": {
6
6
  "@floating-ui/react": "^0.27.12",
@@ -89,5 +89,5 @@
89
89
  "access": "public",
90
90
  "registry": "https://registry.npmjs.org/"
91
91
  },
92
- "gitHead": "fbe31dc82bc0e7db073ecacf3fba631fd4d86759"
92
+ "gitHead": "408bc28ad4183ef9f0ca9538977c26fd7883778b"
93
93
  }
@@ -16,7 +16,6 @@ import {useCallback, useEffect, useMemo, useState} from 'react';
16
16
  import {QueryServiceClient} from '@parca/client';
17
17
  import {Query} from '@parca/parser';
18
18
  import {TEST_IDS, testId} from '@parca/test-utils';
19
- import type {NavigateFunction} from '@parca/utilities';
20
19
 
21
20
  import {ProfileDiffSource, ProfileViewWithData} from '..';
22
21
  import ProfileSelector from '../ProfileSelector';
@@ -25,13 +24,9 @@ import {useQueryState} from '../hooks/useQueryState';
25
24
 
26
25
  interface ProfileExplorerCompareProps {
27
26
  queryClient: QueryServiceClient;
28
- navigateTo: NavigateFunction;
29
27
  }
30
28
 
31
- const ProfileExplorerCompare = ({
32
- queryClient,
33
- navigateTo,
34
- }: ProfileExplorerCompareProps): JSX.Element => {
29
+ const ProfileExplorerCompare = ({queryClient}: ProfileExplorerCompareProps): JSX.Element => {
35
30
  const [showMetricsGraph, setShowMetricsGraph] = useState(true);
36
31
  const {closeCompareMode, isCompareMode, isCompareAbsolute} = useCompareModeMeta();
37
32
 
@@ -107,7 +102,6 @@ const ProfileExplorerCompare = ({
107
102
  closeProfile={closeProfileA}
108
103
  enforcedProfileName={''}
109
104
  comparing={true}
110
- navigateTo={navigateTo}
111
105
  suffix="_a"
112
106
  showMetricsGraph={showMetricsGraph}
113
107
  setDisplayHideMetricsGraphButton={setShowMetricsGraph}
@@ -122,7 +116,6 @@ const ProfileExplorerCompare = ({
122
116
  closeProfile={closeProfileB}
123
117
  enforcedProfileName={enforcedProfileNameA}
124
118
  comparing={true}
125
- navigateTo={navigateTo}
126
119
  suffix="_b"
127
120
  showMetricsGraph={showMetricsGraph}
128
121
  setDisplayHideMetricsGraphButton={setShowMetricsGraph}
@@ -14,7 +14,6 @@
14
14
  import {useCallback, useState} from 'react';
15
15
 
16
16
  import {QueryServiceClient} from '@parca/client';
17
- import type {NavigateFunction} from '@parca/utilities';
18
17
 
19
18
  import {ProfileViewWithData} from '..';
20
19
  import ProfileSelector from '../ProfileSelector';
@@ -22,13 +21,9 @@ import {useQueryState} from '../hooks/useQueryState';
22
21
 
23
22
  interface ProfileExplorerSingleProps {
24
23
  queryClient: QueryServiceClient;
25
- navigateTo: NavigateFunction;
26
24
  }
27
25
 
28
- const ProfileExplorerSingle = ({
29
- queryClient,
30
- navigateTo,
31
- }: ProfileExplorerSingleProps): JSX.Element => {
26
+ const ProfileExplorerSingle = ({queryClient}: ProfileExplorerSingleProps): JSX.Element => {
32
27
  const [showMetricsGraph, setShowMetricsGraph] = useState(true);
33
28
  const {profileSource, setDraftTimeRange, commitDraft} = useQueryState({suffix: '_a'});
34
29
 
@@ -47,7 +42,6 @@ const ProfileExplorerSingle = ({
47
42
  closeProfile={() => {}} // eslint-disable-line @typescript-eslint/no-empty-function
48
43
  comparing={false}
49
44
  enforcedProfileName={''}
50
- navigateTo={navigateTo}
51
45
  suffix="_a"
52
46
  showMetricsGraph={showMetricsGraph}
53
47
  setDisplayHideMetricsGraphButton={setShowMetricsGraph}
@@ -18,7 +18,7 @@ import {Provider} from 'react-redux';
18
18
  import {QueryServiceClient} from '@parca/client';
19
19
  import {KeyDownProvider, useParcaContext} from '@parca/components';
20
20
  import {createStore} from '@parca/store';
21
- import {capitalizeOnlyFirstLetter, type NavigateFunction} from '@parca/utilities';
21
+ import {capitalizeOnlyFirstLetter} from '@parca/utilities';
22
22
 
23
23
  import {useCompareModeMeta} from '../hooks/useCompareModeMeta';
24
24
  import {useHasProfileData} from '../useHasProfileData';
@@ -27,7 +27,6 @@ import ProfileExplorerSingle from './ProfileExplorerSingle';
27
27
 
28
28
  interface ProfileExplorerProps {
29
29
  queryClient: QueryServiceClient;
30
- navigateTo: NavigateFunction;
31
30
  }
32
31
 
33
32
  const ErrorContent = ({errorMessage}: {errorMessage: string}): JSX.Element => {
@@ -41,7 +40,7 @@ const ErrorContent = ({errorMessage}: {errorMessage: string}): JSX.Element => {
41
40
  );
42
41
  };
43
42
 
44
- const ProfileExplorerApp = ({queryClient, navigateTo}: ProfileExplorerProps): JSX.Element => {
43
+ const ProfileExplorerApp = ({queryClient}: ProfileExplorerProps): JSX.Element => {
45
44
  const {
46
45
  loading: hasProfileDataLoading,
47
46
  data: hasProfileData,
@@ -77,13 +76,13 @@ const ProfileExplorerApp = ({queryClient, navigateTo}: ProfileExplorerProps): JS
77
76
  }
78
77
 
79
78
  if (isCompareMode) {
80
- return <ProfileExplorerCompare queryClient={queryClient} navigateTo={navigateTo} />;
79
+ return <ProfileExplorerCompare queryClient={queryClient} />;
81
80
  }
82
81
 
83
- return <ProfileExplorerSingle queryClient={queryClient} navigateTo={navigateTo} />;
82
+ return <ProfileExplorerSingle queryClient={queryClient} />;
84
83
  };
85
84
 
86
- const ProfileExplorer = ({queryClient, navigateTo}: ProfileExplorerProps): JSX.Element => {
85
+ const ProfileExplorer = ({queryClient}: ProfileExplorerProps): JSX.Element => {
87
86
  const {additionalFlamegraphColorProfiles} = useParcaContext();
88
87
 
89
88
  const {store: reduxStore} = useMemo(() => {
@@ -93,7 +92,7 @@ const ProfileExplorer = ({queryClient, navigateTo}: ProfileExplorerProps): JSX.E
93
92
  return (
94
93
  <Provider store={reduxStore}>
95
94
  <KeyDownProvider>
96
- <ProfileExplorerApp queryClient={queryClient} navigateTo={navigateTo} />
95
+ <ProfileExplorerApp queryClient={queryClient} />
97
96
  </KeyDownProvider>
98
97
  </Provider>
99
98
  );
@@ -21,7 +21,7 @@ import {DateTimeRange, IconButton, useGrpcMetadata, useParcaContext} from '@parc
21
21
  import {CloseIcon} from '@parca/icons';
22
22
  import {Query} from '@parca/parser';
23
23
  import {TEST_IDS, testId} from '@parca/test-utils';
24
- import {millisToProtoTimestamp, type NavigateFunction} from '@parca/utilities';
24
+ import {millisToProtoTimestamp} from '@parca/utilities';
25
25
 
26
26
  import {
27
27
  ProfileFilter,
@@ -59,7 +59,6 @@ interface ProfileSelectorProps extends ProfileSelectorFeatures {
59
59
  closeProfile: () => void;
60
60
  enforcedProfileName: string;
61
61
  comparing: boolean;
62
- navigateTo: NavigateFunction;
63
62
  setDisplayHideMetricsGraphButton?: Dispatch<SetStateAction<boolean>>;
64
63
  suffix?: '_a' | '_b'; // For comparison mode
65
64
  onSearchHook?: () => void;
@@ -104,7 +103,6 @@ const ProfileSelector = ({
104
103
  closeProfile,
105
104
  enforcedProfileName,
106
105
  comparing,
107
- navigateTo: _navigateTo,
108
106
  showMetricsGraph = true,
109
107
  showSumBySelector = true,
110
108
  showProfileTypeSelector = true,