@parca/profile 0.16.305 → 0.16.307
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.307](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.306...@parca/profile@0.16.307) (2023-11-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @parca/profile
|
|
9
|
+
|
|
10
|
+
## [0.16.306](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.305...@parca/profile@0.16.306) (2023-11-16)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @parca/profile
|
|
13
|
+
|
|
6
14
|
## 0.16.305 (2023-11-15)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @parca/profile
|
|
@@ -139,7 +139,8 @@ const ProfileSelector = ({ queryClient, querySelection, selectProfile, selectQue
|
|
|
139
139
|
queryExpressionString === '' ||
|
|
140
140
|
queryExpressionString === '{}';
|
|
141
141
|
const compareDisabled = selectedProfileName === '' || querySelection.expression === undefined;
|
|
142
|
-
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "mb-2 flex gap-2", children: [_jsxs("div", { className: "flex w-full flex-wrap content-start items-end justify-between gap-2", children: [_jsxs("div", { children: [_jsx("label", { className: "text-xs", children: "Profile type" }), _jsx(ProfileTypeSelector, { profileTypesData: profileTypesData, loading: profileTypesLoading, selectedKey: selectedProfileName, onSelection: setProfileName, error: error })] }), _jsxs("div", { className: "w-full flex-1", children: [_jsxs("div", { className: "mb-[2px] flex items-center justify-between", children: [_jsx("label", { className: "text-xs", children: "Query" }), query.matchers.length > 0
|
|
142
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "mb-2 flex gap-2", children: [_jsxs("div", { className: "flex w-full flex-wrap content-start items-end justify-between gap-2", children: [_jsxs("div", { children: [_jsx("label", { className: "text-xs", children: "Profile type" }), _jsx(ProfileTypeSelector, { profileTypesData: profileTypesData, loading: profileTypesLoading, selectedKey: selectedProfileName, onSelection: setProfileName, error: error })] }), _jsxs("div", { className: "w-full flex-1", children: [_jsxs("div", { className: "mb-[2px] flex items-center justify-between", children: [_jsx("label", { className: "text-xs", children: "Query" }), (query.matchers.length > 0 || query.inputMatcherString.length > 0) &&
|
|
143
|
+
viewComponent !== undefined && _jsx("div", { children: viewComponent(query.toString()) })] }), _jsx(MatchersInput, { queryClient: queryClient, setMatchersString: setMatchersString, runQuery: setQueryExpression, currentQuery: query })] }), _jsxs("div", { children: [_jsx("label", { className: "text-xs", children: "Period" }), _jsx(DateTimeRangePicker, { onRangeSelection: setTimeRangeSelection, range: timeRangeSelection })] }), _jsxs(ButtonGroup, { children: [!searchDisabled && (_jsx(_Fragment, { children: !comparing && (_jsx(CompareButton, { disabled: compareDisabled, onClick: handleCompareClick })) })), _jsx(Button, { disabled: searchDisabled, onClick: (e) => {
|
|
143
144
|
e.preventDefault();
|
|
144
145
|
setQueryExpression();
|
|
145
146
|
}, id: "matcher-search-button", children: "Search" })] })] }), _jsx("div", { children: comparing && _jsx(IconButton, { onClick: () => closeProfile(), icon: _jsx(CloseIcon, {}) }) })] }), _jsx("div", { className: "rounded bg-white shadow dark:border-gray-500 dark:bg-gray-700", children: _jsx("div", { style: { height: heightStyle }, children: querySelection.expression !== undefined &&
|
|
@@ -10,6 +10,7 @@ interface WellKnownProfiles {
|
|
|
10
10
|
[key: string]: WellKnownProfile;
|
|
11
11
|
}
|
|
12
12
|
export declare const wellKnownProfiles: WellKnownProfiles;
|
|
13
|
+
export declare function flexibleWellKnownProfileMatching(name: string): WellKnownProfile | undefined;
|
|
13
14
|
export declare function profileSelectElement(name: string, flexibleKnownProfilesDetection: boolean): SelectElement;
|
|
14
15
|
export declare const constructProfileName: (type: ProfileType) => string;
|
|
15
16
|
export declare const normalizeProfileTypesData: (types: ProfileType[]) => string[];
|
|
@@ -79,7 +79,7 @@ export const wellKnownProfiles = {
|
|
|
79
79
|
help: 'CPU profile samples observed by Parca Agent.',
|
|
80
80
|
},
|
|
81
81
|
};
|
|
82
|
-
function flexibleWellKnownProfileMatching(name) {
|
|
82
|
+
export function flexibleWellKnownProfileMatching(name) {
|
|
83
83
|
const prefixExcludedName = name.split(':').slice(1).join(':');
|
|
84
84
|
const deltaExcludedName = prefixExcludedName.replace(/:delta$/, '');
|
|
85
85
|
const requiredKey = Object.keys(wellKnownProfiles).find(key => {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parca/profile",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.307",
|
|
4
4
|
"description": "Profile viewing libraries",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@parca/client": "^0.16.98",
|
|
7
|
-
"@parca/components": "^0.16.
|
|
7
|
+
"@parca/components": "^0.16.227",
|
|
8
8
|
"@parca/dynamicsize": "^0.16.60",
|
|
9
9
|
"@parca/hooks": "^0.0.35",
|
|
10
10
|
"@parca/parser": "^0.16.66",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"with-alpha-hex": "^1.0.6"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@types/d3": "7.4.
|
|
31
|
+
"@types/d3": "7.4.3",
|
|
32
32
|
"@types/react-copy-to-clipboard": "5.0.6",
|
|
33
33
|
"@types/react-syntax-highlighter": "15.5.9"
|
|
34
34
|
},
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"access": "public",
|
|
51
51
|
"registry": "https://registry.npmjs.org/"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "bf14bdb48d3c1eba1b8b9fde7582d853c1f72077"
|
|
54
54
|
}
|
|
@@ -241,9 +241,8 @@ const ProfileSelector = ({
|
|
|
241
241
|
<div className="mb-[2px] flex items-center justify-between">
|
|
242
242
|
<label className="text-xs">Query</label>
|
|
243
243
|
|
|
244
|
-
{query.matchers.length > 0
|
|
245
|
-
<div>{viewComponent(query.
|
|
246
|
-
)}
|
|
244
|
+
{(query.matchers.length > 0 || query.inputMatcherString.length > 0) &&
|
|
245
|
+
viewComponent !== undefined && <div>{viewComponent(query.toString())}</div>}
|
|
247
246
|
</div>
|
|
248
247
|
|
|
249
248
|
<MatchersInput
|
|
@@ -94,7 +94,7 @@ export const wellKnownProfiles: WellKnownProfiles = {
|
|
|
94
94
|
},
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
function flexibleWellKnownProfileMatching(name: string): WellKnownProfile | undefined {
|
|
97
|
+
export function flexibleWellKnownProfileMatching(name: string): WellKnownProfile | undefined {
|
|
98
98
|
const prefixExcludedName = name.split(':').slice(1).join(':');
|
|
99
99
|
const deltaExcludedName = prefixExcludedName.replace(/:delta$/, '');
|
|
100
100
|
const requiredKey = Object.keys(wellKnownProfiles).find(key => {
|