@parca/profile 0.19.118 → 0.19.120
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 +8 -0
- package/dist/ProfileSelector/index.d.ts.map +1 -1
- package/dist/ProfileSelector/index.js +9 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/package.json +6 -6
- package/src/ProfileSelector/index.tsx +10 -2
- package/src/index.tsx +4 -0
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.120](https://github.com/parca-dev/parca/compare/@parca/profile@0.19.119...@parca/profile@0.19.120) (2026-02-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @parca/profile
|
|
9
|
+
|
|
10
|
+
## [0.19.119](https://github.com/parca-dev/parca/compare/@parca/profile@0.19.118...@parca/profile@0.19.119) (2026-02-12)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @parca/profile
|
|
13
|
+
|
|
6
14
|
## [0.19.118](https://github.com/parca-dev/parca/compare/@parca/profile@0.19.117...@parca/profile@0.19.118) (2026-02-11)
|
|
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;AAgB/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AM,EACd,MAAM,MAAM,KACX,mBAsBF,CAAC;AAEF,QAAA,MAAM,eAAe,GAAI,kMAYtB,oBAAoB,KAAG,GAAG,CAAC,OAsQ7B,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -49,7 +49,7 @@ export const useProfileTypes = (client, start, end) => {
|
|
|
49
49
|
};
|
|
50
50
|
const ProfileSelector = ({ queryClient, closeProfile, enforcedProfileName, comparing, navigateTo, showMetricsGraph = true, showSumBySelector = true, showProfileTypeSelector = true, setDisplayHideMetricsGraphButton, suffix, onSearchHook, }) => {
|
|
51
51
|
const { heightStyle } = useMetricsGraphDimensions(comparing, false);
|
|
52
|
-
const { viewComponent } = useParcaContext();
|
|
52
|
+
const { viewComponent, additionalMetricsGraph } = useParcaContext();
|
|
53
53
|
const [queryBrowserMode, setQueryBrowserMode] = useURLState('query_browser_mode');
|
|
54
54
|
const batchUpdates = useURLStateBatch();
|
|
55
55
|
const profileFilterDefaults = viewComponent?.profileFilterDefaults;
|
|
@@ -161,7 +161,14 @@ const ProfileSelector = ({ queryClient, closeProfile, enforcedProfileName, compa
|
|
|
161
161
|
queryExpressionString === '{}';
|
|
162
162
|
const queryBrowserRef = useRef(null);
|
|
163
163
|
const sumByRef = useRef(null);
|
|
164
|
-
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "mb-2 flex", children: [
|
|
164
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "mb-2 flex flex-col", children: [additionalMetricsGraph?.({
|
|
165
|
+
querySelection,
|
|
166
|
+
queryClient,
|
|
167
|
+
suffix,
|
|
168
|
+
timeRange: timeRangeSelection,
|
|
169
|
+
onTimeRangeChange: handleTimeRangeChange,
|
|
170
|
+
commitTimeRange: () => setQueryExpression(true),
|
|
171
|
+
}), _jsx(LabelsQueryProvider, { setMatchersString: setMatchersString, runQuery: setQueryExpression, currentQuery: query, profileType: selectedProfileName ?? profileType.toString(), queryClient: queryClient, start: timeRangeSelection.getFromMs(), end: timeRangeSelection.getToMs(), suffix: suffix, children: _jsx(LabelsSource, { children: _jsx(QueryControls, { showProfileTypeSelector: showProfileTypeSelector, showSumBySelector: showSumBySelector, profileTypesData: profileTypesData, profileTypesLoading: profileTypesLoading, selectedProfileName: selectedProfileName, setProfileName: setProfileName, setMatchersString: setMatchersString, setQueryExpression: setQueryExpression, query: query, queryBrowserRef: queryBrowserRef, timeRangeSelection: timeRangeSelection, setTimeRangeSelection: handleTimeRangeChange, searchDisabled: searchDisabled, setQueryBrowserMode: setQueryBrowserMode, advancedModeForQueryBrowser: advancedModeForQueryBrowser, setAdvancedModeForQueryBrowser: setAdvancedModeForQueryBrowser, queryClient: queryClient, sumByRef: sumByRef, labels: labels, sumBySelection: draftSelection.sumBy ?? [], sumBySelectionLoading: sumByLoading, setUserSumBySelection: setDraftSumBy, profileType: profileType, profileTypesError: error, viewComponent: viewComponent, draftSelection: draftSelection, setDraftMatchers: setDraftMatchers, draftParsedQuery: draftParsedQuery, commitDraft: commitDraft }) }) }), comparing && (_jsx("div", { children: _jsx(IconButton, { onClick: () => closeProfile(), icon: _jsx(CloseIcon, {}), ...testId(TEST_IDS.COMPARE_CLOSE_BUTTON) }) }))] }), _jsx(MetricsGraphSection, { showMetricsGraph: showMetricsGraph, setDisplayHideMetricsGraphButton: setDisplayHideMetricsGraphButton, heightStyle: heightStyle, querySelection: querySelection, profileSelection: profileSelection, comparing: comparing, sumBy: querySelection.sumBy, defaultSumByLoading: sumByLoading, queryClient: queryClient, queryExpressionString: queryExpressionString, setTimeRangeSelection: handleTimeRangeChange, selectQuery: commitDraft, setProfileSelection: setProfileSelection, query: query, setQueryExpression: setQueryExpression, setNewQueryExpression: setDraftExpression, commitDraft: commitDraft, profileTypesLoading: profileTypesLoading, hasNoProfileTypes: !profileTypesLoading &&
|
|
165
172
|
(profileTypesData?.types == null || profileTypesData.types.length === 0) })] }));
|
|
166
173
|
};
|
|
167
174
|
export default ProfileSelector;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { ParamPreferences } from '@parca/components';
|
|
2
|
+
import MatchersInput from './MatchersInput';
|
|
2
3
|
import MetricsGraph, { type ContextMenuItemOrSubmenu, type Series } from './MetricsGraph';
|
|
3
4
|
import ProfileExplorer from './ProfileExplorer';
|
|
4
5
|
import ProfileTypeSelector from './ProfileTypeSelector';
|
|
5
6
|
import { SelectWithRefresh } from './SelectWithRefresh';
|
|
7
|
+
import SimpleMatchers from './SimpleMatchers';
|
|
6
8
|
import CustomSelect from './SimpleMatchers/Select';
|
|
7
9
|
import { LabelsQueryProvider, useLabelsQueryProvider, type LabelsQueryProviderContextType } from './contexts/LabelsQueryProvider';
|
|
8
10
|
import { UnifiedLabelsProvider, useUnifiedLabels } from './contexts/UnifiedLabelsContext';
|
|
@@ -25,5 +27,5 @@ export { default as ProfileFilters } from './ProfileView/components/ProfileFilte
|
|
|
25
27
|
export { useProfileFiltersUrlState } from './ProfileView/components/ProfileFilters/useProfileFiltersUrlState';
|
|
26
28
|
export declare const DEFAULT_PROFILE_EXPLORER_PARAM_VALUES: ParamPreferences;
|
|
27
29
|
export { useProfileTypes } from './ProfileSelector';
|
|
28
|
-
export { ProfileExplorer, ProfileTypeSelector, CustomSelect, SelectWithRefresh, useLabelNames, MetricsGraph, type ContextMenuItemOrSubmenu, type Series, LabelsQueryProvider, useLabelsQueryProvider, UnifiedLabelsProvider, useUnifiedLabels, useQueryState, type LabelsQueryProviderContextType, };
|
|
30
|
+
export { ProfileExplorer, ProfileTypeSelector, CustomSelect, SelectWithRefresh, useLabelNames, MetricsGraph, SimpleMatchers, MatchersInput, type ContextMenuItemOrSubmenu, type Series, LabelsQueryProvider, useLabelsQueryProvider, UnifiedLabelsProvider, useUnifiedLabels, useQueryState, type LabelsQueryProviderContextType, };
|
|
29
31
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","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D,CAAC;AACnE,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,SAAS,CAAC;AACxB,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAC,yBAAyB,EAAC,MAAM,mEAAmE,CAAC;AAE5G,eAAO,MAAM,qCAAqC,EAAE,gBAWnD,CAAC;AAEF,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAElD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,cAAc,EACd,aAAa,EACb,KAAK,wBAAwB,EAC7B,KAAK,MAAM,EACX,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,KAAK,8BAA8B,GACpC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -12,10 +12,12 @@
|
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
import { CompressionType, setCompressionCodec } from '@uwdata/flechette';
|
|
14
14
|
import * as lz4 from 'lz4js';
|
|
15
|
+
import MatchersInput from './MatchersInput';
|
|
15
16
|
import MetricsGraph from './MetricsGraph';
|
|
16
17
|
import ProfileExplorer from './ProfileExplorer';
|
|
17
18
|
import ProfileTypeSelector from './ProfileTypeSelector';
|
|
18
19
|
import { SelectWithRefresh } from './SelectWithRefresh';
|
|
20
|
+
import SimpleMatchers from './SimpleMatchers';
|
|
19
21
|
import CustomSelect from './SimpleMatchers/Select';
|
|
20
22
|
import { LabelsQueryProvider, useLabelsQueryProvider, } from './contexts/LabelsQueryProvider';
|
|
21
23
|
import { UnifiedLabelsProvider, useUnifiedLabels } from './contexts/UnifiedLabelsContext';
|
|
@@ -53,4 +55,4 @@ export const DEFAULT_PROFILE_EXPLORER_PARAM_VALUES = {
|
|
|
53
55
|
},
|
|
54
56
|
};
|
|
55
57
|
export { useProfileTypes } from './ProfileSelector';
|
|
56
|
-
export { ProfileExplorer, ProfileTypeSelector, CustomSelect, SelectWithRefresh, useLabelNames, MetricsGraph, LabelsQueryProvider, useLabelsQueryProvider, UnifiedLabelsProvider, useUnifiedLabels, useQueryState, };
|
|
58
|
+
export { ProfileExplorer, ProfileTypeSelector, CustomSelect, SelectWithRefresh, useLabelNames, MetricsGraph, SimpleMatchers, MatchersInput, LabelsQueryProvider, useLabelsQueryProvider, UnifiedLabelsProvider, useUnifiedLabels, useQueryState, };
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parca/profile",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.120",
|
|
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.
|
|
10
|
+
"@parca/components": "0.16.399",
|
|
11
11
|
"@parca/dynamicsize": "0.16.72",
|
|
12
|
-
"@parca/hooks": "0.0.
|
|
12
|
+
"@parca/hooks": "0.0.118",
|
|
13
13
|
"@parca/icons": "0.16.79",
|
|
14
14
|
"@parca/parser": "0.16.86",
|
|
15
|
-
"@parca/store": "0.16.
|
|
15
|
+
"@parca/store": "0.16.201",
|
|
16
16
|
"@parca/test-utils": "0.0.20",
|
|
17
|
-
"@parca/utilities": "0.0.
|
|
17
|
+
"@parca/utilities": "0.0.124",
|
|
18
18
|
"@popperjs/core": "^2.11.8",
|
|
19
19
|
"@protobuf-ts/runtime-rpc": "^2.5.0",
|
|
20
20
|
"@storybook/preview-api": "^8.4.3",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"access": "public",
|
|
88
88
|
"registry": "https://registry.npmjs.org/"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "0df8d34db33aeba5a2fd71b90c0532ad0ad7397a"
|
|
91
91
|
}
|
|
@@ -119,7 +119,7 @@ const ProfileSelector = ({
|
|
|
119
119
|
onSearchHook,
|
|
120
120
|
}: ProfileSelectorProps): JSX.Element => {
|
|
121
121
|
const {heightStyle} = useMetricsGraphDimensions(comparing, false);
|
|
122
|
-
const {viewComponent} = useParcaContext();
|
|
122
|
+
const {viewComponent, additionalMetricsGraph} = useParcaContext();
|
|
123
123
|
const [queryBrowserMode, setQueryBrowserMode] = useURLState('query_browser_mode');
|
|
124
124
|
const batchUpdates = useURLStateBatch();
|
|
125
125
|
|
|
@@ -290,7 +290,15 @@ const ProfileSelector = ({
|
|
|
290
290
|
|
|
291
291
|
return (
|
|
292
292
|
<>
|
|
293
|
-
<div className="mb-2 flex">
|
|
293
|
+
<div className="mb-2 flex flex-col">
|
|
294
|
+
{additionalMetricsGraph?.({
|
|
295
|
+
querySelection,
|
|
296
|
+
queryClient,
|
|
297
|
+
suffix,
|
|
298
|
+
timeRange: timeRangeSelection,
|
|
299
|
+
onTimeRangeChange: handleTimeRangeChange,
|
|
300
|
+
commitTimeRange: () => setQueryExpression(true),
|
|
301
|
+
})}
|
|
294
302
|
<LabelsQueryProvider
|
|
295
303
|
setMatchersString={setMatchersString}
|
|
296
304
|
runQuery={setQueryExpression}
|
package/src/index.tsx
CHANGED
|
@@ -16,10 +16,12 @@ import * as lz4 from 'lz4js';
|
|
|
16
16
|
|
|
17
17
|
import type {ParamPreferences} from '@parca/components';
|
|
18
18
|
|
|
19
|
+
import MatchersInput from './MatchersInput';
|
|
19
20
|
import MetricsGraph, {type ContextMenuItemOrSubmenu, type Series} from './MetricsGraph';
|
|
20
21
|
import ProfileExplorer from './ProfileExplorer';
|
|
21
22
|
import ProfileTypeSelector from './ProfileTypeSelector';
|
|
22
23
|
import {SelectWithRefresh} from './SelectWithRefresh';
|
|
24
|
+
import SimpleMatchers from './SimpleMatchers';
|
|
23
25
|
import CustomSelect from './SimpleMatchers/Select';
|
|
24
26
|
import {
|
|
25
27
|
LabelsQueryProvider,
|
|
@@ -80,6 +82,8 @@ export {
|
|
|
80
82
|
SelectWithRefresh,
|
|
81
83
|
useLabelNames,
|
|
82
84
|
MetricsGraph,
|
|
85
|
+
SimpleMatchers,
|
|
86
|
+
MatchersInput,
|
|
83
87
|
type ContextMenuItemOrSubmenu,
|
|
84
88
|
type Series,
|
|
85
89
|
LabelsQueryProvider,
|