@parca/profile 0.19.156 → 0.19.158

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 (49) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/GraphTooltipArrow/useGraphTooltipMetaInfo/index.d.ts.map +1 -1
  3. package/dist/GraphTooltipArrow/useGraphTooltipMetaInfo/index.js +9 -3
  4. package/dist/ProfileFlameGraph/FlameGraphArrow/ContextMenu.js +3 -1
  5. package/dist/ProfileSelector/index.js +274 -265
  6. package/dist/ProfileView/components/ActionButtons/SortByDropdown.js +3 -1
  7. package/dist/ProfileView/components/InvertCallStack/index.d.ts.map +1 -1
  8. package/dist/ProfileView/components/InvertCallStack/index.js +55 -46
  9. package/dist/ProfileView/components/Toolbars/MultiLevelDropdown.d.ts.map +1 -1
  10. package/dist/ProfileView/components/Toolbars/MultiLevelDropdown.js +282 -255
  11. package/dist/ProfileView/components/Toolbars/TableColumnsDropdown.d.ts.map +1 -1
  12. package/dist/ProfileView/components/Toolbars/TableColumnsDropdown.js +141 -132
  13. package/dist/ProfileView/components/ViewSelector/index.d.ts.map +1 -1
  14. package/dist/ProfileView/components/ViewSelector/index.js +49 -40
  15. package/dist/ProfileView/context/DashboardContext.d.ts.map +1 -1
  16. package/dist/ProfileView/context/DashboardContext.js +37 -28
  17. package/dist/ProfileView/hooks/useResetFlameGraphState.d.ts.map +1 -1
  18. package/dist/ProfileView/hooks/useResetFlameGraphState.js +19 -10
  19. package/dist/ProfileView/hooks/useVisualizationState.d.ts.map +1 -1
  20. package/dist/ProfileView/hooks/useVisualizationState.js +122 -98
  21. package/dist/SourceView/useSelectedLineRange.js +2 -0
  22. package/dist/Table/MoreDropdown.d.ts.map +1 -1
  23. package/dist/Table/MoreDropdown.js +40 -31
  24. package/dist/Table/TableContextMenu.d.ts.map +1 -1
  25. package/dist/Table/TableContextMenu.js +3 -1
  26. package/dist/Table/index.d.ts.map +1 -1
  27. package/dist/Table/index.js +3 -1
  28. package/dist/hooks/useColorBy.d.ts.map +1 -1
  29. package/dist/hooks/useColorBy.js +27 -18
  30. package/dist/hooks/useQueryState.d.ts.map +1 -1
  31. package/dist/hooks/useQueryState.js +20 -5
  32. package/package.json +3 -3
  33. package/src/GraphTooltipArrow/useGraphTooltipMetaInfo/index.ts +12 -3
  34. package/src/ProfileFlameGraph/FlameGraphArrow/ContextMenu.tsx +1 -1
  35. package/src/ProfileSelector/index.tsx +1 -1
  36. package/src/ProfileView/components/ActionButtons/SortByDropdown.tsx +1 -1
  37. package/src/ProfileView/components/InvertCallStack/index.tsx +4 -1
  38. package/src/ProfileView/components/Toolbars/MultiLevelDropdown.tsx +6 -3
  39. package/src/ProfileView/components/Toolbars/TableColumnsDropdown.tsx +4 -1
  40. package/src/ProfileView/components/ViewSelector/index.tsx +4 -1
  41. package/src/ProfileView/context/DashboardContext.tsx +4 -1
  42. package/src/ProfileView/hooks/useResetFlameGraphState.ts +4 -1
  43. package/src/ProfileView/hooks/useVisualizationState.ts +7 -5
  44. package/src/SourceView/useSelectedLineRange.ts +1 -1
  45. package/src/Table/MoreDropdown.tsx +4 -1
  46. package/src/Table/TableContextMenu.tsx +4 -1
  47. package/src/Table/index.tsx +4 -1
  48. package/src/hooks/useColorBy.ts +4 -1
  49. package/src/hooks/useQueryState.ts +38 -20
@@ -28,7 +28,9 @@ var SortByDropdown = function SortByDropdown() {
28
28
  var $ = _c(13);
29
29
  var t0;
30
30
  if ($[0] === Symbol["for"]("react.memo_cache_sentinel")) {
31
- t0 = stringParam.withDefault(FIELD_FUNCTION_NAME);
31
+ t0 = stringParam.withDefault(FIELD_FUNCTION_NAME).withOptions({
32
+ history: "push"
33
+ });
32
34
  $[0] = t0;
33
35
  } else {
34
36
  t0 = $[0];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ProfileView/components/InvertCallStack/index.tsx"],"names":[],"mappings":"AAsBA,QAAA,MAAM,eAAe,QAAO,GAAG,CAAC,OAyB/B,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ProfileView/components/InvertCallStack/index.tsx"],"names":[],"mappings":"AAsBA,QAAA,MAAM,eAAe,QAAO,GAAG,CAAC,OA4B/B,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -32,86 +32,95 @@ import { invertCallStackParser } from '../../../hooks/urlParsers';
32
32
  import { useResetFlameGraphState } from '../../hooks/useResetFlameGraphState';
33
33
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
34
34
  var InvertCallStack = function InvertCallStack() {
35
- var $ = _c(14);
36
- var _useQueryState = useQueryState("invert_call_stack", invertCallStackParser),
35
+ var $ = _c(15);
36
+ var t0;
37
+ if ($[0] === Symbol["for"]("react.memo_cache_sentinel")) {
38
+ t0 = invertCallStackParser.withOptions({
39
+ history: "push"
40
+ });
41
+ $[0] = t0;
42
+ } else {
43
+ t0 = $[0];
44
+ }
45
+ var _useQueryState = useQueryState("invert_call_stack", t0),
37
46
  _useQueryState2 = _slicedToArray(_useQueryState, 2),
38
47
  isInvert = _useQueryState2[0],
39
48
  setInvertStack = _useQueryState2[1];
40
49
  var resetFlameGraphState = useResetFlameGraphState();
41
- var t0;
42
- if ($[0] !== resetFlameGraphState || $[1] !== setInvertStack) {
43
- t0 = function t0(value) {
50
+ var t1;
51
+ if ($[1] !== resetFlameGraphState || $[2] !== setInvertStack) {
52
+ t1 = function t1(value) {
44
53
  setInvertStack(value);
45
54
  resetFlameGraphState();
46
55
  };
47
- $[0] = resetFlameGraphState;
48
- $[1] = setInvertStack;
49
- $[2] = t0;
56
+ $[1] = resetFlameGraphState;
57
+ $[2] = setInvertStack;
58
+ $[3] = t1;
50
59
  } else {
51
- t0 = $[2];
60
+ t1 = $[3];
52
61
  }
53
- var handleSetInvert = t0;
54
- var t1;
55
- if ($[3] === Symbol["for"]("react.memo_cache_sentinel")) {
56
- t1 = /*#__PURE__*/_jsx("label", {
62
+ var handleSetInvert = t1;
63
+ var t2;
64
+ if ($[4] === Symbol["for"]("react.memo_cache_sentinel")) {
65
+ t2 = /*#__PURE__*/_jsx("label", {
57
66
  className: "text-sm",
58
67
  children: "\xA0"
59
68
  });
60
- $[3] = t1;
69
+ $[4] = t2;
61
70
  } else {
62
- t1 = $[3];
71
+ t2 = $[4];
63
72
  }
64
- var t2;
65
- if ($[4] !== handleSetInvert || $[5] !== isInvert) {
66
- t2 = function t2() {
73
+ var t3;
74
+ if ($[5] !== handleSetInvert || $[6] !== isInvert) {
75
+ t3 = function t3() {
67
76
  return handleSetInvert(!isInvert);
68
77
  };
69
- $[4] = handleSetInvert;
70
- $[5] = isInvert;
71
- $[6] = t2;
72
- } else {
73
- t2 = $[6];
74
- }
75
- var t3;
76
- if ($[7] === Symbol["for"]("react.memo_cache_sentinel")) {
77
- t3 = testId(TEST_IDS.INVERT_CALL_STACK_BUTTON);
78
+ $[5] = handleSetInvert;
79
+ $[6] = isInvert;
78
80
  $[7] = t3;
79
81
  } else {
80
82
  t3 = $[7];
81
83
  }
82
- var t4 = isInvert ? "ph:sort-ascending" : "ph:sort-descending";
83
- var t5;
84
- if ($[8] !== t4) {
85
- t5 = /*#__PURE__*/_jsx(Icon, {
86
- icon: t4,
84
+ var t4;
85
+ if ($[8] === Symbol["for"]("react.memo_cache_sentinel")) {
86
+ t4 = testId(TEST_IDS.INVERT_CALL_STACK_BUTTON);
87
+ $[8] = t4;
88
+ } else {
89
+ t4 = $[8];
90
+ }
91
+ var t5 = isInvert ? "ph:sort-ascending" : "ph:sort-descending";
92
+ var t6;
93
+ if ($[9] !== t5) {
94
+ t6 = /*#__PURE__*/_jsx(Icon, {
95
+ icon: t5,
87
96
  className: "h-4 w-4"
88
97
  });
89
- $[8] = t4;
90
98
  $[9] = t5;
99
+ $[10] = t6;
91
100
  } else {
92
- t5 = $[9];
101
+ t6 = $[10];
93
102
  }
94
- var t6 = isInvert ? "Original" : "Invert";
95
- var t7;
96
- if ($[10] !== t2 || $[11] !== t5 || $[12] !== t6) {
97
- t7 = /*#__PURE__*/_jsxs("div", {
103
+ var t7 = isInvert ? "Original" : "Invert";
104
+ var t8;
105
+ if ($[11] !== t3 || $[12] !== t6 || $[13] !== t7) {
106
+ t8 = /*#__PURE__*/_jsxs("div", {
98
107
  className: "flex flex-col",
99
- children: [t1, /*#__PURE__*/_jsxs(Button, _objectSpread(_objectSpread({
108
+ children: [t2, /*#__PURE__*/_jsxs(Button, _objectSpread(_objectSpread({
100
109
  variant: "neutral",
101
110
  className: "flex items-center gap-2 whitespace-nowrap",
102
- onClick: t2,
111
+ onClick: t3,
103
112
  id: "h-invert-call-stack"
104
- }, t3), {}, {
105
- children: [t5, t6, " Call Stack"]
113
+ }, t4), {}, {
114
+ children: [t6, t7, " Call Stack"]
106
115
  }))]
107
116
  });
108
- $[10] = t2;
109
- $[11] = t5;
117
+ $[11] = t3;
110
118
  $[12] = t6;
111
119
  $[13] = t7;
120
+ $[14] = t8;
112
121
  } else {
113
- t7 = $[13];
122
+ t8 = $[14];
114
123
  }
115
- return t7;
124
+ return t8;
116
125
  };
117
126
  export default InvertCallStack;
@@ -1 +1 @@
1
- {"version":3,"file":"MultiLevelDropdown.d.ts","sourceRoot":"","sources":["../../../../src/ProfileView/components/Toolbars/MultiLevelDropdown.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAQtE,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAoK1C,UAAU,uBAAuB;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,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