@parca/profile 0.16.348 → 0.16.349
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/SourceView/index.js +1 -1
- package/package.json +2 -2
- package/src/SourceView/index.tsx +9 -7
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.349](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.348...@parca/profile@0.16.349) (2024-02-27)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @parca/profile
|
|
9
|
+
|
|
6
10
|
## [0.16.348](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.347...@parca/profile@0.16.348) (2024-02-27)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @parca/profile
|
package/dist/SourceView/index.js
CHANGED
|
@@ -65,6 +65,6 @@ export const SourceView = React.memo(function SourceView({ data, loading, total,
|
|
|
65
65
|
const table = tableFromIPC(data.record);
|
|
66
66
|
const cumulative = table.getChild('cumulative');
|
|
67
67
|
const flat = table.getChild('flat');
|
|
68
|
-
return (_jsx(AnimatePresence, { children: _jsxs(motion.div, { className: "h-full w-full", initial: { display: 'none', opacity: 0 }, animate: { display: 'block', opacity: 1 }, transition: { duration: 0.5 }, children: [_jsx(Highlighter, { file: sourceFileName, content: data.source, renderer: profileAwareRenderer(cumulative, flat, total, filtered, onContextMenu) }), _jsx(Menu, { id: MENU_ID, children: sourceViewContextMenuItems.map(item => (_jsx(Item, { onClick: () => item.action(selectedCode), children: item.label }, item.id))) })] }, "source-view-loaded") }));
|
|
68
|
+
return (_jsx(AnimatePresence, { children: _jsxs(motion.div, { className: "h-full w-full", initial: { display: 'none', opacity: 0 }, animate: { display: 'block', opacity: 1 }, transition: { duration: 0.5 }, children: [_jsx(Highlighter, { file: sourceFileName, content: data.source, renderer: profileAwareRenderer(cumulative, flat, total, filtered, onContextMenu) }), sourceViewContextMenuItems.length > 0 ? (_jsx(Menu, { id: MENU_ID, children: sourceViewContextMenuItems.map(item => (_jsx(Item, { onClick: () => item.action(selectedCode), children: item.label }, item.id))) })) : null] }, "source-view-loaded") }));
|
|
69
69
|
});
|
|
70
70
|
export default SourceView;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parca/profile",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.349",
|
|
4
4
|
"description": "Profile viewing libraries",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@parca/client": "^0.16.105",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"access": "public",
|
|
51
51
|
"registry": "https://registry.npmjs.org/"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "b672a3fdb3331c6111ebc303d65a286af2074f97"
|
|
54
54
|
}
|
package/src/SourceView/index.tsx
CHANGED
|
@@ -120,13 +120,15 @@ export const SourceView = React.memo(function SourceView({
|
|
|
120
120
|
content={data.source}
|
|
121
121
|
renderer={profileAwareRenderer(cumulative, flat, total, filtered, onContextMenu)}
|
|
122
122
|
/>
|
|
123
|
-
|
|
124
|
-
{
|
|
125
|
-
|
|
126
|
-
{item.
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
123
|
+
{sourceViewContextMenuItems.length > 0 ? (
|
|
124
|
+
<Menu id={MENU_ID}>
|
|
125
|
+
{sourceViewContextMenuItems.map(item => (
|
|
126
|
+
<Item key={item.id} onClick={() => item.action(selectedCode)}>
|
|
127
|
+
{item.label}
|
|
128
|
+
</Item>
|
|
129
|
+
))}
|
|
130
|
+
</Menu>
|
|
131
|
+
) : null}
|
|
130
132
|
</motion.div>
|
|
131
133
|
</AnimatePresence>
|
|
132
134
|
);
|