@perses-dev/flame-chart-plugin 0.6.0 → 0.7.0-beta.1

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 (180) hide show
  1. package/__mf/js/{FlameChart.8940202b.js → FlameChart.75e60eeb.js} +7 -7
  2. package/__mf/js/async/121.b114caf4.js +2 -0
  3. package/__mf/js/async/168.6611ee4e.js +1 -0
  4. package/__mf/js/async/183.92eba0e3.js +2 -0
  5. package/__mf/js/async/192.8ce3d05c.js +1 -0
  6. package/__mf/js/async/2.9b63234c.js +1 -0
  7. package/__mf/js/async/235.b209897c.js +1 -0
  8. package/__mf/js/async/274.e53c6dc1.js +2 -0
  9. package/__mf/js/async/354.12841635.js +4 -0
  10. package/__mf/js/async/354.12841635.js.LICENSE.txt +9 -0
  11. package/__mf/js/async/356.8389aa5c.js +1 -0
  12. package/__mf/js/async/392.800bb82c.js +2 -0
  13. package/__mf/js/async/40.8889cead.js +43 -0
  14. package/__mf/js/async/{657.9473a80f.js.LICENSE.txt → 40.8889cead.js.LICENSE.txt} +41 -1
  15. package/__mf/js/async/43.71599a15.js +2 -0
  16. package/__mf/js/async/464.b8482365.js +1 -0
  17. package/__mf/js/async/470.1af0a163.js +2 -0
  18. package/__mf/js/async/587.2887e89e.js +1 -0
  19. package/__mf/js/async/616.d35b2918.js +1 -0
  20. package/__mf/js/async/663.d6e01d16.js +1 -0
  21. package/__mf/js/async/787.a8f426c4.js +1 -0
  22. package/__mf/js/async/802.f2161316.js +110 -0
  23. package/__mf/js/async/867.d3758c62.js +1 -0
  24. package/__mf/js/async/873.fd0c9e57.js +1 -0
  25. package/__mf/js/async/941.e44ab19f.js +2 -0
  26. package/__mf/js/async/968.5e8d690f.js +1 -0
  27. package/__mf/js/async/__federation_expose_FlameChart.668f250d.js +17 -0
  28. package/__mf/js/async/lib-router.d7bf8c32.js +2 -0
  29. package/__mf/js/{main.08e04feb.js → main.0d13937b.js} +3 -3
  30. package/lib/FlameChart.d.ts +3 -3
  31. package/lib/FlameChart.d.ts.map +1 -1
  32. package/lib/FlameChart.js +2 -2
  33. package/lib/FlameChart.js.map +1 -1
  34. package/lib/bootstrap.js +2 -2
  35. package/lib/components/CustomBreadcrumb.d.ts +1 -1
  36. package/lib/components/CustomBreadcrumb.d.ts.map +1 -1
  37. package/lib/components/CustomBreadcrumb.js +8 -8
  38. package/lib/components/CustomBreadcrumb.js.map +1 -1
  39. package/lib/components/FlameChart.d.ts +2 -2
  40. package/lib/components/FlameChart.d.ts.map +1 -1
  41. package/lib/components/FlameChart.js +10 -10
  42. package/lib/components/FlameChart.js.map +1 -1
  43. package/lib/components/FlameChartOptionsEditorSettings.d.ts +2 -2
  44. package/lib/components/FlameChartOptionsEditorSettings.d.ts.map +1 -1
  45. package/lib/components/FlameChartOptionsEditorSettings.js +6 -6
  46. package/lib/components/FlameChartOptionsEditorSettings.js.map +1 -1
  47. package/lib/components/FlameChartPanel.d.ts +4 -4
  48. package/lib/components/FlameChartPanel.d.ts.map +1 -1
  49. package/lib/components/FlameChartPanel.js +88 -71
  50. package/lib/components/FlameChartPanel.js.map +1 -1
  51. package/lib/components/PaletteSelector.d.ts +1 -1
  52. package/lib/components/PaletteSelector.d.ts.map +1 -1
  53. package/lib/components/PaletteSelector.js +2 -2
  54. package/lib/components/PaletteSelector.js.map +1 -1
  55. package/lib/components/SearchBar.d.ts +1 -1
  56. package/lib/components/SearchBar.d.ts.map +1 -1
  57. package/lib/components/SearchBar.js +3 -3
  58. package/lib/components/SearchBar.js.map +1 -1
  59. package/lib/components/SeriesChart.d.ts +2 -2
  60. package/lib/components/SeriesChart.d.ts.map +1 -1
  61. package/lib/components/SeriesChart.js +6 -6
  62. package/lib/components/SeriesChart.js.map +1 -1
  63. package/lib/components/Settings.d.ts +2 -2
  64. package/lib/components/Settings.d.ts.map +1 -1
  65. package/lib/components/Settings.js +6 -6
  66. package/lib/components/Settings.js.map +1 -1
  67. package/lib/components/SwitchSelector.d.ts +1 -1
  68. package/lib/components/SwitchSelector.d.ts.map +1 -1
  69. package/lib/components/SwitchSelector.js +3 -3
  70. package/lib/components/SwitchSelector.js.map +1 -1
  71. package/lib/components/TableChart.d.ts +2 -2
  72. package/lib/components/TableChart.d.ts.map +1 -1
  73. package/lib/components/TableChart.js +6 -6
  74. package/lib/components/TableChart.js.map +1 -1
  75. package/lib/components/index.js +10 -10
  76. package/lib/components/index.js.map +1 -1
  77. package/lib/flame-chart-model.d.ts +2 -2
  78. package/lib/flame-chart-model.d.ts.map +1 -1
  79. package/lib/flame-chart-model.js.map +1 -1
  80. package/lib/getPluginModule.d.ts +1 -1
  81. package/lib/getPluginModule.d.ts.map +1 -1
  82. package/lib/getPluginModule.js +3 -1
  83. package/lib/getPluginModule.js.map +1 -1
  84. package/lib/index-federation.js +1 -1
  85. package/lib/index.js +2 -2
  86. package/lib/index.js.map +1 -1
  87. package/lib/setup-tests.d.ts +1 -1
  88. package/lib/setup-tests.d.ts.map +1 -1
  89. package/lib/setup-tests.js +2 -2
  90. package/lib/setup-tests.js.map +1 -1
  91. package/lib/utils/data-transform.d.ts +2 -2
  92. package/lib/utils/data-transform.d.ts.map +1 -1
  93. package/lib/utils/data-transform.js +2 -2
  94. package/lib/utils/data-transform.js.map +1 -1
  95. package/lib/utils/format.js +2 -2
  96. package/lib/utils/palette-gen.js +1 -1
  97. package/lib/utils/palette-gen.js.map +1 -1
  98. package/lib/utils/palette.js +1 -1
  99. package/lib/utils/series-tooltip.d.ts +1 -1
  100. package/lib/utils/series-tooltip.d.ts.map +1 -1
  101. package/lib/utils/series-tooltip.js +1 -1
  102. package/lib/utils/series-tooltip.js.map +1 -1
  103. package/lib/utils/tooltip.d.ts +1 -1
  104. package/lib/utils/tooltip.d.ts.map +1 -1
  105. package/lib/utils/tooltip.js +2 -2
  106. package/lib/utils/tooltip.js.map +1 -1
  107. package/lib/utils/utils.d.ts +2 -2
  108. package/lib/utils/utils.d.ts.map +1 -1
  109. package/lib/utils/utils.js +1 -1
  110. package/lib/utils/utils.js.map +1 -1
  111. package/mf-manifest.json +31 -53
  112. package/mf-stats.json +31 -57
  113. package/package.json +10 -10
  114. package/__mf/js/async/121.7241788e.js +0 -2
  115. package/__mf/js/async/177.d1b72566.js +0 -1
  116. package/__mf/js/async/187.d2c3954d.js +0 -7
  117. package/__mf/js/async/187.d2c3954d.js.LICENSE.txt +0 -39
  118. package/__mf/js/async/192.2e230dc2.js +0 -1
  119. package/__mf/js/async/2.3d2f3d32.js +0 -1
  120. package/__mf/js/async/235.f7949644.js +0 -1
  121. package/__mf/js/async/274.f1ae4a6c.js +0 -2
  122. package/__mf/js/async/356.941c6c54.js +0 -1
  123. package/__mf/js/async/367.8beb758e.js +0 -110
  124. package/__mf/js/async/392.157fda9a.js +0 -2
  125. package/__mf/js/async/43.2eeeac07.js +0 -2
  126. package/__mf/js/async/470.55030a0b.js +0 -2
  127. package/__mf/js/async/546.d47a49c6.js +0 -24
  128. package/__mf/js/async/546.d47a49c6.js.LICENSE.txt +0 -19
  129. package/__mf/js/async/587.8bcd9e70.js +0 -1
  130. package/__mf/js/async/588.0012e8ae.js +0 -1
  131. package/__mf/js/async/597.fee7f09c.js +0 -1
  132. package/__mf/js/async/616.da14f6a0.js +0 -1
  133. package/__mf/js/async/657.9473a80f.js +0 -39
  134. package/__mf/js/async/698.06b3786e.js +0 -1
  135. package/__mf/js/async/71.126af909.js +0 -1
  136. package/__mf/js/async/740.c1f5cc4b.js +0 -1
  137. package/__mf/js/async/873.cd4654cd.js +0 -1
  138. package/__mf/js/async/941.c00ae16d.js +0 -2
  139. package/__mf/js/async/968.f7510839.js +0 -1
  140. package/__mf/js/async/97.fd587361.js +0 -1
  141. package/__mf/js/async/978.e1b5b66e.js +0 -1
  142. package/__mf/js/async/__federation_expose_FlameChart.7a8d049a.js +0 -17
  143. package/__mf/js/async/lib-router.1a328ab9.js +0 -2
  144. package/lib/cjs/FlameChart.js +0 -37
  145. package/lib/cjs/bootstrap.js +0 -26
  146. package/lib/cjs/components/CustomBreadcrumb.js +0 -96
  147. package/lib/cjs/components/FlameChart.js +0 -341
  148. package/lib/cjs/components/FlameChartOptionsEditorSettings.js +0 -104
  149. package/lib/cjs/components/FlameChartPanel.js +0 -164
  150. package/lib/cjs/components/PaletteSelector.js +0 -49
  151. package/lib/cjs/components/SearchBar.js +0 -59
  152. package/lib/cjs/components/SeriesChart.js +0 -189
  153. package/lib/cjs/components/Settings.js +0 -202
  154. package/lib/cjs/components/SwitchSelector.js +0 -37
  155. package/lib/cjs/components/TableChart.js +0 -143
  156. package/lib/cjs/components/index.js +0 -39
  157. package/lib/cjs/env.d.js +0 -14
  158. package/lib/cjs/flame-chart-model.js +0 -31
  159. package/lib/cjs/getPluginModule.js +0 -39
  160. package/lib/cjs/index-federation.js +0 -55
  161. package/lib/cjs/index.js +0 -37
  162. package/lib/cjs/setup-tests.js +0 -19
  163. package/lib/cjs/utils/data-model.js +0 -18
  164. package/lib/cjs/utils/data-transform.js +0 -163
  165. package/lib/cjs/utils/format.js +0 -88
  166. package/lib/cjs/utils/palette-gen.js +0 -68
  167. package/lib/cjs/utils/palette.js +0 -62
  168. package/lib/cjs/utils/series-tooltip.js +0 -51
  169. package/lib/cjs/utils/tooltip.js +0 -76
  170. package/lib/cjs/utils/ui-text.js +0 -30
  171. package/lib/cjs/utils/utils.js +0 -122
  172. /package/__mf/css/async/{187.85c2cbf6.css → 40.85c2cbf6.css} +0 -0
  173. /package/__mf/js/async/{121.7241788e.js.LICENSE.txt → 121.b114caf4.js.LICENSE.txt} +0 -0
  174. /package/__mf/js/async/{274.f1ae4a6c.js.LICENSE.txt → 274.e53c6dc1.js.LICENSE.txt} +0 -0
  175. /package/__mf/js/async/{392.157fda9a.js.LICENSE.txt → 392.800bb82c.js.LICENSE.txt} +0 -0
  176. /package/__mf/js/async/{43.2eeeac07.js.LICENSE.txt → 43.71599a15.js.LICENSE.txt} +0 -0
  177. /package/__mf/js/async/{470.55030a0b.js.LICENSE.txt → 470.1af0a163.js.LICENSE.txt} +0 -0
  178. /package/__mf/js/async/{367.8beb758e.js.LICENSE.txt → 802.f2161316.js.LICENSE.txt} +0 -0
  179. /package/__mf/js/async/{941.c00ae16d.js.LICENSE.txt → 941.e44ab19f.js.LICENSE.txt} +0 -0
  180. /package/__mf/js/async/{lib-router.1a328ab9.js.LICENSE.txt → lib-router.d7bf8c32.js.LICENSE.txt} +0 -0
@@ -1,76 +0,0 @@
1
- // Copyright The Perses Authors
2
- // Licensed under the Apache License, Version 2.0 (the "License");
3
- // you may not use this file except in compliance with the License.
4
- // You may obtain a copy of the License at
5
- //
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
- //
8
- // Unless required by applicable law or agreed to in writing, software
9
- // distributed under the License is distributed on an "AS IS" BASIS,
10
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
- // See the License for the specific language governing permissions and
12
- // limitations under the License.
13
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- Object.defineProperty(exports, "generateTooltip", {
18
- enumerable: true,
19
- get: function() {
20
- return generateTooltip;
21
- }
22
- });
23
- const _echarts = /*#__PURE__*/ _interop_require_wildcard(require("echarts"));
24
- const _format = require("./format");
25
- function _getRequireWildcardCache(nodeInterop) {
26
- if (typeof WeakMap !== "function") return null;
27
- var cacheBabelInterop = new WeakMap();
28
- var cacheNodeInterop = new WeakMap();
29
- return (_getRequireWildcardCache = function(nodeInterop) {
30
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
31
- })(nodeInterop);
32
- }
33
- function _interop_require_wildcard(obj, nodeInterop) {
34
- if (!nodeInterop && obj && obj.__esModule) {
35
- return obj;
36
- }
37
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
38
- return {
39
- default: obj
40
- };
41
- }
42
- var cache = _getRequireWildcardCache(nodeInterop);
43
- if (cache && cache.has(obj)) {
44
- return cache.get(obj);
45
- }
46
- var newObj = {
47
- __proto__: null
48
- };
49
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
50
- for(var key in obj){
51
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
52
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
53
- if (desc && (desc.get || desc.set)) {
54
- Object.defineProperty(newObj, key, desc);
55
- } else {
56
- newObj[key] = obj[key];
57
- }
58
- }
59
- }
60
- newObj.default = obj;
61
- if (cache) {
62
- cache.set(obj, newObj);
63
- }
64
- return newObj;
65
- }
66
- function generateTooltip(params, unit) {
67
- const totalPercentage = Number(params.value[4]);
68
- const selfPercentage = Number(params.value[5]);
69
- const functionName = params.value[6];
70
- const total = Number(params.value[8]);
71
- const self = Number(params.value[7]);
72
- return `${functionName}<br/><br/>
73
- Total: ${(0, _format.formatItemValue)(unit, total)} (${totalPercentage.toFixed(2)}%)<br/>
74
- Self: ${(0, _format.formatItemValue)(unit, self)} (${selfPercentage.toFixed(2)}%)<br/>
75
- Samples: ${_echarts.format.addCommas(total)}`;
76
- }
@@ -1,30 +0,0 @@
1
- // Copyright The Perses Authors
2
- // Licensed under the Apache License, Version 2.0 (the "License");
3
- // you may not use this file except in compliance with the License.
4
- // You may obtain a copy of the License at
5
- //
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
- //
8
- // Unless required by applicable law or agreed to in writing, software
9
- // distributed under the License is distributed on an "AS IS" BASIS,
10
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
- // See the License for the specific language governing permissions and
12
- // limitations under the License.
13
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- Object.defineProperty(exports, "TOOLTIP_TEXT", {
18
- enumerable: true,
19
- get: function() {
20
- return TOOLTIP_TEXT;
21
- }
22
- });
23
- const TOOLTIP_TEXT = {
24
- resetFlameGraph: 'Reset graph',
25
- changeColorSheme: 'Change color sheme',
26
- exportData: 'Export profile data',
27
- showTable: 'Only show table',
28
- showFlameGraph: 'Only show flame graph',
29
- showBoth: 'Show both the table and flame graph'
30
- };
@@ -1,122 +0,0 @@
1
- // Copyright The Perses Authors
2
- // Licensed under the Apache License, Version 2.0 (the "License");
3
- // you may not use this file except in compliance with the License.
4
- // You may obtain a copy of the License at
5
- //
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
- //
8
- // Unless required by applicable law or agreed to in writing, software
9
- // distributed under the License is distributed on an "AS IS" BASIS,
10
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
- // See the License for the specific language governing permissions and
12
- // limitations under the License.
13
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- function _export(target, all) {
18
- for(var name in all)Object.defineProperty(target, name, {
19
- enumerable: true,
20
- get: Object.getOwnPropertyDescriptor(all, name).get
21
- });
22
- }
23
- _export(exports, {
24
- get resetSettings () {
25
- return resetSettings;
26
- },
27
- get usePaletteState () {
28
- return usePaletteState;
29
- },
30
- get useShowFlameGraphState () {
31
- return useShowFlameGraphState;
32
- },
33
- get useShowSeriesState () {
34
- return useShowSeriesState;
35
- },
36
- get useShowSettingsState () {
37
- return useShowSettingsState;
38
- },
39
- get useShowTableState () {
40
- return useShowTableState;
41
- },
42
- get useTraceHeightState () {
43
- return useTraceHeightState;
44
- }
45
- });
46
- const _immer = require("immer");
47
- function usePaletteState(props) {
48
- const { onChange, value } = props;
49
- const handlePaletteChange = (newPalette)=>{
50
- onChange((0, _immer.produce)(value, (draft)=>{
51
- draft.palette = newPalette;
52
- }));
53
- };
54
- return {
55
- handlePaletteChange
56
- };
57
- }
58
- function useTraceHeightState(props) {
59
- const { onChange, value } = props;
60
- const handleTraceHeightChange = (event)=>{
61
- onChange((0, _immer.produce)(value, (draft)=>{
62
- draft.traceHeight = event.target.value ? Number(event.target.value) : undefined;
63
- }));
64
- };
65
- return {
66
- handleTraceHeightChange
67
- };
68
- }
69
- function useShowSettingsState(props) {
70
- const { onChange, value } = props;
71
- const handleShowSettingsChange = (newValue)=>{
72
- onChange((0, _immer.produce)(value, (draft)=>{
73
- draft.showSettings = newValue;
74
- }));
75
- };
76
- return {
77
- handleShowSettingsChange
78
- };
79
- }
80
- function useShowSeriesState(props) {
81
- const { onChange, value } = props;
82
- const handleShowSeriesChange = (newValue)=>{
83
- onChange((0, _immer.produce)(value, (draft)=>{
84
- draft.showSeries = newValue;
85
- }));
86
- };
87
- return {
88
- handleShowSeriesChange
89
- };
90
- }
91
- function useShowTableState(props) {
92
- const { onChange, value } = props;
93
- const handleShowTableChange = (newValue)=>{
94
- onChange((0, _immer.produce)(value, (draft)=>{
95
- draft.showTable = newValue;
96
- }));
97
- };
98
- return {
99
- handleShowTableChange
100
- };
101
- }
102
- function useShowFlameGraphState(props) {
103
- const { onChange, value } = props;
104
- const handleShowFlameGraphChange = (newValue)=>{
105
- onChange((0, _immer.produce)(value, (draft)=>{
106
- draft.showFlameGraph = newValue;
107
- }));
108
- };
109
- return {
110
- handleShowFlameGraphChange
111
- };
112
- }
113
- function resetSettings(props) {
114
- const { onChange, value } = props;
115
- onChange((0, _immer.produce)(value, (draft)=>{
116
- draft.palette = 'package-name';
117
- draft.showSettings = true;
118
- draft.showSeries = false;
119
- draft.showTable = true;
120
- draft.showFlameGraph = true;
121
- }));
122
- }