@parca/profile 0.16.22 β†’ 0.16.43

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.
Files changed (39) hide show
  1. package/CHANGELOG.md +35 -48
  2. package/dist/Callgraph/Edge/index.d.ts +1 -0
  3. package/dist/Callgraph/Node/index.d.ts +2 -1
  4. package/dist/Callgraph/index.d.ts +1 -0
  5. package/dist/GraphTooltip/index.d.ts +1 -0
  6. package/dist/GraphTooltip/index.js +51 -15
  7. package/dist/IcicleGraph.d.ts +1 -0
  8. package/dist/IcicleGraph.js +23 -4
  9. package/dist/MatchersInput/index.d.ts +1 -0
  10. package/dist/MetricsCircle/index.d.ts +1 -0
  11. package/dist/MetricsGraph/index.d.ts +1 -0
  12. package/dist/MetricsGraph/index.js +5 -27
  13. package/dist/MetricsSeries/index.d.ts +1 -0
  14. package/dist/ProfileExplorer/ProfileExplorerCompare.d.ts +1 -0
  15. package/dist/ProfileExplorer/ProfileExplorerSingle.d.ts +1 -0
  16. package/dist/ProfileExplorer/index.d.ts +1 -0
  17. package/dist/ProfileIcicleGraph.d.ts +1 -0
  18. package/dist/ProfileMetricsGraph/index.d.ts +1 -0
  19. package/dist/ProfileSelector/CompareButton.d.ts +1 -0
  20. package/dist/ProfileSelector/MergeButton.d.ts +1 -0
  21. package/dist/ProfileSelector/index.d.ts +1 -0
  22. package/dist/ProfileSource.d.ts +1 -0
  23. package/dist/ProfileTypeSelector/index.d.ts +1 -0
  24. package/dist/ProfileView.d.ts +1 -0
  25. package/dist/ProfileViewWithData.d.ts +1 -0
  26. package/dist/TopTable.d.ts +2 -1
  27. package/dist/components/DiffLegend.d.ts +1 -0
  28. package/dist/components/ProfileShareButton/ResultBox.d.ts +1 -0
  29. package/dist/components/ProfileShareButton/index.d.ts +1 -0
  30. package/dist/stories/ProfileTypeSelector.stories.d.ts +5 -0
  31. package/dist/stories/ProfileTypeSelector.stories.js +77 -0
  32. package/dist/stories/ProfileView.stories.d.ts +5 -0
  33. package/dist/stories/ProfileView.stories.js +22 -0
  34. package/dist/stories/mockdata/flamegraphData.json +7960 -0
  35. package/dist/styles.css +1 -1
  36. package/package.json +5 -4
  37. package/src/GraphTooltip/index.tsx +116 -21
  38. package/src/IcicleGraph.tsx +25 -5
  39. package/src/MetricsGraph/index.tsx +6 -31
@@ -0,0 +1,77 @@
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 }));
@@ -0,0 +1,5 @@
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>;
@@ -0,0 +1,22 @@
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 }));