@parca/profile 0.16.503 → 0.16.504
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 +4 -0
- package/dist/ProfileView/components/Toolbars/index.d.ts.map +1 -1
- package/dist/ProfileView/components/Toolbars/index.js +7 -1
- package/dist/ProfileViewWithData.d.ts.map +1 -1
- package/dist/ProfileViewWithData.js +3 -1
- package/package.json +2 -2
- package/src/ProfileView/components/Toolbars/index.tsx +7 -1
- package/src/ProfileViewWithData.tsx +3 -1
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.16.504](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.503...@parca/profile@0.16.504) (2025-05-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @parca/profile
|
|
9
|
+
|
|
6
10
|
## [0.16.503](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.502...@parca/profile@0.16.503) (2025-04-30)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @parca/profile
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ProfileView/components/Toolbars/index.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAC,EAAE,EAAC,MAAM,OAAO,CAAC;AAIzB,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAEjD,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAC,gBAAgB,EAAC,MAAM,oDAAoD,CAAC;AACpF,OAAO,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAC;AAUrD,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,aAAa,EAAE,CAAC,GAAG,EAAE,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;IAC3B,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC7C,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,aAAa,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;CACnD;AAED,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAuB9C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAiB1D,CAAC;AAMF,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CAmF9D,CAAC"}
|
|
@@ -20,5 +20,11 @@ export const VisualisationToolbar = ({ groupBy, toggleGroupBy, groupByLabels, se
|
|
|
20
20
|
const { dashboardItems } = useDashboard();
|
|
21
21
|
const isTableViz = dashboardItems?.includes('table');
|
|
22
22
|
const isGraphViz = dashboardItems?.includes('icicle');
|
|
23
|
-
|
|
23
|
+
const req = profileSource?.QueryRequest();
|
|
24
|
+
if (req !== null && req !== undefined) {
|
|
25
|
+
req.groupBy = {
|
|
26
|
+
fields: groupBy ?? [],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "flex w-full justify-between items-end", children: [_jsxs("div", { className: "flex gap-3 items-end", children: [_jsxs(_Fragment, { children: [_jsx(GroupByDropdown, { groupBy: groupBy, toggleGroupBy: toggleGroupBy, labels: groupByLabels, setGroupByLabels: setGroupByLabels }), _jsx(MultiLevelDropdown, { profileType: profileType, onSelect: () => { } })] }), _jsx(FilterByFunctionButton, {}), profileViewExternalSubActions != null ? profileViewExternalSubActions : null] }), _jsxs("div", { className: "flex gap-3", children: [preferencesModal === true && _jsx(UserPreferencesModal, {}), _jsx(ShareButton, { profileSource: profileSource, queryClient: queryClient, queryRequest: req, onDownloadPProf: onDownloadPProf, pprofdownloading: pprofdownloading ?? false, profileViewExternalSubActions: profileViewExternalSubActions }), showVisualizationSelector ? _jsx(ViewSelector, {}) : null] })] }), isGraphViz && !isTableViz && (_jsxs(_Fragment, { children: [_jsx(Divider, {}), _jsx(IcicleGraphToolbar, { curPath: curPath, setNewCurPath: setNewCurPath })] })), isTableViz && !isGraphViz && (_jsxs(_Fragment, { children: [_jsx(Divider, {}), _jsx(TableToolbar, { profileType: profileType, total: total, filtered: filtered, clearSelection: clearSelection, currentSearchString: currentSearchString })] }))] }));
|
|
24
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileViewWithData.d.ts","sourceRoot":"","sources":["../src/ProfileViewWithData.tsx"],"names":[],"mappings":"AAeA,OAAO,EAA0B,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAK1E,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAK9C,UAAU,wBAAwB;IAChC,WAAW,EAAE,kBAAkB,CAAC;IAChC,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED,eAAO,MAAM,mBAAmB,+DAI7B,wBAAwB,KAAG,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"ProfileViewWithData.d.ts","sourceRoot":"","sources":["../src/ProfileViewWithData.tsx"],"names":[],"mappings":"AAeA,OAAO,EAA0B,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAK1E,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAK9C,UAAU,wBAAwB;IAChC,WAAW,EAAE,kBAAkB,CAAC;IAChC,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED,eAAO,MAAM,mBAAmB,+DAI7B,wBAAwB,KAAG,GAAG,CAAC,OAqPjC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -107,7 +107,9 @@ export const ProfileViewWithData = ({ queryClient, profileSource, showVisualizat
|
|
|
107
107
|
}
|
|
108
108
|
try {
|
|
109
109
|
setPprofDownloading(true);
|
|
110
|
-
const
|
|
110
|
+
const req = profileSource.QueryRequest();
|
|
111
|
+
req.groupBy = { fields: groupBy };
|
|
112
|
+
const blob = await downloadPprof(req, queryClient, metadata);
|
|
111
113
|
saveAsBlob(blob, `profile.pb.gz`);
|
|
112
114
|
setPprofDownloading(false);
|
|
113
115
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parca/profile",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.504",
|
|
4
4
|
"description": "Profile viewing libraries",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@headlessui/react": "^1.7.19",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"access": "public",
|
|
78
78
|
"registry": "https://registry.npmjs.org/"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "7785690f42c61f65195f1020640c69ea068843f4"
|
|
81
81
|
}
|
|
@@ -139,6 +139,12 @@ export const VisualisationToolbar: FC<VisualisationToolbarProps> = ({
|
|
|
139
139
|
const isTableViz = dashboardItems?.includes('table');
|
|
140
140
|
const isGraphViz = dashboardItems?.includes('icicle');
|
|
141
141
|
|
|
142
|
+
const req = profileSource?.QueryRequest();
|
|
143
|
+
if (req !== null && req !== undefined) {
|
|
144
|
+
req.groupBy = {
|
|
145
|
+
fields: groupBy ?? [],
|
|
146
|
+
};
|
|
147
|
+
}
|
|
142
148
|
return (
|
|
143
149
|
<>
|
|
144
150
|
<div className="flex w-full justify-between items-end">
|
|
@@ -162,7 +168,7 @@ export const VisualisationToolbar: FC<VisualisationToolbarProps> = ({
|
|
|
162
168
|
<ShareButton
|
|
163
169
|
profileSource={profileSource}
|
|
164
170
|
queryClient={queryClient}
|
|
165
|
-
queryRequest={
|
|
171
|
+
queryRequest={req}
|
|
166
172
|
onDownloadPProf={onDownloadPProf}
|
|
167
173
|
pprofdownloading={pprofdownloading ?? false}
|
|
168
174
|
profileViewExternalSubActions={profileViewExternalSubActions}
|
|
@@ -166,7 +166,9 @@ export const ProfileViewWithData = ({
|
|
|
166
166
|
|
|
167
167
|
try {
|
|
168
168
|
setPprofDownloading(true);
|
|
169
|
-
const
|
|
169
|
+
const req = profileSource.QueryRequest();
|
|
170
|
+
req.groupBy = {fields: groupBy};
|
|
171
|
+
const blob = await downloadPprof(req, queryClient, metadata);
|
|
170
172
|
saveAsBlob(blob, `profile.pb.gz`);
|
|
171
173
|
setPprofDownloading(false);
|
|
172
174
|
} catch (error) {
|