@parca/profile 0.16.402 → 0.16.404

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 (150) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/Callgraph/constants.d.ts +1 -0
  3. package/dist/Callgraph/constants.d.ts.map +1 -0
  4. package/dist/Callgraph/index.d.ts +1 -0
  5. package/dist/Callgraph/index.d.ts.map +1 -0
  6. package/dist/Callgraph/mockData/index.d.ts +1 -0
  7. package/dist/Callgraph/mockData/index.d.ts.map +1 -0
  8. package/dist/Callgraph/utils.d.ts +1 -0
  9. package/dist/Callgraph/utils.d.ts.map +1 -0
  10. package/dist/GraphTooltip/ExpandOnHoverValue.d.ts +1 -0
  11. package/dist/GraphTooltip/ExpandOnHoverValue.d.ts.map +1 -0
  12. package/dist/GraphTooltip/index.d.ts +1 -0
  13. package/dist/GraphTooltip/index.d.ts.map +1 -0
  14. package/dist/GraphTooltipArrow/Content.d.ts +1 -0
  15. package/dist/GraphTooltipArrow/Content.d.ts.map +1 -0
  16. package/dist/GraphTooltipArrow/DockedGraphTooltip/index.d.ts +1 -0
  17. package/dist/GraphTooltipArrow/DockedGraphTooltip/index.d.ts.map +1 -0
  18. package/dist/GraphTooltipArrow/ExpandOnHoverValue.d.ts +1 -0
  19. package/dist/GraphTooltipArrow/ExpandOnHoverValue.d.ts.map +1 -0
  20. package/dist/GraphTooltipArrow/index.d.ts +1 -0
  21. package/dist/GraphTooltipArrow/index.d.ts.map +1 -0
  22. package/dist/GraphTooltipArrow/useGraphTooltip/index.d.ts +1 -0
  23. package/dist/GraphTooltipArrow/useGraphTooltip/index.d.ts.map +1 -0
  24. package/dist/GraphTooltipArrow/useGraphTooltipMetaInfo/index.d.ts +1 -0
  25. package/dist/GraphTooltipArrow/useGraphTooltipMetaInfo/index.d.ts.map +1 -0
  26. package/dist/MatchersInput/SuggestionItem.d.ts +1 -0
  27. package/dist/MatchersInput/SuggestionItem.d.ts.map +1 -0
  28. package/dist/MatchersInput/SuggestionsList.d.ts +1 -0
  29. package/dist/MatchersInput/SuggestionsList.d.ts.map +1 -0
  30. package/dist/MatchersInput/index.d.ts +1 -0
  31. package/dist/MatchersInput/index.d.ts.map +1 -0
  32. package/dist/MetricsCircle/index.d.ts +1 -0
  33. package/dist/MetricsCircle/index.d.ts.map +1 -0
  34. package/dist/MetricsGraph/MetricsContextMenu/index.d.ts +1 -0
  35. package/dist/MetricsGraph/MetricsContextMenu/index.d.ts.map +1 -0
  36. package/dist/MetricsGraph/MetricsInfoPanel/index.d.ts +1 -0
  37. package/dist/MetricsGraph/MetricsInfoPanel/index.d.ts.map +1 -0
  38. package/dist/MetricsGraph/MetricsTooltip/index.d.ts +1 -0
  39. package/dist/MetricsGraph/MetricsTooltip/index.d.ts.map +1 -0
  40. package/dist/MetricsGraph/index.d.ts +1 -0
  41. package/dist/MetricsGraph/index.d.ts.map +1 -0
  42. package/dist/MetricsGraph/useMetricsGraphDimensions.d.ts +1 -0
  43. package/dist/MetricsGraph/useMetricsGraphDimensions.d.ts.map +1 -0
  44. package/dist/MetricsSeries/index.d.ts +1 -0
  45. package/dist/MetricsSeries/index.d.ts.map +1 -0
  46. package/dist/ProfileExplorer/ProfileExplorerCompare.d.ts +1 -0
  47. package/dist/ProfileExplorer/ProfileExplorerCompare.d.ts.map +1 -0
  48. package/dist/ProfileExplorer/ProfileExplorerCompare.js +2 -1
  49. package/dist/ProfileExplorer/ProfileExplorerSingle.d.ts +1 -0
  50. package/dist/ProfileExplorer/ProfileExplorerSingle.d.ts.map +1 -0
  51. package/dist/ProfileExplorer/index.d.ts +1 -0
  52. package/dist/ProfileExplorer/index.d.ts.map +1 -0
  53. package/dist/ProfileIcicleGraph/ActionButtons/GroupByDropdown.d.ts +1 -0
  54. package/dist/ProfileIcicleGraph/ActionButtons/GroupByDropdown.d.ts.map +1 -0
  55. package/dist/ProfileIcicleGraph/ActionButtons/SortBySelect.d.ts +1 -0
  56. package/dist/ProfileIcicleGraph/ActionButtons/SortBySelect.d.ts.map +1 -0
  57. package/dist/ProfileIcicleGraph/IcicleGraph/ColorStackLegend.d.ts +1 -0
  58. package/dist/ProfileIcicleGraph/IcicleGraph/ColorStackLegend.d.ts.map +1 -0
  59. package/dist/ProfileIcicleGraph/IcicleGraph/IcicleGraphNodes.d.ts +1 -0
  60. package/dist/ProfileIcicleGraph/IcicleGraph/IcicleGraphNodes.d.ts.map +1 -0
  61. package/dist/ProfileIcicleGraph/IcicleGraph/index.d.ts +1 -0
  62. package/dist/ProfileIcicleGraph/IcicleGraph/index.d.ts.map +1 -0
  63. package/dist/ProfileIcicleGraph/IcicleGraph/useColoredGraph.d.ts +1 -0
  64. package/dist/ProfileIcicleGraph/IcicleGraph/useColoredGraph.d.ts.map +1 -0
  65. package/dist/ProfileIcicleGraph/IcicleGraph/useNodeColor.d.ts +1 -0
  66. package/dist/ProfileIcicleGraph/IcicleGraph/useNodeColor.d.ts.map +1 -0
  67. package/dist/ProfileIcicleGraph/IcicleGraph/utils.d.ts +1 -0
  68. package/dist/ProfileIcicleGraph/IcicleGraph/utils.d.ts.map +1 -0
  69. package/dist/ProfileIcicleGraph/IcicleGraphArrow/ColorStackLegend.d.ts +1 -0
  70. package/dist/ProfileIcicleGraph/IcicleGraphArrow/ColorStackLegend.d.ts.map +1 -0
  71. package/dist/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.d.ts +1 -0
  72. package/dist/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.d.ts.map +1 -0
  73. package/dist/ProfileIcicleGraph/IcicleGraphArrow/IcicleGraphNodes.d.ts +1 -0
  74. package/dist/ProfileIcicleGraph/IcicleGraphArrow/IcicleGraphNodes.d.ts.map +1 -0
  75. package/dist/ProfileIcicleGraph/IcicleGraphArrow/index.d.ts +1 -0
  76. package/dist/ProfileIcicleGraph/IcicleGraphArrow/index.d.ts.map +1 -0
  77. package/dist/ProfileIcicleGraph/IcicleGraphArrow/useMappingList.d.ts +1 -0
  78. package/dist/ProfileIcicleGraph/IcicleGraphArrow/useMappingList.d.ts.map +1 -0
  79. package/dist/ProfileIcicleGraph/IcicleGraphArrow/useNodeColor.d.ts +1 -0
  80. package/dist/ProfileIcicleGraph/IcicleGraphArrow/useNodeColor.d.ts.map +1 -0
  81. package/dist/ProfileIcicleGraph/IcicleGraphArrow/utils.d.ts +1 -0
  82. package/dist/ProfileIcicleGraph/IcicleGraphArrow/utils.d.ts.map +1 -0
  83. package/dist/ProfileIcicleGraph/index.d.ts +1 -0
  84. package/dist/ProfileIcicleGraph/index.d.ts.map +1 -0
  85. package/dist/ProfileMetricsGraph/Toolbar/index.d.ts +1 -0
  86. package/dist/ProfileMetricsGraph/Toolbar/index.d.ts.map +1 -0
  87. package/dist/ProfileMetricsGraph/index.d.ts +1 -0
  88. package/dist/ProfileMetricsGraph/index.d.ts.map +1 -0
  89. package/dist/ProfileMetricsGraph/index.js +28 -4
  90. package/dist/ProfileMetricsGraph/useSumBy.d.ts +1 -0
  91. package/dist/ProfileMetricsGraph/useSumBy.d.ts.map +1 -0
  92. package/dist/ProfileSelector/CompareButton.d.ts +1 -0
  93. package/dist/ProfileSelector/CompareButton.d.ts.map +1 -0
  94. package/dist/ProfileSelector/index.d.ts +1 -0
  95. package/dist/ProfileSelector/index.d.ts.map +1 -0
  96. package/dist/ProfileSelector/useAutoQuerySelector.d.ts +1 -0
  97. package/dist/ProfileSelector/useAutoQuerySelector.d.ts.map +1 -0
  98. package/dist/ProfileSource.d.ts +1 -0
  99. package/dist/ProfileSource.d.ts.map +1 -0
  100. package/dist/ProfileTypeSelector/index.d.ts +1 -0
  101. package/dist/ProfileTypeSelector/index.d.ts.map +1 -0
  102. package/dist/ProfileView/FilterByFunctionButton.d.ts +1 -0
  103. package/dist/ProfileView/FilterByFunctionButton.d.ts.map +1 -0
  104. package/dist/ProfileView/ProfileViewContext.d.ts +1 -0
  105. package/dist/ProfileView/ProfileViewContext.d.ts.map +1 -0
  106. package/dist/ProfileView/ViewSelector.d.ts +1 -0
  107. package/dist/ProfileView/ViewSelector.d.ts.map +1 -0
  108. package/dist/ProfileView/VisualizationPanel.d.ts +1 -0
  109. package/dist/ProfileView/VisualizationPanel.d.ts.map +1 -0
  110. package/dist/ProfileView/index.d.ts +1 -0
  111. package/dist/ProfileView/index.d.ts.map +1 -0
  112. package/dist/ProfileViewWithData.d.ts +1 -0
  113. package/dist/ProfileViewWithData.d.ts.map +1 -0
  114. package/dist/SourceView/Highlighter.d.ts +1 -0
  115. package/dist/SourceView/Highlighter.d.ts.map +1 -0
  116. package/dist/SourceView/LineNo.d.ts +1 -0
  117. package/dist/SourceView/LineNo.d.ts.map +1 -0
  118. package/dist/SourceView/index.d.ts +1 -0
  119. package/dist/SourceView/index.d.ts.map +1 -0
  120. package/dist/SourceView/lang-detector/index.d.ts +1 -0
  121. package/dist/SourceView/lang-detector/index.d.ts.map +1 -0
  122. package/dist/SourceView/useSelectedLineRange.d.ts +1 -0
  123. package/dist/SourceView/useSelectedLineRange.d.ts.map +1 -0
  124. package/dist/Table/ColumnsVisibility.d.ts +1 -0
  125. package/dist/Table/ColumnsVisibility.d.ts.map +1 -0
  126. package/dist/Table/index.d.ts +1 -0
  127. package/dist/Table/index.d.ts.map +1 -0
  128. package/dist/Table/utils/topAndBottomExpandedRowModel.d.ts +1 -0
  129. package/dist/Table/utils/topAndBottomExpandedRowModel.d.ts.map +1 -0
  130. package/dist/TopTable/index.d.ts +1 -0
  131. package/dist/TopTable/index.d.ts.map +1 -0
  132. package/dist/components/DiffLegend.d.ts +1 -0
  133. package/dist/components/DiffLegend.d.ts.map +1 -0
  134. package/dist/components/ProfileShareButton/ResultBox.d.ts +1 -0
  135. package/dist/components/ProfileShareButton/ResultBox.d.ts.map +1 -0
  136. package/dist/components/ProfileShareButton/index.d.ts +1 -0
  137. package/dist/components/ProfileShareButton/index.d.ts.map +1 -0
  138. package/dist/index.d.ts +1 -0
  139. package/dist/index.d.ts.map +1 -0
  140. package/dist/useDelayedLoader.d.ts +1 -0
  141. package/dist/useDelayedLoader.d.ts.map +1 -0
  142. package/dist/useGrpcQuery/index.d.ts +1 -0
  143. package/dist/useGrpcQuery/index.d.ts.map +1 -0
  144. package/dist/useQuery.d.ts +1 -0
  145. package/dist/useQuery.d.ts.map +1 -0
  146. package/dist/utils.d.ts +1 -0
  147. package/dist/utils.d.ts.map +1 -0
  148. package/package.json +2 -2
  149. package/src/ProfileExplorer/ProfileExplorerCompare.tsx +2 -1
  150. package/src/ProfileMetricsGraph/index.tsx +34 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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.404](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.402...@parca/profile@0.16.404) (2024-07-08)
7
+
8
+ **Note:** Version bump only for package @parca/profile
9
+
10
+ ## [0.16.403](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.402...@parca/profile@0.16.403) (2024-07-05)
11
+
12
+ **Note:** Version bump only for package @parca/profile
13
+
6
14
  ## [0.16.402](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.401...@parca/profile@0.16.402) (2024-07-04)
7
15
 
8
16
  **Note:** Version bump only for package @parca/profile
@@ -1,2 +1,3 @@
1
1
  export declare const DEFAULT_NODE_HEIGHT = 20;
2
2
  export declare const GRAPH_MARGIN = 15;
3
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/Callgraph/constants.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,YAAY,KAAK,CAAC"}
@@ -8,3 +8,4 @@ export interface Props {
8
8
  }
9
9
  declare const Callgraph: ({ data, svgString, profileType, width }: Props) => JSX.Element;
10
10
  export default Callgraph;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Callgraph/index.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAgB,SAAS,IAAI,aAAa,EAAC,MAAM,eAAe,CAAC;AAExE,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAM1C,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,aAAa,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,WAAW,GAAG,SAAS,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;CACf;AAOD,QAAA,MAAM,SAAS,4CAA2C,KAAK,KAAG,GAAG,CAAC,OAsIrE,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -146,3 +146,4 @@ export declare const jsonGraphWithMetaData: {
146
146
  cumulative: string;
147
147
  }[];
148
148
  };
149
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Callgraph/mockData/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,QAAQ,kHAOnB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;CAqFrB,CAAC;AAGF,eAAO,MAAM,WAAW,8QAUpB,CAAC;AAEL,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsU1C,CAAC;AAEF,eAAO,MAAM,gBAAgB,OACvB,MAAM,QACJ,MAAM,KACX;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,GAAG,CAAA;CAyH3C,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;YA3H1B,MAAM;oBAAc,MAAM;cAAQ,GAAG;;;;;;;;CAuJ5C,CAAC"}
@@ -17,3 +17,4 @@ export declare const jsonToDot: ({ graph, colorRange, }: {
17
17
  width: number;
18
18
  colorRange: [string, string];
19
19
  }) => string;
20
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/Callgraph/utils.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,aAAa,EAAE,aAAa,EAAC,MAAM,eAAe,CAAC;AAE3D,eAAO,MAAM,cAAc,WAAY,MAAM,KAAG,MAAqB,CAAC;AAEtE,eAAO,MAAM,cAAc,iEAQxB;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACjC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,KAAG,MAAM,EA2CT,CAAC;AAOF,eAAO,MAAM,SAAS,2BAGnB;IACD,KAAK,EAAE;QAAC,KAAK,EAAE,aAAa,EAAE,CAAC;QAAC,KAAK,EAAE,aAAa,EAAE,CAAA;KAAC,CAAC;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC9B,KAAG,MA+CH,CAAC"}
@@ -4,3 +4,4 @@ interface Props {
4
4
  }
5
5
  export declare const ExpandOnHover: ({ value, displayValue }: Props) => JSX.Element;
6
6
  export {};
7
+ //# sourceMappingURL=ExpandOnHoverValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpandOnHoverValue.d.ts","sourceRoot":"","sources":["../../src/GraphTooltip/ExpandOnHoverValue.tsx"],"names":[],"mappings":"AAaA,UAAU,KAAK;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACnC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CAC5C;AAED,eAAO,MAAM,aAAa,4BAA2B,KAAK,KAAG,GAAG,CAAC,OAWhE,CAAC"}
@@ -38,3 +38,4 @@ export declare const GraphTooltipContent: ({ hoveringNode, unit, total, totalUnf
38
38
  }) => JSX.Element;
39
39
  declare const GraphTooltip: ({ x, y, unit, total, totalUnfiltered, hoveringNode: hoveringNodeProp, contextElement, isFixed, virtualContextElement, strings, mappings, locations, functions, type, }: GraphTooltipProps) => JSX.Element;
40
40
  export default GraphTooltip;
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/GraphTooltip/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,IAAI,aAAa,EAC1B,MAAM,uDAAuD,CAAC;AAY/D,UAAU,yBAA0B,SAAQ,iBAAiB;IAC3D,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,YAAa,SAAQ,kBAAkB,EAAE,cAAc,EAAE,aAAa;IAC9E,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,kBAAkB,GAAG,yBAAyB,CAAC;CACvD;AAED,UAAU,iBAAiB;IACzB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,cAAc,EAAE,OAAO,GAAG,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAgLD,eAAO,MAAM,mBAAmB,4GAW7B;IACD,YAAY,EAAE,YAAY,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,KAAG,GAAG,CAAC,OAoHP,CAAC;AAEF,QAAA,MAAM,YAAY,2KAef,iBAAiB,KAAG,GAAG,CAAC,OA6G1B,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -15,3 +15,4 @@ interface GraphTooltipArrowContentProps {
15
15
  }
16
16
  declare const GraphTooltipArrowContent: ({ table, profileType, unit, total, totalUnfiltered, row, level, isFixed, navigateTo, }: GraphTooltipArrowContentProps) => React.JSX.Element;
17
17
  export default GraphTooltipArrowContent;
18
+ //# sourceMappingURL=Content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../src/GraphTooltipArrow/Content.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,KAAK,EAAC,MAAM,cAAc,CAAC;AAEnC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAc,KAAK,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AAOpE,UAAU,6BAA6B;IACrC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAMD,QAAA,MAAM,wBAAwB,2FAU3B,6BAA6B,KAAG,KAAK,CAAC,GAAG,CAAC,OAqG5C,CAAC;AAmFF,eAAe,wBAAwB,CAAC"}
@@ -11,3 +11,4 @@ interface Props {
11
11
  }
12
12
  export declare const DockedGraphTooltip: ({ table, total, totalUnfiltered, row, level, profileType, unit, }: Props) => JSX.Element;
13
13
  export {};
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/GraphTooltipArrow/DockedGraphTooltip/index.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAC,KAAK,EAAC,MAAM,cAAc,CAAC;AAKnC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAO1C,UAAU,KAAK;IACb,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAuBD,eAAO,MAAM,kBAAkB,sEAQ5B,KAAK,KAAG,GAAG,CAAC,OAkHd,CAAC"}
@@ -4,3 +4,4 @@ interface Props {
4
4
  }
5
5
  export declare const ExpandOnHover: ({ value, displayValue }: Props) => JSX.Element;
6
6
  export {};
7
+ //# sourceMappingURL=ExpandOnHoverValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpandOnHoverValue.d.ts","sourceRoot":"","sources":["../../src/GraphTooltipArrow/ExpandOnHoverValue.tsx"],"names":[],"mappings":"AAaA,UAAU,KAAK;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACnC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CAC5C;AAED,eAAO,MAAM,aAAa,4BAA2B,KAAK,KAAG,GAAG,CAAC,OAWhE,CAAC"}
@@ -10,3 +10,4 @@ interface GraphTooltipProps {
10
10
  }
11
11
  declare const GraphTooltip: ({ children, x, y, contextElement, isFixed, virtualContextElement, isContextMenuOpen, }: GraphTooltipProps) => React.JSX.Element;
12
12
  export default GraphTooltip;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/GraphTooltipArrow/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAKjD,UAAU,iBAAiB;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,OAAO,GAAG,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AA6BD,QAAA,MAAM,YAAY,2FAQf,iBAAiB,KAAG,KAAK,CAAC,GAAG,CAAC,OA+DhC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -22,3 +22,4 @@ interface GraphTooltipData {
22
22
  }
23
23
  export declare const useGraphTooltip: ({ table, profileType, unit, total, totalUnfiltered, row, level, }: Props) => GraphTooltipData | null;
24
24
  export {};
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/GraphTooltipArrow/useGraphTooltip/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAC,KAAK,EAAC,MAAM,cAAc,CAAC;AAEnC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAkB1C,UAAU,KAAK;IACb,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,uBAAuB,EAAE,MAAM,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,eAAe,sEAQzB,KAAK,KAAG,gBAAgB,GAAG,IAkE7B,CAAC"}
@@ -19,3 +19,4 @@ interface GraphTooltipMetaInfoData {
19
19
  }
20
20
  export declare const useGraphTooltipMetaInfo: ({ table, row, navigateTo, }: Props) => GraphTooltipMetaInfoData;
21
21
  export {};
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/GraphTooltipArrow/useGraphTooltipMetaInfo/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAC,KAAK,EAAC,MAAM,cAAc,CAAC;AAInC,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AAiBvD,UAAU,KAAK;IACb,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED,UAAU,wBAAwB;IAChC,UAAU,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACpC,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;CACzB;AAED,eAAO,MAAM,uBAAuB,gCAIjC,KAAK,KAAG,wBAwGV,CAAC"}
@@ -7,3 +7,4 @@ interface Props {
7
7
  }
8
8
  declare const SuggestionItem: ({ isHighlighted, onHighlight, onApplySuggestion, onResetHighlight, value, }: Props) => JSX.Element;
9
9
  export default SuggestionItem;
10
+ //# sourceMappingURL=SuggestionItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SuggestionItem.d.ts","sourceRoot":"","sources":["../../src/MatchersInput/SuggestionItem.tsx"],"names":[],"mappings":"AAiBA,UAAU,KAAK;IACb,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,cAAc,gFAMjB,KAAK,KAAG,GAAG,CAAC,OAsBd,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -21,3 +21,4 @@ interface Props {
21
21
  }
22
22
  declare const SuggestionsList: ({ suggestions, applySuggestion, inputRef, runQuery, focusedInput, isLabelNamesLoading, isLabelValuesLoading, }: Props) => JSX.Element;
23
23
  export default SuggestionsList;
24
+ //# sourceMappingURL=SuggestionsList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SuggestionsList.d.ts","sourceRoot":"","sources":["../../src/MatchersInput/SuggestionsList.tsx"],"names":[],"mappings":"AAsBA,qBAAa,UAAU;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;gBAEF,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAK3D;AAED,qBAAa,WAAW;IACtB,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,WAAW,EAAE,UAAU,EAAE,CAAC;;CAO3B;AAED,UAAU,KAAK;IACb,WAAW,EAAE,WAAW,CAAC;IACzB,eAAe,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IAClD,QAAQ,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACrC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,oBAAoB,EAAE,OAAO,CAAC;CAC/B;AAQD,QAAA,MAAM,eAAe,mHAQlB,KAAK,KAAG,GAAG,CAAC,OA6Nd,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -17,3 +17,4 @@ interface UseLabelNames {
17
17
  export declare const useLabelNames: (client: QueryServiceClient, start?: number, end?: number, profileType?: string) => UseLabelNames;
18
18
  declare const MatchersInput: ({ queryClient, setMatchersString, runQuery, currentQuery, }: MatchersInputProps) => JSX.Element;
19
19
  export default MatchersInput;
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/MatchersInput/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAgB,cAAc,EAAE,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAEhF,OAAO,EAAC,KAAK,EAAC,MAAM,eAAe,CAAC;AAKpC,UAAU,kBAAkB;IAC1B,WAAW,EAAE,kBAAkB,CAAC;IAChC,iBAAiB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,EAAE,KAAK,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,UAAU,aAAa;IACrB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,aAAa,WAChB,kBAAkB,UAClB,MAAM,QACR,MAAM,gBACE,MAAM,KACnB,aAwBF,CAAC;AAEF,QAAA,MAAM,aAAa,gEAKhB,kBAAkB,KAAG,GAAG,CAAC,OAiL3B,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -5,3 +5,4 @@ interface MetricsCircleProps {
5
5
  }
6
6
  declare const MetricsCircle: ({ cx, cy, radius }: MetricsCircleProps) => JSX.Element;
7
7
  export default MetricsCircle;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/MetricsCircle/index.tsx"],"names":[],"mappings":"AAaA,UAAU,kBAAkB;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,QAAA,MAAM,aAAa,uBAAsB,kBAAkB,KAAG,GAAG,CAAC,OAIjE,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -13,3 +13,4 @@ interface MetricsContextMenuProps {
13
13
  }
14
14
  declare const MetricsContextMenu: ({ menuId, onAddLabelMatcher, highlighted, trackVisibility, }: MetricsContextMenuProps) => JSX.Element;
15
15
  export default MetricsContextMenu;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/MetricsGraph/MetricsContextMenu/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,iBAAiB,EAAC,MAAM,KAAK,CAAC;AAEtC,UAAU,uBAAuB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,CACjB,MAAM,EAAE;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,GAAG,KAAK,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,CAAC,KACvE,IAAI,CAAC;IACV,WAAW,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACtC,eAAe,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C;AAED,QAAA,MAAM,kBAAkB,iEAKrB,uBAAuB,KAAG,GAAG,CAAC,OA8ChC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -4,3 +4,4 @@ interface MetricsInfoPanelProps {
4
4
  }
5
5
  declare const MetricsInfoPanel: ({ isInfoPanelOpen, onInfoIconClick, }: MetricsInfoPanelProps) => JSX.Element;
6
6
  export default MetricsInfoPanel;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/MetricsGraph/MetricsInfoPanel/index.tsx"],"names":[],"mappings":"AAeA,UAAU,qBAAqB;IAC7B,eAAe,EAAE,OAAO,CAAC;IACzB,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED,QAAA,MAAM,gBAAgB,0CAGnB,qBAAqB,KAAG,GAAG,CAAC,OA2D9B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -9,3 +9,4 @@ interface Props {
9
9
  }
10
10
  declare const MetricsTooltip: ({ x, y, highlighted, contextElement, sampleUnit, delta, }: Props) => JSX.Element;
11
11
  export default MetricsTooltip;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/MetricsGraph/MetricsTooltip/index.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAC,iBAAiB,EAAC,MAAM,KAAK,CAAC;AAEtC,UAAU,KAAK;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,WAAW,EAAE,iBAAiB,CAAC;IAC/B,cAAc,EAAE,OAAO,GAAG,IAAI,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;CAChB;AA8BD,QAAA,MAAM,cAAc,8DAOjB,KAAK,KAAG,GAAG,CAAC,OA8Hd,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -34,3 +34,4 @@ declare const MetricsGraph: ({ data, from, to, profile, onSampleClick, addLabelM
34
34
  export default MetricsGraph;
35
35
  export declare const parseValue: (value: string) => number | null;
36
36
  export declare const RawMetricsGraph: ({ data, from, to, profile, onSampleClick, addLabelMatcher, setTimeRange, width, height, margin, sampleUnit, }: Props) => JSX.Element;
37
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/MetricsGraph/index.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAC,KAAK,EAAiB,aAAa,IAAI,eAAe,EAAC,MAAM,eAAe,CAAC;AACrF,OAAO,EAAC,aAAa,EAAkB,MAAM,mBAAmB,CAAC;AASjE,OAAO,EAAC,sBAAsB,EAAC,MAAM,IAAI,CAAC;AAO1C,UAAU,KAAK;IACb,IAAI,EAAE,eAAe,EAAE,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,sBAAsB,GAAG,IAAI,CAAC;IACvC,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7F,eAAe,EAAE,CACf,MAAM,EAAE;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,GAAG,KAAK,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,CAAC,KACvE,IAAI,CAAC;IACV,YAAY,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAQD,QAAA,MAAM,YAAY,kHAYf,KAAK,KAAG,GAAG,CAAC,OAyBd,CAAC;AAEF,eAAe,YAAY,CAAC;AAE5B,eAAO,MAAM,UAAU,UAAW,MAAM,KAAG,MAAM,GAAG,IAKnD,CAAC;AAKF,eAAO,MAAM,eAAe,kHAYzB,KAAK,KAAG,GAAG,CAAC,OA+dd,CAAC"}
@@ -6,3 +6,4 @@ interface MetricsGraphDimensions {
6
6
  }
7
7
  export declare const useMetricsGraphDimensions: (comparing: boolean) => MetricsGraphDimensions;
8
8
  export {};
9
+ //# sourceMappingURL=useMetricsGraphDimensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMetricsGraphDimensions.d.ts","sourceRoot":"","sources":["../../src/MetricsGraph/useMetricsGraphDimensions.ts"],"names":[],"mappings":"AAiBA,UAAU,sBAAsB;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB;AAKD,eAAO,MAAM,yBAAyB,cAAe,OAAO,KAAG,sBA2B9D,CAAC"}
@@ -9,3 +9,4 @@ interface MetricsSeriesProps {
9
9
  }
10
10
  declare const MetricsSeries: ({ data, line, color, strokeWidth }: MetricsSeriesProps) => JSX.Element;
11
11
  export default MetricsSeries;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/MetricsSeries/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAEzB,UAAU,kBAAkB;IAC1B,IAAI,EAAE,GAAG,CAAC;IACV,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAClC,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CACnC;AAED,QAAA,MAAM,aAAa,uCAAsC,kBAAkB,KAAG,GAAG,CAAC,OAWjF,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -17,3 +17,4 @@ interface ProfileExplorerCompareProps {
17
17
  }
18
18
  declare const ProfileExplorerCompare: ({ queryClient, queryA, queryB, profileA, profileB, selectQueryA, selectQueryB, selectProfileA, selectProfileB, closeProfile, navigateTo, }: ProfileExplorerCompareProps) => JSX.Element;
19
19
  export default ProfileExplorerCompare;
20
+ //# sourceMappingURL=ProfileExplorerCompare.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileExplorerCompare.d.ts","sourceRoot":"","sources":["../../src/ProfileExplorer/ProfileExplorerCompare.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAGjD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAoB,gBAAgB,EAAsB,MAAM,IAAI,CAAC;AAC5E,OAAwB,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAEnE,UAAU,2BAA2B;IACnC,WAAW,EAAE,kBAAkB,CAAC;IAEhC,MAAM,EAAE,cAAc,CAAC;IACvB,MAAM,EAAE,cAAc,CAAC;IACvB,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAClC,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAClC,YAAY,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC9C,YAAY,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC9C,cAAc,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACnD,cAAc,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACnD,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAErC,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED,QAAA,MAAM,sBAAsB,+IAYzB,2BAA2B,KAAG,GAAG,CAAC,OAsEpC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -11,6 +11,7 @@ const ProfileExplorerCompare = ({ queryClient, queryA, queryB, profileA, profile
11
11
  closeProfile('B');
12
12
  };
13
13
  const [compareAbsolute] = useURLState({ param: 'compare_absolute', navigateTo });
14
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "flex justify-between gap-2", children: [_jsx(Card, { className: "mt-2 p-2", children: _jsx(ProfileSelector, { queryClient: queryClient, querySelection: queryA, profileSelection: profileA, selectProfile: selectProfileA, selectQuery: selectQueryA, closeProfile: closeProfileA, enforcedProfileName: '', comparing: true, navigateTo: navigateTo }) }), _jsx(Card, { className: "mt-2 p-2", children: _jsx(ProfileSelector, { queryClient: queryClient, querySelection: queryB, profileSelection: profileB, selectProfile: selectProfileB, selectQuery: selectQueryB, closeProfile: closeProfileB, enforcedProfileName: Query.parse(queryA.expression).profileName(), comparing: true, navigateTo: navigateTo }) })] }), _jsx("div", { className: "grid grid-cols-1", children: profileA != null && profileB != null ? (_jsx("div", { children: _jsx(Card, { className: "mt-2 px-6 py-4", children: _jsx(ProfileViewWithData, { navigateTo: navigateTo, queryClient: queryClient, profileSource: new ProfileDiffSource(profileA.ProfileSource(), profileB.ProfileSource(), '', compareAbsolute === 'true') }) }) })) : (_jsx("div", { children: _jsx("div", { className: "my-20 text-center", children: _jsx("p", { children: "Select a profile on both sides." }) }) })) })] }));
14
+ const [functionFilter] = useURLState({ param: 'filter_by_function', navigateTo });
15
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "flex justify-between gap-2", children: [_jsx(Card, { className: "mt-2 p-2", children: _jsx(ProfileSelector, { queryClient: queryClient, querySelection: queryA, profileSelection: profileA, selectProfile: selectProfileA, selectQuery: selectQueryA, closeProfile: closeProfileA, enforcedProfileName: '', comparing: true, navigateTo: navigateTo }) }), _jsx(Card, { className: "mt-2 p-2", children: _jsx(ProfileSelector, { queryClient: queryClient, querySelection: queryB, profileSelection: profileB, selectProfile: selectProfileB, selectQuery: selectQueryB, closeProfile: closeProfileB, enforcedProfileName: Query.parse(queryA.expression).profileName(), comparing: true, navigateTo: navigateTo }) })] }), _jsx("div", { className: "grid grid-cols-1", children: profileA != null && profileB != null ? (_jsx("div", { children: _jsx(Card, { className: "mt-2 px-6 py-4", children: _jsx(ProfileViewWithData, { navigateTo: navigateTo, queryClient: queryClient, profileSource: new ProfileDiffSource(profileA.ProfileSource(), profileB.ProfileSource(), Array.isArray(functionFilter) ? functionFilter[0] : functionFilter, compareAbsolute === 'true') }) }) })) : (_jsx("div", { children: _jsx("div", { className: "my-20 text-center", children: _jsx("p", { children: "Select a profile on both sides." }) }) })) })] }));
15
16
  };
16
17
  export default ProfileExplorerCompare;
@@ -12,3 +12,4 @@ interface ProfileExplorerSingleProps {
12
12
  }
13
13
  declare const ProfileExplorerSingle: ({ queryClient, query, selectQuery, selectProfile, profile, navigateTo, }: ProfileExplorerSingleProps) => JSX.Element;
14
14
  export default ProfileExplorerSingle;
15
+ //# sourceMappingURL=ProfileExplorerSingle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileExplorerSingle.d.ts","sourceRoot":"","sources":["../../src/ProfileExplorer/ProfileExplorerSingle.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAEjD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAC,gBAAgB,EAAsB,MAAM,IAAI,CAAC;AACzD,OAAwB,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAEnE,UAAU,0BAA0B;IAClC,WAAW,EAAE,kBAAkB,CAAC;IAChC,KAAK,EAAE,cAAc,CAAC;IACtB,WAAW,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC7C,aAAa,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAClD,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACjC,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED,QAAA,MAAM,qBAAqB,6EAOxB,0BAA0B,KAAG,GAAG,CAAC,OA6BnC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -8,3 +8,4 @@ interface ProfileExplorerProps {
8
8
  export declare const getExpressionAsAString: (expression: string | []) => string;
9
9
  declare const ProfileExplorer: ({ queryClient, queryParams, navigateTo, }: ProfileExplorerProps) => JSX.Element;
10
10
  export default ProfileExplorer;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ProfileExplorer/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAGjD,OAAO,EAA4B,KAAK,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AAOlF,UAAU,oBAAoB;IAC5B,WAAW,EAAE,kBAAkB,CAAC;IAChC,WAAW,EAAE,GAAG,CAAC;IACjB,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAaD,eAAO,MAAM,sBAAsB,eAAgB,MAAM,GAAG,EAAE,KAAG,MAGhE,CAAC;AA4UF,QAAA,MAAM,eAAe,8CAIlB,oBAAoB,KAAG,GAAG,CAAC,OAkB7B,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -3,3 +3,4 @@ declare const GroupByDropdown: ({ groupBy, toggleGroupBy, }: {
3
3
  toggleGroupBy: (key: string) => void;
4
4
  }) => React.JSX.Element;
5
5
  export default GroupByDropdown;
6
+ //# sourceMappingURL=GroupByDropdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupByDropdown.d.ts","sourceRoot":"","sources":["../../../src/ProfileIcicleGraph/ActionButtons/GroupByDropdown.tsx"],"names":[],"mappings":"AAyDA,QAAA,MAAM,eAAe,gCAGlB;IACD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,KAAG,KAAK,CAAC,GAAG,CAAC,OA6Db,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -4,3 +4,4 @@ declare const SortBySelect: ({ sortBy, setSortBy, compareMode, }: {
4
4
  compareMode: boolean;
5
5
  }) => React.JSX.Element;
6
6
  export default SortBySelect;
7
+ //# sourceMappingURL=SortBySelect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SortBySelect.d.ts","sourceRoot":"","sources":["../../../src/ProfileIcicleGraph/ActionButtons/SortBySelect.tsx"],"names":[],"mappings":"AAiBA,QAAA,MAAM,YAAY,wCAIf;IACD,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,WAAW,EAAE,OAAO,CAAC;CACtB,KAAG,KAAK,CAAC,GAAG,CAAC,OAqDb,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -5,3 +5,4 @@ interface Props {
5
5
  }
6
6
  declare const ColorStackLegend: ({ navigateTo, compareMode }: Props) => JSX.Element;
7
7
  export default ColorStackLegend;
8
+ //# sourceMappingURL=ColorStackLegend.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorStackLegend.d.ts","sourceRoot":"","sources":["../../../src/ProfileIcicleGraph/IcicleGraph/ColorStackLegend.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AAEvD,UAAU,KAAK;IACb,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,QAAA,MAAM,gBAAgB,gCAAuC,KAAK,KAAG,GAAG,CAAC,OAgExE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -44,3 +44,4 @@ interface IcicleNodeProps {
44
44
  }
45
45
  export declare const IcicleNode: React.NamedExoticComponent<IcicleNodeProps>;
46
46
  export {};
47
+ //# sourceMappingURL=IcicleGraphNodes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IcicleGraphNodes.d.ts","sourceRoot":"","sources":["../../../src/ProfileIcicleGraph/IcicleGraph/IcicleGraphNodes.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAgB,MAAM,OAAO,CAAC;AAIrC,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAC7C,OAAO,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,IAAI,aAAa,EAC1B,MAAM,uDAAuD,CAAC;AAG/D,OAAO,EAA6B,KAAK,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAKhF,eAAO,MAAM,SAAS,KAAK,CAAC;AAE5B,UAAU,qBAAqB;IAC7B,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACrC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,MAAM,EAAE,aAAa,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,gBAAgB,mDA4D3B,CAAC;AAEH,UAAU,eAAe;IACvB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACrC,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;CACtB;AAYD,eAAO,MAAM,UAAU,6CAyHrB,CAAC"}
@@ -13,3 +13,4 @@ interface IcicleGraphProps {
13
13
  }
14
14
  export declare const IcicleGraph: import("react").NamedExoticComponent<IcicleGraphProps>;
15
15
  export default IcicleGraph;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ProfileIcicleGraph/IcicleGraph/index.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAgC,KAAK,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AAQtF,UAAU,gBAAgB;IACxB,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACrC,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAED,eAAO,MAAM,WAAW,wDAsFtB,CAAC;AAEH,eAAe,WAAW,CAAC"}
@@ -12,3 +12,4 @@ export interface ColoredFlamegraph extends Flamegraph {
12
12
  }
13
13
  declare const useColoredGraph: (graph: Flamegraph) => ColoredFlamegraph;
14
14
  export default useColoredGraph;
15
+ //# sourceMappingURL=useColoredGraph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useColoredGraph.d.ts","sourceRoot":"","sources":["../../../src/ProfileIcicleGraph/IcicleGraph/useColoredGraph.ts"],"names":[],"mappings":"AAeA,OAAO,EAAC,UAAU,EAAE,cAAc,EAAE,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAmB7E,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,qBAAqB,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,wBAAyB,SAAQ,kBAAkB;IAClE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,qBAAqB,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACnD,IAAI,EAAE,wBAAwB,CAAC;CAChC;AAkCD,QAAA,MAAM,eAAe,UAAW,UAAU,KAAG,iBAkC5C,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -5,3 +5,4 @@ interface Props {
5
5
  }
6
6
  declare const useNodeColor: ({ data, compareMode }: Props) => string;
7
7
  export default useNodeColor;
8
+ //# sourceMappingURL=useNodeColor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNodeColor.d.ts","sourceRoot":"","sources":["../../../src/ProfileIcicleGraph/IcicleGraph/useNodeColor.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,mBAAmB,CAAC;AAE7D,UAAU,KAAK;IACb,IAAI,EAAE,qBAAqB,CAAC;IAC5B,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,QAAA,MAAM,YAAY,0BAAyB,KAAK,KAAG,MAoBlD,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -4,3 +4,4 @@ import { type Feature } from '@parca/store';
4
4
  export declare const getBinaryName: (node: FlamegraphNode, mappings: Mapping[], locations: Location[], strings: string[]) => string | undefined;
5
5
  export declare function nodeLabel(node: FlamegraphNode, strings: string[], mappings: Mapping[], locations: Location[], functions: ParcaFunction[], showBinaryName: boolean): string;
6
6
  export declare const extractFeature: (data: FlamegraphNode, mappings: Mapping[], locations: Location[], strings: string[]) => Feature;
7
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/ProfileIcicleGraph/IcicleGraph/utils.ts"],"names":[],"mappings":"AAaA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAC7C,OAAO,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,IAAI,aAAa,EAC1B,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAiC,KAAK,OAAO,EAAC,MAAM,cAAc,CAAC;AAK1E,eAAO,MAAM,aAAa,SAClB,cAAc,YACV,OAAO,EAAE,aACR,QAAQ,EAAE,WACZ,MAAM,EAAE,KAChB,MAAM,GAAG,SAoBX,CAAC;AAEF,wBAAgB,SAAS,CACvB,IAAI,EAAE,cAAc,EACpB,OAAO,EAAE,MAAM,EAAE,EACjB,QAAQ,EAAE,OAAO,EAAE,EACnB,SAAS,EAAE,QAAQ,EAAE,EACrB,SAAS,EAAE,aAAa,EAAE,EAC1B,cAAc,EAAE,OAAO,GACtB,MAAM,CA6BR;AAED,eAAO,MAAM,cAAc,SACnB,cAAc,YACV,OAAO,EAAE,aACR,QAAQ,EAAE,WACZ,MAAM,EAAE,KAChB,OAOF,CAAC"}
@@ -8,3 +8,4 @@ interface Props {
8
8
  }
9
9
  declare const ColorStackLegend: ({ mappings, navigateTo, compareMode, loading, }: Props) => React.JSX.Element;
10
10
  export default ColorStackLegend;
11
+ //# sourceMappingURL=ColorStackLegend.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorStackLegend.d.ts","sourceRoot":"","sources":["../../../src/ProfileIcicleGraph/IcicleGraphArrow/ColorStackLegend.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAgB,MAAM,OAAO,CAAC;AAQrC,OAAO,EAAC,KAAK,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AAKvD,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,QAAA,MAAM,gBAAgB,oDAKnB,KAAK,KAAG,KAAK,CAAC,GAAG,CAAC,OA0GpB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -19,3 +19,4 @@ interface ContextMenuProps {
19
19
  }
20
20
  declare const ContextMenu: ({ menuId, table, total, totalUnfiltered, row, level, navigateTo, trackVisibility, curPath, setCurPath, hideMenu, profileType, unit, hideBinary, }: ContextMenuProps) => JSX.Element;
21
21
  export default ContextMenu;
22
+ //# sourceMappingURL=ContextMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../src/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAC,KAAK,EAAC,MAAM,cAAc,CAAC;AAMnC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAc,KAAK,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AAMpE,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,gBAAgB,CAAC;IAC7B,eAAe,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACrC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C;AAED,QAAA,MAAM,WAAW,sJAed,gBAAgB,KAAG,GAAG,CAAC,OA4JzB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -66,3 +66,4 @@ interface IcicleNodeProps {
66
66
  }
67
67
  export declare const IcicleNode: React.NamedExoticComponent<IcicleNodeProps>;
68
68
  export {};
69
+ //# sourceMappingURL=IcicleGraphNodes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IcicleGraphNodes.d.ts","sourceRoot":"","sources":["../../../src/ProfileIcicleGraph/IcicleGraphArrow/IcicleGraphNodes.tsx"],"names":[],"mappings":"AAaA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAC,KAAK,EAAC,MAAM,cAAc,CAAC;AAMnC,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAc1C,eAAO,MAAM,SAAS,KAAK,CAAC;AAE5B,UAAU,qBAAqB;IAC7B,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,aAAa,CAAC;IAC7B,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACrC,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7C,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACjD,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gCAAgC,EAAE,OAAO,CAAC;CAC3C;AAED,eAAO,MAAM,gBAAgB,mDA+E3B,CAAC;AAEH,MAAM,WAAW,aAAa;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,UAAU,eAAe;IACvB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,aAAa,CAAC;IAC7B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACrC,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7C,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACjD,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAClC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gCAAgC,EAAE,OAAO,CAAC;CAC3C;AAYD,eAAO,MAAM,UAAU,6CA2RrB,CAAC"}
@@ -38,3 +38,4 @@ interface IcicleGraphArrowProps {
38
38
  export declare const getMappingColors: (mappingsList: string[], isDarkMode: boolean, currentColorProfile: ColorConfig) => mappingColors;
39
39
  export declare const IcicleGraphArrow: React.NamedExoticComponent<IcicleGraphArrowProps>;
40
40
  export default IcicleGraphArrow;
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ProfileIcicleGraph/IcicleGraphArrow/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAgE,MAAM,OAAO,CAAC;AAKrF,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAG9C,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAQ1C,OAAO,EAIL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACtB,MAAM,kBAAkB,CAAC;AAO1B,OAAO,EAAwB,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAGxE,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAC/C,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;AACjD,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AACzD,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AACzD,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AACnD,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AACnD,eAAO,MAAM,0BAA0B,yBAAyB,CAAC;AACjE,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAC7D,eAAO,MAAM,yBAAyB,uBAAuB,CAAC;AAC9D,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,eAAO,MAAM,YAAY,WAAW,CAAC;AACrC,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,2BAA2B,0BAA0B,CAAC;AACnE,eAAO,MAAM,UAAU,SAAS,CAAC;AACjC,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AACvD,eAAO,MAAM,UAAU,SAAS,CAAC;AACjC,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AAEvD,UAAU,qBAAqB;IAC7B,KAAK,EAAE,eAAe,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACrC,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,OAAO,CAAC;IAC3B,YAAY,EAAE,OAAO,CAAC;IACtB,wBAAwB,EAAE,MAAM,EAAE,CAAC;CACpC;AAED,eAAO,MAAM,gBAAgB,iBACb,MAAM,EAAE,cACV,OAAO,uBACE,WAAW,KAC/B,aAQF,CAAC;AAIF,eAAO,MAAM,gBAAgB,mDAkQ3B,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
@@ -1,2 +1,3 @@
1
1
  declare const useMappingList: (mappings: string[] | undefined) => string[];
2
2
  export default useMappingList;
3
+ //# sourceMappingURL=useMappingList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMappingList.d.ts","sourceRoot":"","sources":["../../../src/ProfileIcicleGraph/IcicleGraphArrow/useMappingList.ts"],"names":[],"mappings":"AAiBA,QAAA,MAAM,cAAc,aAAc,MAAM,EAAE,GAAG,SAAS,KAAG,MAAM,EAsB9D,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -13,3 +13,4 @@ interface Props {
13
13
  }
14
14
  declare const useNodeColor: ({ isDarkMode, compareMode, cumulative, cumulativePerSecond, diff, diffPerSecond, mappingColors, mappingFile, }: Props) => string;
15
15
  export default useNodeColor;
16
+ //# sourceMappingURL=useNodeColor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNodeColor.d.ts","sourceRoot":"","sources":["../../../src/ProfileIcicleGraph/IcicleGraphArrow/useNodeColor.ts"],"names":[],"mappings":"AAgBA,UAAU,aAAa;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,UAAU,KAAK;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,aAAa,EAAE,aAAa,CAAC;IAC7B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,QAAA,MAAM,YAAY,mHASf,KAAK,KAAG,MAUV,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -5,3 +5,4 @@ export declare const extractFeature: (mapping: string) => Feature;
5
5
  export declare const getTextForCumulative: (hoveringNodeCumulative: bigint, totalUnfiltered: bigint, total: bigint, unit: string) => string;
6
6
  export declare const getTextForCumulativePerSecond: (hoveringNodeCumulative: number, unit: string) => string;
7
7
  export declare const arrowToString: (buffer: any) => string | null;
8
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/ProfileIcicleGraph/IcicleGraphArrow/utils.ts"],"names":[],"mappings":"AAaA,OAAO,EAAC,KAAK,EAAC,MAAM,cAAc,CAAC;AAEnC,OAAO,EAAiC,KAAK,OAAO,EAAC,MAAM,cAAc,CAAC;AAW1E,wBAAgB,SAAS,CACvB,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,EACjB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,cAAc,EAAE,OAAO,GACtB,MAAM,CAiCR;AAED,eAAO,MAAM,cAAc,YAAa,MAAM,KAAG,OAMhD,CAAC;AAEF,eAAO,MAAM,oBAAoB,2BACP,MAAM,mBACb,MAAM,SAChB,MAAM,QACP,MAAM,KACX,MAOF,CAAC;AAEF,eAAO,MAAM,6BAA6B,2BAChB,MAAM,QACxB,MAAM,KACX,MAMF,CAAC;AAEF,eAAO,MAAM,aAAa,WAAY,GAAG,KAAG,MAAM,GAAG,IAQpD,CAAC"}
@@ -22,3 +22,4 @@ interface ProfileIcicleGraphProps {
22
22
  }
23
23
  declare const ProfileIcicleGraph: ({ graph, arrow, total, filtered, curPath, setNewCurPath, profileType, navigateTo, loading, setActionButtons, error, width, isHalfScreen, mappings, }: ProfileIcicleGraphProps) => JSX.Element;
24
24
  export default ProfileIcicleGraph;
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ProfileIcicleGraph/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAKvE,OAAO,EAAC,UAAU,EAAE,eAAe,EAAC,MAAM,eAAe,CAAC;AAS1D,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAIL,KAAK,gBAAgB,EACtB,MAAM,kBAAkB,CAAC;AAa1B,MAAM,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;AAEpE,UAAU,uBAAuB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;IACvB,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACxC,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,KAAK,IAAI,CAAC;IACxD,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAgJD,QAAA,MAAM,kBAAkB,yJAerB,uBAAuB,KAAG,GAAG,CAAC,OAkQhC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -6,3 +6,4 @@ interface Props {
6
6
  }
7
7
  export declare const Toolbar: ({ sumBy, setSumBy, labels }: Props) => ReactNode;
8
8
  export {};
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ProfileMetricsGraph/Toolbar/index.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAC,SAAS,EAA2B,MAAM,OAAO,CAAC;AAQ1D,UAAU,KAAK;IACb,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACpC,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,eAAO,MAAM,OAAO,gCAA+B,KAAK,KAAG,SAkE1D,CAAC"}
@@ -33,3 +33,4 @@ export interface IQueryRangeState {
33
33
  export declare const useQueryRange: (client: QueryServiceClient, queryExpression: string, start: number, end: number, timeRange: DateTimeRange, sumBy?: string[], skip?: boolean) => IQueryRangeState;
34
34
  declare const ProfileMetricsGraph: ({ queryClient, queryExpression, profile, from, to, setTimeRange, addLabelMatcher, onPointClick, comparing, timeRange, }: ProfileMetricsGraphProps) => JSX.Element;
35
35
  export default ProfileMetricsGraph;
36
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ProfileMetricsGraph/index.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAGlD,OAAO,EAAW,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAY,MAAM,eAAe,CAAC;AACjG,OAAO,EACL,aAAa,EAKd,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAyB,gBAAgB,EAAC,MAAM,IAAI,CAAC;AAI5D,UAAU,6BAA6B;IACrC,OAAO,EAAE,MAAM,CAAC;CACjB;AAaD,eAAO,MAAM,wBAAwB,gBAAe,6BAA6B,KAAG,GAAG,CAAC,OAMvF,CAAC;AAEF,UAAU,wBAAwB;IAChC,WAAW,EAAE,kBAAkB,CAAC;IAChC,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,aAAa,CAAC;IACzB,YAAY,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAC7C,eAAe,EAAE,CACf,MAAM,EAAE;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,GAAG,KAAK,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,CAAC,KACvE,IAAI,CAAC;IACV,YAAY,EAAE,CACZ,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,KAAK,EAAE,EACf,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,MAAM,KACb,IAAI,CAAC;IACV,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACpC,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAC;CACxB;AAcD,eAAO,MAAM,aAAa,WAChB,kBAAkB,mBACT,MAAM,SAChB,MAAM,OACR,MAAM,aACA,aAAa,UACjB,MAAM,EAAE,qBAEd,gBAqFF,CAAC;AAEF,QAAA,MAAM,mBAAmB,4HAWtB,wBAAwB,KAAG,GAAG,CAAC,OAoFjC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -11,10 +11,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
11
11
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
- import { useEffect, useRef, useState } from 'react';
14
+ import { useEffect, useMemo, useRef, useState } from 'react';
15
15
  import { AnimatePresence, motion } from 'framer-motion';
16
16
  import { Duration, Timestamp } from '@parca/client';
17
- import { MetricsGraphSkeleton, useGrpcMetadata, useParcaContext, } from '@parca/components';
17
+ import { MetricsGraphSkeleton, useGrpcMetadata, useParcaContext, useURLState, } from '@parca/components';
18
18
  import { Query } from '@parca/parser';
19
19
  import { capitalizeOnlyFirstLetter, getStepDuration } from '@parca/utilities';
20
20
  import MetricsGraph from '../MetricsGraph';
@@ -25,6 +25,14 @@ const ErrorContent = ({ errorMessage }) => {
25
25
  export const ProfileMetricsEmptyState = ({ message }) => {
26
26
  return (_jsx("div", { className: "flex h-full w-full flex-col items-center justify-center", children: _jsx("p", { children: message }) }));
27
27
  };
28
+ const getStepCountFromScreenWidth = (pixelsPerPoint) => {
29
+ let width =
30
+ // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
31
+ window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
32
+ // subtract the padding around the graph
33
+ width = width - (20 + 24 + 68) * 2;
34
+ return Math.round(width / pixelsPerPoint);
35
+ };
28
36
  const EMPTY_SUM_BY = [];
29
37
  export const useQueryRange = (client, queryExpression, start, end, timeRange, sumBy = EMPTY_SUM_BY, skip = false) => {
30
38
  const previousQueryParams = useRef({});
@@ -35,6 +43,22 @@ export const useQueryRange = (client, queryExpression, start, end, timeRange, su
35
43
  error: null,
36
44
  });
37
45
  const metadata = useGrpcMetadata();
46
+ const { navigateTo } = useParcaContext();
47
+ const [stepCountStr, setStepCount] = useURLState({ param: 'step_count', navigateTo });
48
+ const defaultStepCount = useMemo(() => {
49
+ return getStepCountFromScreenWidth(10);
50
+ }, []);
51
+ const stepCount = useMemo(() => {
52
+ if (stepCountStr != null) {
53
+ return parseInt(stepCountStr, 10);
54
+ }
55
+ return defaultStepCount;
56
+ }, [stepCountStr, defaultStepCount]);
57
+ useEffect(() => {
58
+ if (stepCountStr == null) {
59
+ setStepCount(defaultStepCount.toString());
60
+ }
61
+ }, [stepCountStr, defaultStepCount, setStepCount]);
38
62
  useEffect(() => {
39
63
  void (async () => {
40
64
  if (skip) {
@@ -50,7 +74,7 @@ export const useQueryRange = (client, queryExpression, start, end, timeRange, su
50
74
  previousQueryParams.current.isRefresh = true;
51
75
  }
52
76
  setLoading(true);
53
- const stepDuration = getStepDuration(start, end);
77
+ const stepDuration = getStepDuration(start, end, stepCount);
54
78
  const call = client.queryRange({
55
79
  query: queryExpression,
56
80
  start: Timestamp.fromDate(new Date(start)),
@@ -75,7 +99,7 @@ export const useQueryRange = (client, queryExpression, start, end, timeRange, su
75
99
  }
76
100
  });
77
101
  })();
78
- }, [client, queryExpression, start, end, metadata, timeRange, sumBy, skip]);
102
+ }, [client, queryExpression, start, end, metadata, timeRange, sumBy, skip, stepCount]);
79
103
  return { ...state, isLoading, isRefreshing: previousQueryParams.current.isRefresh };
80
104
  };
81
105
  const ProfileMetricsGraph = ({ queryClient, queryExpression, profile, from, to, setTimeRange, addLabelMatcher, onPointClick, comparing = false, timeRange, }) => {
@@ -1,2 +1,3 @@
1
1
  import { ProfileType } from '@parca/parser';
2
2
  export declare const useSumBy: (profileType: ProfileType | undefined, labels: string[] | undefined) => [string[], (labels: string[]) => void];
3
+ //# sourceMappingURL=useSumBy.d.ts.map