@parca/profile 0.19.123 → 0.19.125

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.19.125](https://github.com/parca-dev/parca/compare/@parca/profile@0.19.124...@parca/profile@0.19.125) (2026-02-18)
7
+
8
+ **Note:** Version bump only for package @parca/profile
9
+
10
+ ## [0.19.124](https://github.com/parca-dev/parca/compare/@parca/profile@0.19.123...@parca/profile@0.19.124) (2026-02-18)
11
+
12
+ **Note:** Version bump only for package @parca/profile
13
+
6
14
  ## [0.19.123](https://github.com/parca-dev/parca/compare/@parca/profile@0.19.122...@parca/profile@0.19.123) (2026-02-16)
7
15
 
8
16
  **Note:** Version bump only for package @parca/profile
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ProfileSelector/index.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAC,QAAQ,EAAE,cAAc,EAAoD,MAAM,OAAO,CAAC;AAElG,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAsB,oBAAoB,EAAE,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAY5F,OAAO,EAAyB,KAAK,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AAe/E,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,uBAAuB;IAC/B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,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,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,uBAAuB;IAC/B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAED,UAAU,oBAAqB,SAAQ,uBAAuB;IAC5D,WAAW,EAAE,kBAAkB,CAAC;IAChC,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,gCAAgC,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACrE,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB;AAED,eAAO,MAAM,eAAe,GAC1B,QAAQ,kBAAkB,EAC1B,QAAQ,MAAM,EACd,MAAM,MAAM,KACX,mBAsBF,CAAC;AAEF,QAAA,MAAM,eAAe,GAAI,kMAYtB,oBAAoB,KAAG,GAAG,CAAC,OA4Q7B,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -153,6 +153,7 @@ const ProfileSelector = ({ queryClient, closeProfile, enforcedProfileName, compa
153
153
  querySelection,
154
154
  navigateTo,
155
155
  loading: sumByLoading,
156
+ defaultProfileType: viewComponent?.defaultProfileType,
156
157
  });
157
158
  const searchDisabled = queryExpressionString === undefined ||
158
159
  queryExpressionString === '' ||
@@ -9,7 +9,8 @@ interface Props {
9
9
  querySelection: QuerySelection;
10
10
  navigateTo: NavigateFunction;
11
11
  loading: boolean;
12
+ defaultProfileType?: string;
12
13
  }
13
- export declare const useAutoQuerySelector: ({ selectedProfileName, profileTypesData, setProfileName, setQueryExpression, querySelection, navigateTo, loading, }: Props) => void;
14
+ export declare const useAutoQuerySelector: ({ selectedProfileName, profileTypesData, setProfileName, setQueryExpression, querySelection, navigateTo, loading, defaultProfileType, }: Props) => void;
14
15
  export {};
15
16
  //# sourceMappingURL=useAutoQuerySelector.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAutoQuerySelector.d.ts","sourceRoot":"","sources":["../../src/ProfileSelector/useAutoQuerySelector.ts"],"names":[],"mappings":"AAeA,OAAO,EAAC,oBAAoB,EAAC,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAC,KAAK,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAGlD,UAAU,KAAK;IACb,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACnD,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,cAAc,EAAE,cAAc,CAAC;IAC/B,UAAU,EAAE,gBAAgB,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,oBAAoB,GAAI,qHAQlC,KAAK,KAAG,IAwJV,CAAC"}
1
+ {"version":3,"file":"useAutoQuerySelector.d.ts","sourceRoot":"","sources":["../../src/ProfileSelector/useAutoQuerySelector.ts"],"names":[],"mappings":"AAeA,OAAO,EAAC,oBAAoB,EAAC,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAC,KAAK,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAGlD,UAAU,KAAK;IACb,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACnD,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,cAAc,EAAE,cAAc,CAAC;IAC/B,UAAU,EAAE,gBAAgB,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,eAAO,MAAM,oBAAoB,GAAI,yIASlC,KAAK,KAAG,IA+JV,CAAC"}
@@ -14,7 +14,7 @@ import { useEffect, useRef } from 'react';
14
14
  import { selectAutoQuery, setAutoQuery, useAppDispatch, useAppSelector } from '@parca/store';
15
15
  import { ProfileSelectionFromParams, SuffixParams } from '..';
16
16
  import { constructProfileName } from '../ProfileTypeSelector';
17
- export const useAutoQuerySelector = ({ selectedProfileName, profileTypesData, setProfileName, setQueryExpression, querySelection, navigateTo, loading, }) => {
17
+ export const useAutoQuerySelector = ({ selectedProfileName, profileTypesData, setProfileName, setQueryExpression, querySelection, navigateTo, loading, defaultProfileType, }) => {
18
18
  const autoQuery = useAppSelector(selectAutoQuery);
19
19
  const dispatch = useAppDispatch();
20
20
  const queryParams = new URLSearchParams(location.search);
@@ -95,6 +95,10 @@ export const useAutoQuerySelector = ({ selectedProfileName, profileTypesData, se
95
95
  return;
96
96
  }
97
97
  dispatch(setAutoQuery('true'));
98
+ if (defaultProfileType != null && defaultProfileType.length > 0) {
99
+ setProfileName(defaultProfileType);
100
+ return;
101
+ }
98
102
  let profileType = profileTypesData.types.find(type => type.name === 'parca_agent' && type.sampleType === 'samples' && type.delta);
99
103
  if (profileType == null) {
100
104
  profileType = profileTypesData.types.find(type => type.name === 'otel_profiling_agent_on_cpu' && type.delta);
@@ -117,6 +121,7 @@ export const useAutoQuerySelector = ({ selectedProfileName, profileTypesData, se
117
121
  dispatch,
118
122
  setQueryExpression,
119
123
  setProfileName,
124
+ defaultProfileType,
120
125
  ]);
121
126
  useEffect(() => {
122
127
  void (async () => {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@parca/profile",
3
- "version": "0.19.123",
3
+ "version": "0.19.125",
4
4
  "description": "Profile viewing libraries",
5
5
  "dependencies": {
6
6
  "@floating-ui/react": "^0.27.12",
7
7
  "@headlessui/react": "^1.7.19",
8
8
  "@iconify/react": "^4.0.0",
9
9
  "@parca/client": "0.17.17",
10
- "@parca/components": "0.16.401",
10
+ "@parca/components": "0.16.403",
11
11
  "@parca/dynamicsize": "0.16.72",
12
12
  "@parca/hooks": "0.0.118",
13
13
  "@parca/icons": "0.16.79",
@@ -87,5 +87,5 @@
87
87
  "access": "public",
88
88
  "registry": "https://registry.npmjs.org/"
89
89
  },
90
- "gitHead": "1b5dca30f2e1704936789d634df8230d2ab41666"
90
+ "gitHead": "e7032ad37a873cf980400210d52885c9b990e4d1"
91
91
  }
@@ -276,6 +276,7 @@ const ProfileSelector = ({
276
276
  querySelection,
277
277
  navigateTo,
278
278
  loading: sumByLoading,
279
+ defaultProfileType: viewComponent?.defaultProfileType,
279
280
  });
280
281
 
281
282
  const searchDisabled =
@@ -29,6 +29,7 @@ interface Props {
29
29
  querySelection: QuerySelection;
30
30
  navigateTo: NavigateFunction;
31
31
  loading: boolean;
32
+ defaultProfileType?: string;
32
33
  }
33
34
 
34
35
  export const useAutoQuerySelector = ({
@@ -39,6 +40,7 @@ export const useAutoQuerySelector = ({
39
40
  querySelection,
40
41
  navigateTo,
41
42
  loading,
43
+ defaultProfileType,
42
44
  }: Props): void => {
43
45
  const autoQuery = useAppSelector(selectAutoQuery);
44
46
  const dispatch = useAppDispatch();
@@ -136,6 +138,12 @@ export const useAutoQuerySelector = ({
136
138
  return;
137
139
  }
138
140
  dispatch(setAutoQuery('true'));
141
+
142
+ if (defaultProfileType != null && defaultProfileType.length > 0) {
143
+ setProfileName(defaultProfileType);
144
+ return;
145
+ }
146
+
139
147
  let profileType = profileTypesData.types.find(
140
148
  type => type.name === 'parca_agent' && type.sampleType === 'samples' && type.delta
141
149
  );
@@ -166,6 +174,7 @@ export const useAutoQuerySelector = ({
166
174
  dispatch,
167
175
  setQueryExpression,
168
176
  setProfileName,
177
+ defaultProfileType,
169
178
  ]);
170
179
 
171
180
  useEffect(() => {