@parca/profile 0.19.140 → 0.19.143
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 +9 -1
- package/dist/GraphTooltipArrow/Content.js +224 -30
- package/dist/GraphTooltipArrow/DockedGraphTooltip/index.js +192 -33
- package/dist/GraphTooltipArrow/ExpandOnHoverValue.js +53 -3
- package/dist/GraphTooltipArrow/index.d.ts.map +1 -1
- package/dist/GraphTooltipArrow/index.js +86 -56
- package/dist/GraphTooltipArrow/useGraphTooltip/index.js +37 -37
- package/dist/GraphTooltipArrow/useGraphTooltipMetaInfo/index.js +94 -68
- package/dist/MatchersInput/SuggestionItem.js +91 -12
- package/dist/MatchersInput/SuggestionsList.d.ts +2 -1
- package/dist/MatchersInput/SuggestionsList.d.ts.map +1 -1
- package/dist/MatchersInput/SuggestionsList.js +371 -157
- package/dist/MatchersInput/SuggestionsList.test.d.ts +2 -0
- package/dist/MatchersInput/SuggestionsList.test.d.ts.map +1 -0
- package/dist/MatchersInput/index.js +308 -115
- package/dist/MetricsCircle/index.js +39 -3
- package/dist/MetricsGraph/MetricsContextMenu/index.js +119 -19
- package/dist/MetricsGraph/MetricsInfoPanel/index.js +81 -20
- package/dist/MetricsGraph/MetricsTooltip/index.d.ts.map +1 -1
- package/dist/MetricsGraph/MetricsTooltip/index.js +107 -74
- package/dist/MetricsGraph/index.js +552 -203
- package/dist/MetricsGraph/useMetricsGraphDimensions.js +46 -25
- package/dist/MetricsGraph/utils/colorMapping.js +24 -17
- package/dist/MetricsSeries/index.js +70 -7
- package/dist/PreSelectedMatchers/index.d.ts.map +1 -1
- package/dist/PreSelectedMatchers/index.js +249 -102
- package/dist/ProfileExplorer/ProfileExplorerCompare.d.ts.map +1 -1
- package/dist/ProfileExplorer/ProfileExplorerCompare.js +240 -45
- package/dist/ProfileExplorer/ProfileExplorerSingle.js +98 -11
- package/dist/ProfileExplorer/index.js +183 -32
- package/dist/ProfileFlameChart/SamplesStrips/SamplesGraph/index.js +333 -148
- package/dist/ProfileFlameChart/SamplesStrips/SamplesStrips.stories.js +69 -35
- package/dist/ProfileFlameChart/SamplesStrips/index.js +645 -134
- package/dist/ProfileFlameChart/SamplesStrips/labelSetUtils.js +114 -55
- package/dist/ProfileFlameChart/index.js +260 -126
- package/dist/ProfileFlameGraph/FlameGraphArrow/ContextMenu.js +283 -85
- package/dist/ProfileFlameGraph/FlameGraphArrow/ContextMenuWrapper.js +56 -20
- package/dist/ProfileFlameGraph/FlameGraphArrow/FlameGraphNodes.js +211 -140
- package/dist/ProfileFlameGraph/FlameGraphArrow/MemoizedTooltip.js +133 -38
- package/dist/ProfileFlameGraph/FlameGraphArrow/MiniMap.js +261 -216
- package/dist/ProfileFlameGraph/FlameGraphArrow/TextWithEllipsis.d.ts.map +1 -1
- package/dist/ProfileFlameGraph/FlameGraphArrow/TextWithEllipsis.js +71 -45
- package/dist/ProfileFlameGraph/FlameGraphArrow/TooltipContext.d.ts.map +1 -1
- package/dist/ProfileFlameGraph/FlameGraphArrow/TooltipContext.js +58 -28
- package/dist/ProfileFlameGraph/FlameGraphArrow/ZoomControls.d.ts.map +1 -1
- package/dist/ProfileFlameGraph/FlameGraphArrow/ZoomControls.js +59 -8
- package/dist/ProfileFlameGraph/FlameGraphArrow/index.js +396 -179
- package/dist/ProfileFlameGraph/FlameGraphArrow/useBatchedRendering.d.ts.map +1 -1
- package/dist/ProfileFlameGraph/FlameGraphArrow/useBatchedRendering.js +68 -50
- package/dist/ProfileFlameGraph/FlameGraphArrow/useMappingList.js +62 -38
- package/dist/ProfileFlameGraph/FlameGraphArrow/useNodeColor.js +14 -6
- package/dist/ProfileFlameGraph/FlameGraphArrow/useScrollViewport.js +124 -82
- package/dist/ProfileFlameGraph/FlameGraphArrow/useVisibleNodes.js +160 -98
- package/dist/ProfileFlameGraph/FlameGraphArrow/useZoom.js +232 -112
- package/dist/ProfileFlameGraph/FlameGraphArrow/utils.js +137 -114
- package/dist/ProfileFlameGraph/benchmarks/benchdata/populateData.js +85 -0
- package/dist/ProfileFlameGraph/index.js +322 -147
- package/dist/ProfileMetricsGraph/hooks/useQueryRange.js +140 -32
- package/dist/ProfileMetricsGraph/index.js +515 -256
- package/dist/ProfileSelector/CompareButton.js +132 -12
- package/dist/ProfileSelector/MetricsGraphSection.js +228 -63
- package/dist/ProfileSelector/index.d.ts +1 -1
- package/dist/ProfileSelector/index.d.ts.map +1 -1
- package/dist/ProfileSelector/index.js +734 -142
- package/dist/ProfileSelector/useAutoQuerySelector.d.ts +1 -3
- package/dist/ProfileSelector/useAutoQuerySelector.d.ts.map +1 -1
- package/dist/ProfileSelector/useAutoQuerySelector.js +280 -132
- package/dist/ProfileSource.js +230 -163
- package/dist/ProfileTypeSelector/index.js +214 -125
- package/dist/ProfileView/components/ActionButtons/GroupByDropdown.js +50 -4
- package/dist/ProfileView/components/ActionButtons/SortByDropdown.js +137 -32
- package/dist/ProfileView/components/ColorStackLegend.js +182 -54
- package/dist/ProfileView/components/DashboardItems/index.js +87 -28
- package/dist/ProfileView/components/DashboardLayout/index.js +108 -16
- package/dist/ProfileView/components/DiffLegend.js +172 -29
- package/dist/ProfileView/components/GroupByLabelsDropdown/index.js +199 -55
- package/dist/ProfileView/components/InvertCallStack/index.js +97 -9
- package/dist/ProfileView/components/ProfileFilters/filterPresets.js +260 -315
- package/dist/ProfileView/components/ProfileFilters/index.js +518 -215
- package/dist/ProfileView/components/ProfileFilters/useProfileFilters.js +370 -306
- package/dist/ProfileView/components/ProfileFilters/useProfileFiltersUrlState.js +191 -118
- package/dist/ProfileView/components/ProfileHeader/index.js +105 -11
- package/dist/ProfileView/components/ShareButton/ResultBox.js +119 -16
- package/dist/ProfileView/components/ShareButton/index.js +352 -62
- package/dist/ProfileView/components/Toolbars/MultiLevelDropdown.d.ts.map +1 -1
- package/dist/ProfileView/components/Toolbars/MultiLevelDropdown.js +664 -192
- package/dist/ProfileView/components/Toolbars/SwitchMenuItem.js +94 -7
- package/dist/ProfileView/components/Toolbars/TableColumnsDropdown.js +196 -155
- package/dist/ProfileView/components/Toolbars/index.js +441 -21
- package/dist/ProfileView/components/ViewSelector/Dropdown.js +233 -22
- package/dist/ProfileView/components/ViewSelector/index.js +186 -82
- package/dist/ProfileView/components/VisualizationContainer/index.d.ts.map +1 -1
- package/dist/ProfileView/components/VisualizationContainer/index.js +52 -7
- package/dist/ProfileView/components/VisualizationPanel.js +185 -8
- package/dist/ProfileView/context/DashboardContext.js +74 -26
- package/dist/ProfileView/context/ProfileViewContext.js +56 -15
- package/dist/ProfileView/hooks/useAutoSelectDimension.js +71 -41
- package/dist/ProfileView/hooks/useProfileMetadata.js +50 -18
- package/dist/ProfileView/hooks/useResetFlameGraphState.js +31 -10
- package/dist/ProfileView/hooks/useResetStateOnProfileTypeChange.js +71 -27
- package/dist/ProfileView/hooks/useResetStateOnSeriesChange.js +53 -17
- package/dist/ProfileView/hooks/useVisualizationState.js +229 -69
- package/dist/ProfileView/index.js +383 -45
- package/dist/ProfileView/types/visualization.js +1 -13
- package/dist/ProfileView/utils/colorUtils.js +8 -7
- package/dist/ProfileViewWithData.js +319 -225
- package/dist/QueryControls/index.js +418 -47
- package/dist/Sandwich/components/CalleesSection.js +54 -4
- package/dist/Sandwich/components/CallersSection.js +97 -27
- package/dist/Sandwich/components/TableSection.js +77 -4
- package/dist/Sandwich/index.js +125 -12
- package/dist/Sandwich/utils/processRowData.js +48 -39
- package/dist/SelectWithRefresh/index.js +102 -28
- package/dist/SimpleMatchers/Select.js +520 -187
- package/dist/SimpleMatchers/index.js +590 -288
- package/dist/SourceView/Highlighter.js +230 -70
- package/dist/SourceView/LineNo.js +72 -17
- package/dist/SourceView/index.js +177 -101
- package/dist/SourceView/lang-detector/ext-to-lang.json +798 -798
- package/dist/SourceView/lang-detector/index.js +28 -14
- package/dist/SourceView/useSelectedLineRange.js +72 -20
- package/dist/Table/ColorCell.js +42 -1
- package/dist/Table/ColumnsVisibility.js +114 -6
- package/dist/Table/MoreDropdown.js +107 -21
- package/dist/Table/TableContextMenu.js +144 -134
- package/dist/Table/TableContextMenuWrapper.js +59 -14
- package/dist/Table/hooks/useColorManagement.js +58 -16
- package/dist/Table/hooks/useTableConfiguration.d.ts.map +1 -1
- package/dist/Table/hooks/useTableConfiguration.js +323 -167
- package/dist/Table/index.js +217 -123
- package/dist/Table/utils/functions.js +169 -144
- package/dist/Table/utils/topAndBottomExpandedRowModel.js +69 -52
- package/dist/TimelineGuide/index.js +209 -16
- package/dist/TopTable/benchmarks/benchdata/populateData.js +91 -0
- package/dist/TopTable/index.js +325 -121
- package/dist/contexts/LabelsQueryProvider.js +94 -32
- package/dist/contexts/UnifiedLabelsContext.js +114 -49
- package/dist/contexts/utils.js +37 -15
- package/dist/hooks/urlParsers.js +27 -15
- package/dist/hooks/useColorBy.js +47 -10
- package/dist/hooks/useCompareModeMeta.js +112 -62
- package/dist/hooks/useDashboardItems.js +52 -11
- package/dist/hooks/useLabels.js +295 -52
- package/dist/hooks/useQueryState.d.ts +1 -1
- package/dist/hooks/useQueryState.d.ts.map +1 -1
- package/dist/hooks/useQueryState.js +375 -329
- package/dist/index.js +11 -6
- package/dist/testdata/fg-diff.json +3750 -0
- package/dist/testdata/fg-simple.json +1879 -0
- package/dist/testdata/link_data.json +56 -0
- package/dist/testdata/tabular.json +30 -0
- package/dist/testdata/test_flamegraph.json +26846 -0
- package/dist/testdata/test_graph.json +53 -0
- package/dist/useDelayedLoader.js +32 -18
- package/dist/useGrpcQuery/index.js +71 -11
- package/dist/useHasProfileData.js +90 -12
- package/dist/useQuery.js +205 -64
- package/dist/useSumBy.d.ts.map +1 -1
- package/dist/useSumBy.js +294 -138
- package/dist/utils.js +62 -30
- package/package.json +9 -9
- package/src/GraphTooltipArrow/index.tsx +3 -0
- package/src/MatchersInput/SuggestionsList.test.tsx +70 -0
- package/src/MatchersInput/SuggestionsList.tsx +11 -10
- package/src/MatchersInput/index.tsx +1 -1
- package/src/MetricsGraph/MetricsTooltip/index.tsx +22 -34
- package/src/PreSelectedMatchers/index.tsx +3 -0
- package/src/ProfileExplorer/ProfileExplorerCompare.tsx +9 -2
- package/src/ProfileFlameGraph/FlameGraphArrow/TextWithEllipsis.tsx +3 -0
- package/src/ProfileFlameGraph/FlameGraphArrow/TooltipContext.tsx +3 -0
- package/src/ProfileFlameGraph/FlameGraphArrow/ZoomControls.tsx +3 -0
- package/src/ProfileFlameGraph/FlameGraphArrow/useBatchedRendering.ts +3 -0
- package/src/ProfileSelector/index.tsx +31 -9
- package/src/ProfileSelector/useAutoQuerySelector.ts +64 -42
- package/src/ProfileView/components/Toolbars/MultiLevelDropdown.tsx +3 -0
- package/src/ProfileView/components/VisualizationContainer/index.tsx +3 -0
- package/src/Table/hooks/useTableConfiguration.tsx +7 -13
- package/src/hooks/useQueryState.ts +18 -3
- package/src/useDelayedLoader.ts +10 -10
- package/src/useSumBy.ts +12 -18
- package/dist/ProfileView/components/ProfileFilters/useProfileFiltersUrlState.test.js +0 -455
- package/dist/hooks/useQueryState.test.js +0 -868
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
|
+
import { c as _c } from "react-compiler-runtime";
|
|
1
8
|
// Copyright 2022 The Parca Authors
|
|
2
9
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
10
|
// you may not use this file except in compliance with the License.
|
|
@@ -10,16 +17,30 @@
|
|
|
10
17
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
18
|
// See the License for the specific language governing permissions and
|
|
12
19
|
// limitations under the License.
|
|
20
|
+
|
|
13
21
|
import { useQueryState } from 'nuqs';
|
|
14
22
|
import { stringParam } from '../../hooks/urlParsers';
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
export var useResetFlameGraphState = function useResetFlameGraphState() {
|
|
24
|
+
var $ = _c(3);
|
|
25
|
+
var _useQueryState = useQueryState("cur_path", stringParam),
|
|
26
|
+
_useQueryState2 = _slicedToArray(_useQueryState, 2),
|
|
27
|
+
val = _useQueryState2[0],
|
|
28
|
+
setCurPath = _useQueryState2[1];
|
|
29
|
+
var t0;
|
|
30
|
+
if ($[0] !== setCurPath || $[1] !== val) {
|
|
31
|
+
t0 = function t0() {
|
|
32
|
+
setTimeout(function () {
|
|
33
|
+
if (val === null) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
setCurPath(null);
|
|
37
|
+
});
|
|
24
38
|
};
|
|
25
|
-
|
|
39
|
+
$[0] = setCurPath;
|
|
40
|
+
$[1] = val;
|
|
41
|
+
$[2] = t0;
|
|
42
|
+
} else {
|
|
43
|
+
t0 = $[2];
|
|
44
|
+
}
|
|
45
|
+
return t0;
|
|
46
|
+
};
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
|
+
import { c as _c } from "react-compiler-runtime";
|
|
1
8
|
// Copyright 2022 The Parca Authors
|
|
2
9
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
10
|
// you may not use this file except in compliance with the License.
|
|
@@ -10,34 +17,71 @@
|
|
|
10
17
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
18
|
// See the License for the specific language governing permissions and
|
|
12
19
|
// limitations under the License.
|
|
20
|
+
|
|
13
21
|
import { useQueryStates } from 'nuqs';
|
|
14
22
|
import { stringParam } from '../../hooks/urlParsers';
|
|
15
23
|
import { useProfileFilters } from '../components/ProfileFilters/useProfileFilters';
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const updates = {};
|
|
28
|
-
if (state.group_by !== null)
|
|
29
|
-
updates.group_by = null;
|
|
30
|
-
if (state.cur_path !== null)
|
|
31
|
-
updates.cur_path = null;
|
|
32
|
-
if (state.sandwich_function_name !== null)
|
|
33
|
-
updates.sandwich_function_name = null;
|
|
34
|
-
if (state.sum_by_a !== null)
|
|
35
|
-
updates.sum_by_a = null;
|
|
36
|
-
if (state.sum_by_b !== null)
|
|
37
|
-
updates.sum_by_b = null;
|
|
38
|
-
if (Object.keys(updates).length > 0) {
|
|
39
|
-
void setState(updates);
|
|
40
|
-
}
|
|
41
|
-
resetFilters();
|
|
24
|
+
export var useResetStateOnProfileTypeChange = function useResetStateOnProfileTypeChange() {
|
|
25
|
+
var $ = _c(10);
|
|
26
|
+
var t0;
|
|
27
|
+
var t1;
|
|
28
|
+
if ($[0] === Symbol["for"]("react.memo_cache_sentinel")) {
|
|
29
|
+
t0 = {
|
|
30
|
+
group_by: stringParam,
|
|
31
|
+
cur_path: stringParam,
|
|
32
|
+
sum_by_a: stringParam,
|
|
33
|
+
sum_by_b: stringParam,
|
|
34
|
+
sandwich_function_name: stringParam
|
|
42
35
|
};
|
|
43
|
-
|
|
36
|
+
t1 = {
|
|
37
|
+
history: "replace"
|
|
38
|
+
};
|
|
39
|
+
$[0] = t0;
|
|
40
|
+
$[1] = t1;
|
|
41
|
+
} else {
|
|
42
|
+
t0 = $[0];
|
|
43
|
+
t1 = $[1];
|
|
44
|
+
}
|
|
45
|
+
var _useQueryStates = useQueryStates(t0, t1),
|
|
46
|
+
_useQueryStates2 = _slicedToArray(_useQueryStates, 2),
|
|
47
|
+
state = _useQueryStates2[0],
|
|
48
|
+
setState = _useQueryStates2[1];
|
|
49
|
+
var _useProfileFilters = useProfileFilters(),
|
|
50
|
+
resetFilters = _useProfileFilters.resetFilters;
|
|
51
|
+
var t2;
|
|
52
|
+
if ($[2] !== resetFilters || $[3] !== setState || $[4] !== state.cur_path || $[5] !== state.group_by || $[6] !== state.sandwich_function_name || $[7] !== state.sum_by_a || $[8] !== state.sum_by_b) {
|
|
53
|
+
t2 = function t2() {
|
|
54
|
+
var updates = {};
|
|
55
|
+
if (state.group_by !== null) {
|
|
56
|
+
updates.group_by = null;
|
|
57
|
+
}
|
|
58
|
+
if (state.cur_path !== null) {
|
|
59
|
+
updates.cur_path = null;
|
|
60
|
+
}
|
|
61
|
+
if (state.sandwich_function_name !== null) {
|
|
62
|
+
updates.sandwich_function_name = null;
|
|
63
|
+
}
|
|
64
|
+
if (state.sum_by_a !== null) {
|
|
65
|
+
updates.sum_by_a = null;
|
|
66
|
+
}
|
|
67
|
+
if (state.sum_by_b !== null) {
|
|
68
|
+
updates.sum_by_b = null;
|
|
69
|
+
}
|
|
70
|
+
if (Object.keys(updates).length > 0) {
|
|
71
|
+
setState(updates);
|
|
72
|
+
}
|
|
73
|
+
resetFilters();
|
|
74
|
+
};
|
|
75
|
+
$[2] = resetFilters;
|
|
76
|
+
$[3] = setState;
|
|
77
|
+
$[4] = state.cur_path;
|
|
78
|
+
$[5] = state.group_by;
|
|
79
|
+
$[6] = state.sandwich_function_name;
|
|
80
|
+
$[7] = state.sum_by_a;
|
|
81
|
+
$[8] = state.sum_by_b;
|
|
82
|
+
$[9] = t2;
|
|
83
|
+
} else {
|
|
84
|
+
t2 = $[9];
|
|
85
|
+
}
|
|
86
|
+
return t2;
|
|
87
|
+
};
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
|
+
import { c as _c } from "react-compiler-runtime";
|
|
1
8
|
// Copyright 2022 The Parca Authors
|
|
2
9
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
10
|
// you may not use this file except in compliance with the License.
|
|
@@ -10,23 +17,52 @@
|
|
|
10
17
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
18
|
// See the License for the specific language governing permissions and
|
|
12
19
|
// limitations under the License.
|
|
20
|
+
|
|
13
21
|
import { useQueryStates } from 'nuqs';
|
|
14
22
|
import { stringParam } from '../../hooks/urlParsers';
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
if (state.cur_path !== null)
|
|
24
|
-
updates.cur_path = null;
|
|
25
|
-
if (state.sandwich_function_name !== null)
|
|
26
|
-
updates.sandwich_function_name = null;
|
|
27
|
-
if (Object.keys(updates).length > 0) {
|
|
28
|
-
void setState(updates);
|
|
29
|
-
}
|
|
30
|
-
});
|
|
23
|
+
export var useResetStateOnSeriesChange = function useResetStateOnSeriesChange() {
|
|
24
|
+
var $ = _c(5);
|
|
25
|
+
var t0;
|
|
26
|
+
var t1;
|
|
27
|
+
if ($[0] === Symbol["for"]("react.memo_cache_sentinel")) {
|
|
28
|
+
t0 = {
|
|
29
|
+
cur_path: stringParam,
|
|
30
|
+
sandwich_function_name: stringParam
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
t1 = {
|
|
33
|
+
history: "replace"
|
|
34
|
+
};
|
|
35
|
+
$[0] = t0;
|
|
36
|
+
$[1] = t1;
|
|
37
|
+
} else {
|
|
38
|
+
t0 = $[0];
|
|
39
|
+
t1 = $[1];
|
|
40
|
+
}
|
|
41
|
+
var _useQueryStates = useQueryStates(t0, t1),
|
|
42
|
+
_useQueryStates2 = _slicedToArray(_useQueryStates, 2),
|
|
43
|
+
state = _useQueryStates2[0],
|
|
44
|
+
setState = _useQueryStates2[1];
|
|
45
|
+
var t2;
|
|
46
|
+
if ($[2] !== setState || $[3] !== state) {
|
|
47
|
+
t2 = function t2() {
|
|
48
|
+
setTimeout(function () {
|
|
49
|
+
var updates = {};
|
|
50
|
+
if (state.cur_path !== null) {
|
|
51
|
+
updates.cur_path = null;
|
|
52
|
+
}
|
|
53
|
+
if (state.sandwich_function_name !== null) {
|
|
54
|
+
updates.sandwich_function_name = null;
|
|
55
|
+
}
|
|
56
|
+
if (Object.keys(updates).length > 0) {
|
|
57
|
+
setState(updates);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
$[2] = setState;
|
|
62
|
+
$[3] = state;
|
|
63
|
+
$[4] = t2;
|
|
64
|
+
} else {
|
|
65
|
+
t2 = $[4];
|
|
66
|
+
}
|
|
67
|
+
return t2;
|
|
68
|
+
};
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
4
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
5
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
6
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
8
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
9
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
10
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
11
|
+
import { c as _c } from "react-compiler-runtime";
|
|
1
12
|
// Copyright 2022 The Parca Authors
|
|
2
13
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
14
|
// you may not use this file except in compliance with the License.
|
|
@@ -10,79 +21,228 @@
|
|
|
10
21
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
22
|
// See the License for the specific language governing permissions and
|
|
12
23
|
// limitations under the License.
|
|
24
|
+
|
|
13
25
|
import { useCallback, useMemo } from 'react';
|
|
14
26
|
import { useQueryState } from 'nuqs';
|
|
15
27
|
import { USER_PREFERENCES, useUserPreference } from '@parca/hooks';
|
|
16
|
-
import { FIELD_FUNCTION_FILE_NAME, FIELD_FUNCTION_NAME, FIELD_LABELS, FIELD_LOCATION_ADDRESS, FIELD_MAPPING_FILE
|
|
17
|
-
import { flamechartDimensionParser, groupByParser, jsonParser, stringParam
|
|
28
|
+
import { FIELD_FUNCTION_FILE_NAME, FIELD_FUNCTION_NAME, FIELD_LABELS, FIELD_LOCATION_ADDRESS, FIELD_MAPPING_FILE } from '../../ProfileFlameGraph/FlameGraphArrow';
|
|
29
|
+
import { flamechartDimensionParser, groupByParser, jsonParser, stringParam } from '../../hooks/urlParsers';
|
|
18
30
|
import { useColorBy } from '../../hooks/useColorBy';
|
|
19
31
|
import { useResetFlameGraphState } from './useResetFlameGraphState';
|
|
20
|
-
export
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
], []);
|
|
43
|
-
const setGroupBy = useCallback((keys) => {
|
|
44
|
-
void setStoreGroupBy(keys);
|
|
45
|
-
}, [setStoreGroupBy]);
|
|
46
|
-
const toggleGroupBy = useCallback((key) => {
|
|
47
|
-
if (groupBy.includes(key)) {
|
|
48
|
-
setGroupBy(groupBy.filter(v => v !== key));
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
const filteredGroupBy = groupBy.filter(item => !levelsOfProfiling.includes(item));
|
|
52
|
-
setGroupBy([...filteredGroupBy, key]);
|
|
53
|
-
}
|
|
54
|
-
resetFlameGraphState();
|
|
55
|
-
}, [groupBy, setGroupBy, levelsOfProfiling, resetFlameGraphState]);
|
|
56
|
-
const setGroupByLabels = useCallback((labels) => {
|
|
57
|
-
setGroupBy(groupBy.filter(l => !l.startsWith(`${FIELD_LABELS}.`)).concat(labels));
|
|
58
|
-
resetFlameGraphState();
|
|
59
|
-
}, [groupBy, setGroupBy, resetFlameGraphState]);
|
|
60
|
-
const setFlamechartDimension = useCallback((labels) => {
|
|
61
|
-
void setStoreFlamechartDimension(labels.filter(l => l.startsWith(`${FIELD_LABELS}.`)));
|
|
62
|
-
}, [setStoreFlamechartDimension]);
|
|
63
|
-
const resetSandwichFunctionName = useCallback(() => {
|
|
64
|
-
setSandwichFunctionName(null);
|
|
65
|
-
}, [setSandwichFunctionName]);
|
|
66
|
-
const setAlignFunctionName = useCallback((value) => {
|
|
67
|
-
void setStoreAlignFunctionName(value);
|
|
68
|
-
setAlignFunctionNamePreference(value);
|
|
69
|
-
}, [setStoreAlignFunctionName, setAlignFunctionNamePreference]);
|
|
70
|
-
return {
|
|
71
|
-
curPathArrow,
|
|
72
|
-
setCurPathArrow,
|
|
73
|
-
colorStackLegend,
|
|
74
|
-
colorBy,
|
|
75
|
-
setColorBy,
|
|
76
|
-
groupBy,
|
|
77
|
-
setGroupBy,
|
|
78
|
-
toggleGroupBy,
|
|
79
|
-
setGroupByLabels,
|
|
80
|
-
flamechartDimension,
|
|
81
|
-
setFlamechartDimension,
|
|
82
|
-
sandwichFunctionName,
|
|
83
|
-
setSandwichFunctionName,
|
|
84
|
-
resetSandwichFunctionName,
|
|
85
|
-
alignFunctionName,
|
|
86
|
-
setAlignFunctionName,
|
|
32
|
+
export var useVisualizationState = function useVisualizationState() {
|
|
33
|
+
var _ref;
|
|
34
|
+
var $ = _c(42);
|
|
35
|
+
var _useUserPreference = useUserPreference(USER_PREFERENCES.ALIGN_FUNCTION_NAME.key),
|
|
36
|
+
_useUserPreference2 = _slicedToArray(_useUserPreference, 2),
|
|
37
|
+
alignFunctionNamePreference = _useUserPreference2[0],
|
|
38
|
+
setAlignFunctionNamePreference = _useUserPreference2[1];
|
|
39
|
+
var t0;
|
|
40
|
+
if ($[0] === Symbol["for"]("react.memo_cache_sentinel")) {
|
|
41
|
+
t0 = jsonParser().withDefault([]);
|
|
42
|
+
$[0] = t0;
|
|
43
|
+
} else {
|
|
44
|
+
t0 = $[0];
|
|
45
|
+
}
|
|
46
|
+
var _useQueryState = useQueryState("cur_path", t0),
|
|
47
|
+
_useQueryState2 = _slicedToArray(_useQueryState, 2),
|
|
48
|
+
curPathArrow = _useQueryState2[0],
|
|
49
|
+
setRawCurPathArrow = _useQueryState2[1];
|
|
50
|
+
var t1;
|
|
51
|
+
if ($[1] !== setRawCurPathArrow) {
|
|
52
|
+
t1 = function t1(path) {
|
|
53
|
+
setRawCurPathArrow(path);
|
|
87
54
|
};
|
|
55
|
+
$[1] = setRawCurPathArrow;
|
|
56
|
+
$[2] = t1;
|
|
57
|
+
} else {
|
|
58
|
+
t1 = $[2];
|
|
59
|
+
}
|
|
60
|
+
var setCurPathArrow = t1;
|
|
61
|
+
var _useQueryState3 = useQueryState("color_stack_legend", stringParam),
|
|
62
|
+
_useQueryState4 = _slicedToArray(_useQueryState3, 1),
|
|
63
|
+
colorStackLegend = _useQueryState4[0];
|
|
64
|
+
var _useColorBy = useColorBy(),
|
|
65
|
+
colorBy = _useColorBy.colorBy,
|
|
66
|
+
setColorBy = _useColorBy.setColorBy;
|
|
67
|
+
var _useQueryState5 = useQueryState("align_function_name", stringParam),
|
|
68
|
+
_useQueryState6 = _slicedToArray(_useQueryState5, 2),
|
|
69
|
+
alignFunctionNameRaw = _useQueryState6[0],
|
|
70
|
+
setStoreAlignFunctionName = _useQueryState6[1];
|
|
71
|
+
var alignFunctionName = (_ref = alignFunctionNameRaw !== null && alignFunctionNameRaw !== void 0 ? alignFunctionNameRaw : alignFunctionNamePreference) !== null && _ref !== void 0 ? _ref : "left";
|
|
72
|
+
var t2;
|
|
73
|
+
if ($[3] === Symbol["for"]("react.memo_cache_sentinel")) {
|
|
74
|
+
t2 = groupByParser.withDefault([FIELD_FUNCTION_NAME]);
|
|
75
|
+
$[3] = t2;
|
|
76
|
+
} else {
|
|
77
|
+
t2 = $[3];
|
|
78
|
+
}
|
|
79
|
+
var _useQueryState7 = useQueryState("group_by", t2),
|
|
80
|
+
_useQueryState8 = _slicedToArray(_useQueryState7, 2),
|
|
81
|
+
groupBy = _useQueryState8[0],
|
|
82
|
+
setStoreGroupBy = _useQueryState8[1];
|
|
83
|
+
var _useQueryState9 = useQueryState("sandwich_function_name", stringParam),
|
|
84
|
+
_useQueryState0 = _slicedToArray(_useQueryState9, 2),
|
|
85
|
+
sandwichFunctionName = _useQueryState0[0],
|
|
86
|
+
setRawSandwichFunctionName = _useQueryState0[1];
|
|
87
|
+
var t3;
|
|
88
|
+
if ($[4] !== setRawSandwichFunctionName) {
|
|
89
|
+
t3 = function t3(name) {
|
|
90
|
+
setRawSandwichFunctionName(name);
|
|
91
|
+
};
|
|
92
|
+
$[4] = setRawSandwichFunctionName;
|
|
93
|
+
$[5] = t3;
|
|
94
|
+
} else {
|
|
95
|
+
t3 = $[5];
|
|
96
|
+
}
|
|
97
|
+
var setSandwichFunctionName = t3;
|
|
98
|
+
var t4;
|
|
99
|
+
if ($[6] === Symbol["for"]("react.memo_cache_sentinel")) {
|
|
100
|
+
t4 = flamechartDimensionParser.withDefault([]);
|
|
101
|
+
$[6] = t4;
|
|
102
|
+
} else {
|
|
103
|
+
t4 = $[6];
|
|
104
|
+
}
|
|
105
|
+
var _useQueryState1 = useQueryState("flamechart_dimension", t4),
|
|
106
|
+
_useQueryState10 = _slicedToArray(_useQueryState1, 2),
|
|
107
|
+
flamechartDimension = _useQueryState10[0],
|
|
108
|
+
setStoreFlamechartDimension = _useQueryState10[1];
|
|
109
|
+
var resetFlameGraphState = useResetFlameGraphState();
|
|
110
|
+
var t5;
|
|
111
|
+
if ($[7] === Symbol["for"]("react.memo_cache_sentinel")) {
|
|
112
|
+
t5 = [FIELD_FUNCTION_NAME, FIELD_FUNCTION_FILE_NAME, FIELD_LOCATION_ADDRESS, FIELD_MAPPING_FILE];
|
|
113
|
+
$[7] = t5;
|
|
114
|
+
} else {
|
|
115
|
+
t5 = $[7];
|
|
116
|
+
}
|
|
117
|
+
var levelsOfProfiling = t5;
|
|
118
|
+
var t6;
|
|
119
|
+
if ($[8] !== setStoreGroupBy) {
|
|
120
|
+
t6 = function t6(keys) {
|
|
121
|
+
setStoreGroupBy(keys);
|
|
122
|
+
};
|
|
123
|
+
$[8] = setStoreGroupBy;
|
|
124
|
+
$[9] = t6;
|
|
125
|
+
} else {
|
|
126
|
+
t6 = $[9];
|
|
127
|
+
}
|
|
128
|
+
var setGroupBy = t6;
|
|
129
|
+
var t7;
|
|
130
|
+
if ($[10] !== groupBy || $[11] !== resetFlameGraphState || $[12] !== setGroupBy) {
|
|
131
|
+
t7 = function t7(key) {
|
|
132
|
+
if (groupBy.includes(key)) {
|
|
133
|
+
setGroupBy(groupBy.filter(function (v) {
|
|
134
|
+
return v !== key;
|
|
135
|
+
}));
|
|
136
|
+
} else {
|
|
137
|
+
var filteredGroupBy = groupBy.filter(function (item) {
|
|
138
|
+
return !levelsOfProfiling.includes(item);
|
|
139
|
+
});
|
|
140
|
+
setGroupBy([].concat(_toConsumableArray(filteredGroupBy), [key]));
|
|
141
|
+
}
|
|
142
|
+
resetFlameGraphState();
|
|
143
|
+
};
|
|
144
|
+
$[10] = groupBy;
|
|
145
|
+
$[11] = resetFlameGraphState;
|
|
146
|
+
$[12] = setGroupBy;
|
|
147
|
+
$[13] = t7;
|
|
148
|
+
} else {
|
|
149
|
+
t7 = $[13];
|
|
150
|
+
}
|
|
151
|
+
var toggleGroupBy = t7;
|
|
152
|
+
var t8;
|
|
153
|
+
if ($[14] !== groupBy || $[15] !== resetFlameGraphState || $[16] !== setGroupBy) {
|
|
154
|
+
t8 = function t8(labels) {
|
|
155
|
+
setGroupBy(groupBy.filter(_temp).concat(labels));
|
|
156
|
+
resetFlameGraphState();
|
|
157
|
+
};
|
|
158
|
+
$[14] = groupBy;
|
|
159
|
+
$[15] = resetFlameGraphState;
|
|
160
|
+
$[16] = setGroupBy;
|
|
161
|
+
$[17] = t8;
|
|
162
|
+
} else {
|
|
163
|
+
t8 = $[17];
|
|
164
|
+
}
|
|
165
|
+
var setGroupByLabels = t8;
|
|
166
|
+
var t9;
|
|
167
|
+
if ($[18] !== setStoreFlamechartDimension) {
|
|
168
|
+
t9 = function t9(labels_0) {
|
|
169
|
+
setStoreFlamechartDimension(labels_0.filter(_temp2));
|
|
170
|
+
};
|
|
171
|
+
$[18] = setStoreFlamechartDimension;
|
|
172
|
+
$[19] = t9;
|
|
173
|
+
} else {
|
|
174
|
+
t9 = $[19];
|
|
175
|
+
}
|
|
176
|
+
var setFlamechartDimension = t9;
|
|
177
|
+
var t10;
|
|
178
|
+
if ($[20] !== setSandwichFunctionName) {
|
|
179
|
+
t10 = function t10() {
|
|
180
|
+
setSandwichFunctionName(null);
|
|
181
|
+
};
|
|
182
|
+
$[20] = setSandwichFunctionName;
|
|
183
|
+
$[21] = t10;
|
|
184
|
+
} else {
|
|
185
|
+
t10 = $[21];
|
|
186
|
+
}
|
|
187
|
+
var resetSandwichFunctionName = t10;
|
|
188
|
+
var t11;
|
|
189
|
+
if ($[22] !== setAlignFunctionNamePreference || $[23] !== setStoreAlignFunctionName) {
|
|
190
|
+
t11 = function t11(value) {
|
|
191
|
+
setStoreAlignFunctionName(value);
|
|
192
|
+
setAlignFunctionNamePreference(value);
|
|
193
|
+
};
|
|
194
|
+
$[22] = setAlignFunctionNamePreference;
|
|
195
|
+
$[23] = setStoreAlignFunctionName;
|
|
196
|
+
$[24] = t11;
|
|
197
|
+
} else {
|
|
198
|
+
t11 = $[24];
|
|
199
|
+
}
|
|
200
|
+
var setAlignFunctionName = t11;
|
|
201
|
+
var t12;
|
|
202
|
+
if ($[25] !== alignFunctionName || $[26] !== colorBy || $[27] !== colorStackLegend || $[28] !== curPathArrow || $[29] !== flamechartDimension || $[30] !== groupBy || $[31] !== resetSandwichFunctionName || $[32] !== sandwichFunctionName || $[33] !== setAlignFunctionName || $[34] !== setColorBy || $[35] !== setCurPathArrow || $[36] !== setFlamechartDimension || $[37] !== setGroupBy || $[38] !== setGroupByLabels || $[39] !== setSandwichFunctionName || $[40] !== toggleGroupBy) {
|
|
203
|
+
t12 = {
|
|
204
|
+
curPathArrow: curPathArrow,
|
|
205
|
+
setCurPathArrow: setCurPathArrow,
|
|
206
|
+
colorStackLegend: colorStackLegend,
|
|
207
|
+
colorBy: colorBy,
|
|
208
|
+
setColorBy: setColorBy,
|
|
209
|
+
groupBy: groupBy,
|
|
210
|
+
setGroupBy: setGroupBy,
|
|
211
|
+
toggleGroupBy: toggleGroupBy,
|
|
212
|
+
setGroupByLabels: setGroupByLabels,
|
|
213
|
+
flamechartDimension: flamechartDimension,
|
|
214
|
+
setFlamechartDimension: setFlamechartDimension,
|
|
215
|
+
sandwichFunctionName: sandwichFunctionName,
|
|
216
|
+
setSandwichFunctionName: setSandwichFunctionName,
|
|
217
|
+
resetSandwichFunctionName: resetSandwichFunctionName,
|
|
218
|
+
alignFunctionName: alignFunctionName,
|
|
219
|
+
setAlignFunctionName: setAlignFunctionName
|
|
220
|
+
};
|
|
221
|
+
$[25] = alignFunctionName;
|
|
222
|
+
$[26] = colorBy;
|
|
223
|
+
$[27] = colorStackLegend;
|
|
224
|
+
$[28] = curPathArrow;
|
|
225
|
+
$[29] = flamechartDimension;
|
|
226
|
+
$[30] = groupBy;
|
|
227
|
+
$[31] = resetSandwichFunctionName;
|
|
228
|
+
$[32] = sandwichFunctionName;
|
|
229
|
+
$[33] = setAlignFunctionName;
|
|
230
|
+
$[34] = setColorBy;
|
|
231
|
+
$[35] = setCurPathArrow;
|
|
232
|
+
$[36] = setFlamechartDimension;
|
|
233
|
+
$[37] = setGroupBy;
|
|
234
|
+
$[38] = setGroupByLabels;
|
|
235
|
+
$[39] = setSandwichFunctionName;
|
|
236
|
+
$[40] = toggleGroupBy;
|
|
237
|
+
$[41] = t12;
|
|
238
|
+
} else {
|
|
239
|
+
t12 = $[41];
|
|
240
|
+
}
|
|
241
|
+
return t12;
|
|
88
242
|
};
|
|
243
|
+
function _temp(l) {
|
|
244
|
+
return !l.startsWith("".concat(FIELD_LABELS, "."));
|
|
245
|
+
}
|
|
246
|
+
function _temp2(l_0) {
|
|
247
|
+
return l_0.startsWith("".concat(FIELD_LABELS, "."));
|
|
248
|
+
}
|