@parca/profile 0.16.43 β 0.16.49
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 +12 -0
- package/package.json +8 -8
- package/dist/stories/ProfileTypeSelector.stories.d.ts +0 -5
- package/dist/stories/ProfileTypeSelector.stories.js +0 -77
- package/dist/stories/ProfileView.stories.d.ts +0 -5
- package/dist/stories/ProfileView.stories.js +0 -22
- package/dist/stories/mockdata/flamegraphData.json +0 -7960
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.49](https://github.com/parca-dev/parca/compare/ui-v0.16.48...ui-v0.16.49) (2022-10-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @parca/profile
|
|
9
|
+
|
|
10
|
+
## [0.16.48](https://github.com/parca-dev/parca/compare/ui-v0.16.47...ui-v0.16.48) (2022-10-17)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @parca/profile
|
|
13
|
+
|
|
14
|
+
## [0.16.44](https://github.com/parca-dev/parca/compare/ui-v0.16.43...ui-v0.16.44) (2022-10-13)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @parca/profile
|
|
17
|
+
|
|
6
18
|
## [0.16.43](https://github.com/parca-dev/parca/compare/ui-v0.16.42...ui-v0.16.43) (2022-10-13)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @parca/profile
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parca/profile",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.49",
|
|
4
4
|
"description": "Profile viewing libraries",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@iconify/react": "^3.2.2",
|
|
7
|
-
"@parca/client": "^0.16.
|
|
8
|
-
"@parca/components": "^0.16.
|
|
9
|
-
"@parca/dynamicsize": "^0.16.
|
|
10
|
-
"@parca/functions": "^0.16.
|
|
11
|
-
"@parca/parser": "^0.16.
|
|
12
|
-
"@parca/store": "^0.16.
|
|
7
|
+
"@parca/client": "^0.16.49",
|
|
8
|
+
"@parca/components": "^0.16.49",
|
|
9
|
+
"@parca/dynamicsize": "^0.16.49",
|
|
10
|
+
"@parca/functions": "^0.16.49",
|
|
11
|
+
"@parca/parser": "^0.16.49",
|
|
12
|
+
"@parca/store": "^0.16.49",
|
|
13
13
|
"d3-scale": "^4.0.2",
|
|
14
14
|
"d3-selection": "3.0.0",
|
|
15
15
|
"react-copy-to-clipboard": "^5.1.0"
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"access": "public",
|
|
32
32
|
"registry": "https://registry.npmjs.org/"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "2d1d93e9e75a15dfe18875acc6924f8f2e16206f"
|
|
35
35
|
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
|
-
import ProfileTypeSelector from '../ProfileTypeSelector';
|
|
3
|
-
declare const _default: ComponentMeta<({ profileTypesData, loading, error, selectedKey, onSelection, flexibleKnownProfilesDetection, }: import("../ProfileTypeSelector").Props) => JSX.Element>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Primary: ComponentStory<typeof ProfileTypeSelector>;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import ProfileTypeSelector from '../ProfileTypeSelector';
|
|
3
|
-
export default {
|
|
4
|
-
/* π The title prop is optional.
|
|
5
|
-
* See https://storybook.js.org/docs/react/configure/overview#configure-story-loading
|
|
6
|
-
* to learn how to generate automatic titles
|
|
7
|
-
*/
|
|
8
|
-
title: 'Components/ProfileTypeSelector',
|
|
9
|
-
component: ProfileTypeSelector,
|
|
10
|
-
};
|
|
11
|
-
const profileTypes = {
|
|
12
|
-
types: [
|
|
13
|
-
{
|
|
14
|
-
name: 'memory',
|
|
15
|
-
sampleType: 'inuse_objects',
|
|
16
|
-
sampleUnit: 'count',
|
|
17
|
-
periodType: 'space',
|
|
18
|
-
periodUnit: 'bytes',
|
|
19
|
-
delta: false,
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
name: 'memory',
|
|
23
|
-
sampleType: 'inuse_space',
|
|
24
|
-
sampleUnit: 'bytes',
|
|
25
|
-
periodType: 'space',
|
|
26
|
-
periodUnit: 'bytes',
|
|
27
|
-
delta: false,
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
name: 'memory',
|
|
31
|
-
sampleType: 'alloc_objects',
|
|
32
|
-
sampleUnit: 'count',
|
|
33
|
-
periodType: 'space',
|
|
34
|
-
periodUnit: 'bytes',
|
|
35
|
-
delta: false,
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
name: 'goroutine',
|
|
39
|
-
sampleType: 'goroutine',
|
|
40
|
-
sampleUnit: 'count',
|
|
41
|
-
periodType: 'goroutine',
|
|
42
|
-
periodUnit: 'count',
|
|
43
|
-
delta: false,
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
name: 'memory',
|
|
47
|
-
sampleType: 'alloc_space',
|
|
48
|
-
sampleUnit: 'bytes',
|
|
49
|
-
periodType: 'space',
|
|
50
|
-
periodUnit: 'bytes',
|
|
51
|
-
delta: false,
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
name: 'process_cpu',
|
|
55
|
-
sampleType: 'cpu',
|
|
56
|
-
sampleUnit: 'nanoseconds',
|
|
57
|
-
periodType: 'cpu',
|
|
58
|
-
periodUnit: 'nanoseconds',
|
|
59
|
-
delta: true,
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
name: 'process_cpu',
|
|
63
|
-
sampleType: 'samples',
|
|
64
|
-
sampleUnit: 'count',
|
|
65
|
-
periodType: 'cpu',
|
|
66
|
-
periodUnit: 'nanoseconds',
|
|
67
|
-
delta: true,
|
|
68
|
-
},
|
|
69
|
-
],
|
|
70
|
-
};
|
|
71
|
-
const onSelection = () => { };
|
|
72
|
-
//π We create a βtemplateβ of how args map to rendering
|
|
73
|
-
// const Template: ComponentStory<typeof ProfileView> = args => <ProfileView {...args} />;
|
|
74
|
-
//π Each story then reuses that template
|
|
75
|
-
// export const Primary = Template.bind({});
|
|
76
|
-
// Primary.args = {sampleUnit: 'count', label: 'Button'};
|
|
77
|
-
export const Primary = () => (_jsx(ProfileTypeSelector, { profileTypesData: profileTypes, onSelection: onSelection, selectedKey: "process_cpu:samples:count:cpu:nanoseconds:delta", error: undefined }));
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
|
-
import { ProfileView } from '../ProfileView';
|
|
3
|
-
declare const _default: ComponentMeta<({ flamegraphData, topTableData, callgraphData, sampleUnit, profileSource, queryClient, navigateTo, profileVisState, onDownloadPProf, }: import("../ProfileView").ProfileViewProps) => JSX.Element>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Primary: ComponentStory<typeof ProfileView>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { ProfileView } from '../ProfileView';
|
|
3
|
-
import flamegraphData from './mockdata/flamegraphData.json';
|
|
4
|
-
export default {
|
|
5
|
-
/* π The title prop is optional.
|
|
6
|
-
* See https://storybook.js.org/docs/react/configure/overview#configure-story-loading
|
|
7
|
-
* to learn how to generate automatic titles
|
|
8
|
-
*/
|
|
9
|
-
title: 'Components/ProfileView',
|
|
10
|
-
component: ProfileView,
|
|
11
|
-
};
|
|
12
|
-
const mockVisState = {
|
|
13
|
-
currentView: 'icicle',
|
|
14
|
-
setCurrentView: () => { },
|
|
15
|
-
};
|
|
16
|
-
const downloadPprof = () => { };
|
|
17
|
-
//π We create a βtemplateβ of how args map to rendering
|
|
18
|
-
// const Template: ComponentStory<typeof ProfileView> = args => <ProfileView {...args} />;
|
|
19
|
-
//π Each story then reuses that template
|
|
20
|
-
// export const Primary = Template.bind({});
|
|
21
|
-
// Primary.args = {sampleUnit: 'count', label: 'Button'};
|
|
22
|
-
export const Primary = () => (_jsx(ProfileView, { flamegraphData: flamegraphData, sampleUnit: "count", profileVisState: mockVisState, onDownloadPProf: downloadPprof }));
|