@parca/profile 0.19.18 → 0.19.19
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/ProfileFlameGraph/FlameGraphArrow/index.d.ts.map +1 -1
- package/dist/ProfileFlameGraph/FlameGraphArrow/index.js +0 -3
- package/dist/ProfileView/components/ActionButtons/GroupByDropdown.d.ts.map +1 -1
- package/dist/ProfileView/components/ActionButtons/GroupByDropdown.js +1 -1
- package/dist/ProfileView/components/InvertCallStack/index.d.ts.map +1 -1
- package/dist/ProfileView/components/InvertCallStack/index.js +1 -1
- package/dist/ProfileView/components/Toolbars/index.js +1 -1
- package/package.json +2 -2
- package/src/ProfileFlameGraph/FlameGraphArrow/index.tsx +0 -3
- package/src/ProfileView/components/ActionButtons/GroupByDropdown.tsx +6 -8
- package/src/ProfileView/components/InvertCallStack/index.tsx +1 -0
- package/src/ProfileView/components/Toolbars/index.tsx +1 -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.19.19](https://github.com/parca-dev/parca/compare/@parca/profile@0.19.18...@parca/profile@0.19.19) (2025-07-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @parca/profile
|
|
9
|
+
|
|
6
10
|
## [0.19.18](https://github.com/parca-dev/parca/compare/@parca/profile@0.19.17...@parca/profile@0.19.18) (2025-07-10)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @parca/profile
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ProfileFlameGraph/FlameGraphArrow/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAQN,MAAM,OAAO,CAAC;AAKf,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CA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AE,OAAO,CAAC;IACvB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,gBAAgB,GAC3B,cAAc,MAAM,EAAE,EACtB,YAAY,OAAO,EACnB,qBAAqB,WAAW,KAC/B,aAQF,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,eAAe,MAAM,EAAE,EACvB,YAAY,OAAO,EACnB,qBAAqB,WAAW,KAC/B,aAQF,CAAC;AAeF,eAAO,MAAM,eAAe,kDA4R1B,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
|
@@ -102,9 +102,6 @@ export const FlameGraphArrow = memo(function FlameGraphArrow({ arrow, total, fil
|
|
|
102
102
|
if (perf?.setMeasurement != null) {
|
|
103
103
|
perf.setMeasurement('flamegraph.render_time', renderTime);
|
|
104
104
|
}
|
|
105
|
-
if (renderTime > 500 && perf.captureMessage != null) {
|
|
106
|
-
perf.captureMessage(`Slow flamegraph render: ${renderTime.toFixed(0)}ms`, 'warning');
|
|
107
|
-
}
|
|
108
105
|
renderStartTime.current = 0;
|
|
109
106
|
};
|
|
110
107
|
requestAnimationFrame(measureRenderTime);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupByDropdown.d.ts","sourceRoot":"","sources":["../../../../src/ProfileView/components/ActionButtons/GroupByDropdown.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CAC9C;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"GroupByDropdown.d.ts","sourceRoot":"","sources":["../../../../src/ProfileView/components/ActionButtons/GroupByDropdown.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CAC9C;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAUnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import GroupByLabelsDropdown from '../GroupByLabelsDropdown';
|
|
3
3
|
const GroupByControls = ({ groupBy, labels, setGroupByLabels }) => {
|
|
4
|
-
return (_jsx("div", { className: "
|
|
4
|
+
return (_jsx("div", { className: "relative flex", id: "h-group-by-controls", children: _jsx(GroupByLabelsDropdown, { labels: labels, groupBy: groupBy, setGroupByLabels: setGroupByLabels }) }));
|
|
5
5
|
};
|
|
6
6
|
export default GroupByControls;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ProfileView/components/InvertCallStack/index.tsx"],"names":[],"mappings":"AAiBA,QAAA,MAAM,eAAe,QAAO,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ProfileView/components/InvertCallStack/index.tsx"],"names":[],"mappings":"AAiBA,QAAA,MAAM,eAAe,QAAO,GAAG,CAAC,OAe/B,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -16,6 +16,6 @@ import { Button, useURLState } from '@parca/components';
|
|
|
16
16
|
const InvertCallStack = () => {
|
|
17
17
|
const [invertStack = '', setInvertStack] = useURLState('invert_call_stack');
|
|
18
18
|
const isInvert = invertStack === 'true';
|
|
19
|
-
return (_jsxs(Button, { variant: "neutral", className: "flex items-center gap-2", onClick: () => setInvertStack(isInvert ? '' : 'true'), children: [_jsx(Icon, { icon: isInvert ? 'ph:sort-ascending' : 'ph:sort-descending', className: "h-4 w-4" }), isInvert ? 'Original' : 'Invert', " Call Stack"] }));
|
|
19
|
+
return (_jsxs(Button, { variant: "neutral", className: "flex items-center gap-2", onClick: () => setInvertStack(isInvert ? '' : 'true'), id: "h-invert-call-stack", children: [_jsx(Icon, { icon: isInvert ? 'ph:sort-ascending' : 'ph:sort-descending', className: "h-4 w-4" }), isInvert ? 'Original' : 'Invert', " Call Stack"] }));
|
|
20
20
|
};
|
|
21
21
|
export default InvertCallStack;
|
|
@@ -31,5 +31,5 @@ export const VisualisationToolbar = ({ groupBy, toggleGroupBy, groupByLabels, se
|
|
|
31
31
|
fields: groupBy ?? [],
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "flex w-full justify-between items-end", children: [_jsxs("div", { className: "flex gap-
|
|
34
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "flex w-full justify-between items-end", children: [_jsxs("div", { className: "flex gap-2 items-end", children: [isGraphViz && (_jsxs(_Fragment, { children: [_jsx(GroupByDropdown, { groupBy: groupBy, labels: groupByLabels, setGroupByLabels: setGroupByLabels }), _jsx(InvertCallStack, {})] })), _jsx(FilterByFunctionButton, {}), profileViewExternalSubActions != null ? profileViewExternalSubActions : null] }), _jsxs("div", { className: "flex gap-3", children: [_jsx(MultiLevelDropdown, { groupBy: groupBy, toggleGroupBy: toggleGroupBy, profileType: profileType, onSelect: () => { }, isTableVizOnly: isTableVizOnly }), _jsx(ShareButton, { profileSource: profileSource, queryClient: queryClient, queryRequest: req, onDownloadPProf: onDownloadPProf, pprofdownloading: pprofdownloading ?? false, profileViewExternalSubActions: profileViewExternalSubActions }), showVisualizationSelector ? _jsx(ViewSelector, { profileSource: profileSource }) : null] })] }), isGraphVizOnly && (_jsxs(_Fragment, { children: [_jsx(Divider, {}), _jsx(FlameGraphToolbar, { curPath: curPath, setNewCurPath: setNewCurPath })] })), isTableVizOnly && (_jsxs(_Fragment, { children: [_jsx(Divider, {}), _jsx(TableToolbar, { profileType: profileType, total: total, filtered: filtered, clearSelection: clearSelection, currentSearchString: currentSearchString })] }))] }));
|
|
35
35
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parca/profile",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.19",
|
|
4
4
|
"description": "Profile viewing libraries",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@floating-ui/react": "^0.27.12",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"access": "public",
|
|
79
79
|
"registry": "https://registry.npmjs.org/"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "55c867baa7c927d7184bc4811b0543f641d09633"
|
|
82
82
|
}
|
|
@@ -184,9 +184,6 @@ export const FlameGraphArrow = memo(function FlameGraphArrow({
|
|
|
184
184
|
perf.setMeasurement('flamegraph.render_time', renderTime);
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
if (renderTime > 500 && perf.captureMessage != null) {
|
|
188
|
-
perf.captureMessage(`Slow flamegraph render: ${renderTime.toFixed(0)}ms`, 'warning');
|
|
189
|
-
}
|
|
190
187
|
renderStartTime.current = 0;
|
|
191
188
|
};
|
|
192
189
|
|
|
@@ -23,14 +23,12 @@ interface GroupByControlsProps {
|
|
|
23
23
|
|
|
24
24
|
const GroupByControls: React.FC<GroupByControlsProps> = ({groupBy, labels, setGroupByLabels}) => {
|
|
25
25
|
return (
|
|
26
|
-
<div className="
|
|
27
|
-
<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
/>
|
|
33
|
-
</div>
|
|
26
|
+
<div className="relative flex" id="h-group-by-controls">
|
|
27
|
+
<GroupByLabelsDropdown
|
|
28
|
+
labels={labels}
|
|
29
|
+
groupBy={groupBy}
|
|
30
|
+
setGroupByLabels={setGroupByLabels}
|
|
31
|
+
/>
|
|
34
32
|
</div>
|
|
35
33
|
);
|
|
36
34
|
};
|
|
@@ -24,6 +24,7 @@ const InvertCallStack = (): JSX.Element => {
|
|
|
24
24
|
variant="neutral"
|
|
25
25
|
className="flex items-center gap-2"
|
|
26
26
|
onClick={() => setInvertStack(isInvert ? '' : 'true')}
|
|
27
|
+
id="h-invert-call-stack"
|
|
27
28
|
>
|
|
28
29
|
<Icon icon={isInvert ? 'ph:sort-ascending' : 'ph:sort-descending'} className="h-4 w-4" />
|
|
29
30
|
{isInvert ? 'Original' : 'Invert'} Call Stack
|
|
@@ -178,7 +178,7 @@ export const VisualisationToolbar: FC<VisualisationToolbarProps> = ({
|
|
|
178
178
|
return (
|
|
179
179
|
<>
|
|
180
180
|
<div className="flex w-full justify-between items-end">
|
|
181
|
-
<div className="flex gap-
|
|
181
|
+
<div className="flex gap-2 items-end">
|
|
182
182
|
{isGraphViz && (
|
|
183
183
|
<>
|
|
184
184
|
<GroupByDropdown
|