@kylincloud/flamegraph 0.35.6
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 +1211 -0
- package/LICENSE +202 -0
- package/README.md +251 -0
- package/dist/FlameGraph/FlameGraphComponent/CheckIcon.d.ts +2 -0
- package/dist/FlameGraph/FlameGraphComponent/CheckIcon.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/ContextMenu.d.ts +17 -0
- package/dist/FlameGraph/FlameGraphComponent/ContextMenu.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/ContextMenuHighlight.d.ts +14 -0
- package/dist/FlameGraph/FlameGraphComponent/ContextMenuHighlight.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/DiffLegend.d.ts +9 -0
- package/dist/FlameGraph/FlameGraphComponent/DiffLegend.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/DiffLegendPaletteDropdown.d.ts +8 -0
- package/dist/FlameGraph/FlameGraphComponent/DiffLegendPaletteDropdown.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/Flamegraph.d.ts +96 -0
- package/dist/FlameGraph/FlameGraphComponent/Flamegraph.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/Flamegraph_render.d.ts +27 -0
- package/dist/FlameGraph/FlameGraphComponent/Flamegraph_render.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/GraphVizPane.d.ts +7 -0
- package/dist/FlameGraph/FlameGraphComponent/GraphVizPane.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/Header.d.ts +12 -0
- package/dist/FlameGraph/FlameGraphComponent/Header.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/Highlight.d.ts +18 -0
- package/dist/FlameGraph/FlameGraphComponent/Highlight.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/LogoLink.d.ts +2 -0
- package/dist/FlameGraph/FlameGraphComponent/LogoLink.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/color.d.ts +20 -0
- package/dist/FlameGraph/FlameGraphComponent/color.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/colorPalette.d.ts +11 -0
- package/dist/FlameGraph/FlameGraphComponent/colorPalette.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/constants.d.ts +6 -0
- package/dist/FlameGraph/FlameGraphComponent/constants.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/index.d.ts +37 -0
- package/dist/FlameGraph/FlameGraphComponent/index.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/murmur3.d.ts +2 -0
- package/dist/FlameGraph/FlameGraphComponent/murmur3.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/testData.d.ts +53 -0
- package/dist/FlameGraph/FlameGraphComponent/testData.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/utils.d.ts +6 -0
- package/dist/FlameGraph/FlameGraphComponent/utils.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/viewTypes.d.ts +2 -0
- package/dist/FlameGraph/FlameGraphComponent/viewTypes.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphRenderer.d.ts +86 -0
- package/dist/FlameGraph/FlameGraphRenderer.d.ts.map +1 -0
- package/dist/FlameGraph/decode.d.ts +27 -0
- package/dist/FlameGraph/decode.d.ts.map +1 -0
- package/dist/FlameGraph/normalize.d.ts +6 -0
- package/dist/FlameGraph/normalize.d.ts.map +1 -0
- package/dist/FlameGraph/uniqueness.d.ts +3 -0
- package/dist/FlameGraph/uniqueness.d.ts.map +1 -0
- package/dist/FlamegraphRenderer.d.ts +19 -0
- package/dist/FlamegraphRenderer.d.ts.map +1 -0
- package/dist/Icons.d.ts +9 -0
- package/dist/Icons.d.ts.map +1 -0
- package/dist/ProfilerTable.d.ts +21 -0
- package/dist/ProfilerTable.d.ts.map +1 -0
- package/dist/SharedQueryInput.d.ts +10 -0
- package/dist/SharedQueryInput.d.ts.map +1 -0
- package/dist/Toolbar.d.ts +31 -0
- package/dist/Toolbar.d.ts.map +1 -0
- package/dist/Tooltip/FlamegraphTooltip.d.ts +59 -0
- package/dist/Tooltip/FlamegraphTooltip.d.ts.map +1 -0
- package/dist/Tooltip/LeftClickIcon.d.ts +2 -0
- package/dist/Tooltip/LeftClickIcon.d.ts.map +1 -0
- package/dist/Tooltip/RightClickIcon.d.ts +2 -0
- package/dist/Tooltip/RightClickIcon.d.ts.map +1 -0
- package/dist/Tooltip/TableTooltip.d.ts +12 -0
- package/dist/Tooltip/TableTooltip.d.ts.map +1 -0
- package/dist/Tooltip/Tooltip.d.ts +29 -0
- package/dist/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/convert/convertJaegerTraceToProfile.d.ts +3 -0
- package/dist/convert/convertJaegerTraceToProfile.d.ts.map +1 -0
- package/dist/convert/diffTwoProfiles.d.ts +3 -0
- package/dist/convert/diffTwoProfiles.d.ts.map +1 -0
- package/dist/convert/flamebearersToTree.d.ts +11 -0
- package/dist/convert/flamebearersToTree.d.ts.map +1 -0
- package/dist/convert/sandwichViewProfiles.d.ts +14 -0
- package/dist/convert/sandwichViewProfiles.d.ts.map +1 -0
- package/dist/convert/subtract.d.ts +3 -0
- package/dist/convert/subtract.d.ts.map +1 -0
- package/dist/convert/testData.d.ts +50 -0
- package/dist/convert/testData.d.ts.map +1 -0
- package/dist/convert/toGraphviz.d.ts +3 -0
- package/dist/convert/toGraphviz.d.ts.map +1 -0
- package/dist/fitMode/fitMode.d.ts +42 -0
- package/dist/fitMode/fitMode.d.ts.map +1 -0
- package/dist/format/format.d.ts +42 -0
- package/dist/format/format.d.ts.map +1 -0
- package/dist/i18n.d.ts +55 -0
- package/dist/i18n.d.ts.map +1 -0
- package/dist/index.cjs.css +792 -0
- package/dist/index.cjs.js +5087 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.css +792 -0
- package/dist/index.esm.js +5079 -0
- package/dist/index.node.d.ts +9 -0
- package/dist/index.node.d.ts.map +1 -0
- package/dist/logo-v3-small-T5VXIMRR.svg +32 -0
- package/dist/models/decode.d.ts +3 -0
- package/dist/models/decode.d.ts.map +1 -0
- package/dist/models/flamebearer.d.ts +63 -0
- package/dist/models/flamebearer.d.ts.map +1 -0
- package/dist/models/groups.d.ts +37 -0
- package/dist/models/groups.d.ts.map +1 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/profile.d.ts +152 -0
- package/dist/models/profile.d.ts.map +1 -0
- package/dist/models/spyName.d.ts +8 -0
- package/dist/models/spyName.d.ts.map +1 -0
- package/dist/models/trace.d.ts +357 -0
- package/dist/models/trace.d.ts.map +1 -0
- package/dist/models/units.d.ts +6 -0
- package/dist/models/units.d.ts.map +1 -0
- package/dist/search.d.ts +2 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/shims/Box.d.ts +38 -0
- package/dist/shims/Box.d.ts.map +1 -0
- package/dist/shims/Button.d.ts +26 -0
- package/dist/shims/Button.d.ts.map +1 -0
- package/dist/shims/Dropdown.d.ts +30 -0
- package/dist/shims/Dropdown.d.ts.map +1 -0
- package/dist/shims/Input.d.ts +19 -0
- package/dist/shims/Input.d.ts.map +1 -0
- package/dist/shims/LoadingSpinner.d.ts +7 -0
- package/dist/shims/LoadingSpinner.d.ts.map +1 -0
- package/dist/shims/Menu.d.ts +4 -0
- package/dist/shims/Menu.d.ts.map +1 -0
- package/dist/shims/NoData.d.ts +2 -0
- package/dist/shims/NoData.d.ts.map +1 -0
- package/dist/shims/Table.d.ts +52 -0
- package/dist/shims/Table.d.ts.map +1 -0
- package/dist/shims/Tooltip.d.ts +9 -0
- package/dist/shims/Tooltip.d.ts.map +1 -0
- package/package.json +84 -0
- package/src/FlameGraph/FlameGraphComponent/CheckIcon.tsx +27 -0
- package/src/FlameGraph/FlameGraphComponent/ContextMenu.module.scss +10 -0
- package/src/FlameGraph/FlameGraphComponent/ContextMenu.spec.tsx +84 -0
- package/src/FlameGraph/FlameGraphComponent/ContextMenu.tsx +86 -0
- package/src/FlameGraph/FlameGraphComponent/ContextMenuHighlight.module.css +8 -0
- package/src/FlameGraph/FlameGraphComponent/ContextMenuHighlight.tsx +47 -0
- package/src/FlameGraph/FlameGraphComponent/DiffLegend.module.css +21 -0
- package/src/FlameGraph/FlameGraphComponent/DiffLegend.tsx +52 -0
- package/src/FlameGraph/FlameGraphComponent/DiffLegendPaletteDropdown.module.css +40 -0
- package/src/FlameGraph/FlameGraphComponent/DiffLegendPaletteDropdown.tsx +129 -0
- package/src/FlameGraph/FlameGraphComponent/Flamegraph.spec.ts +552 -0
- package/src/FlameGraph/FlameGraphComponent/Flamegraph.ts +446 -0
- package/src/FlameGraph/FlameGraphComponent/Flamegraph_render.spec.tsx +233 -0
- package/src/FlameGraph/FlameGraphComponent/Flamegraph_render.ts +478 -0
- package/src/FlameGraph/FlameGraphComponent/GraphVizPane.tsx +56 -0
- package/src/FlameGraph/FlameGraphComponent/GraphVizPanel.module.scss +55 -0
- package/src/FlameGraph/FlameGraphComponent/Header.module.css +27 -0
- package/src/FlameGraph/FlameGraphComponent/Header.tsx +71 -0
- package/src/FlameGraph/FlameGraphComponent/Highlight.module.css +7 -0
- package/src/FlameGraph/FlameGraphComponent/Highlight.spec.tsx +53 -0
- package/src/FlameGraph/FlameGraphComponent/Highlight.tsx +94 -0
- package/src/FlameGraph/FlameGraphComponent/LogoLink.module.scss +10 -0
- package/src/FlameGraph/FlameGraphComponent/LogoLink.tsx +101 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/canvas-renderer-spec-tsx-canvas-renderer-group-snapshot-collapses-small-blocks-into-one-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/canvas-renderer-spec-tsx-canvas-renderer-group-snapshot-works-with-diff-mode-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/canvas-renderer-spec-tsx-canvas-renderer-group-snapshot-works-with-highlighted-flamegraph-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/canvas-renderer-spec-tsx-canvas-renderer-group-snapshot-works-with-normal-flamegraph-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/canvas-renderer-spec-tsx-canvas-renderer-group-snapshot-works-with-selected-node-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-focused-also-zooms-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-focused-renders-a-focused-node-in-the-beginning-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-focused-renders-a-focused-node-when-node-is-not-in-the-beginning-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-focused-renders-a-focused-node-zoom-top-level-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-renders-a-complex-flamegraph-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-renders-a-double-diff-flamegraph-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-renders-a-highlighted-double-flamegraph-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-renders-a-highlighted-flamegraph-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-renders-a-simple-flamegraph-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-renders-a-simple-tree-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-renders-a-zoomed-flamegraph-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-renders-a-zoomed-with-fit-mode-tail-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/canvas.module.css +6 -0
- package/src/FlameGraph/FlameGraphComponent/color.spec.ts +308 -0
- package/src/FlameGraph/FlameGraphComponent/color.ts +167 -0
- package/src/FlameGraph/FlameGraphComponent/colorPalette.ts +58 -0
- package/src/FlameGraph/FlameGraphComponent/constants.ts +5 -0
- package/src/FlameGraph/FlameGraphComponent/index.spec.tsx +291 -0
- package/src/FlameGraph/FlameGraphComponent/index.tsx +411 -0
- package/src/FlameGraph/FlameGraphComponent/murmur3.ts +97 -0
- package/src/FlameGraph/FlameGraphComponent/styles.module.scss +10 -0
- package/src/FlameGraph/FlameGraphComponent/testData.ts +427 -0
- package/src/FlameGraph/FlameGraphComponent/utils.ts +31 -0
- package/src/FlameGraph/FlameGraphComponent/viewTypes.ts +6 -0
- package/src/FlameGraph/FlameGraphRenderer.tsx +603 -0
- package/src/FlameGraph/FlamegraphRenderer.module.scss +93 -0
- package/src/FlameGraph/decode.ts +78 -0
- package/src/FlameGraph/normalize.spec.ts +76 -0
- package/src/FlameGraph/normalize.ts +60 -0
- package/src/FlameGraph/testData.json +423 -0
- package/src/FlameGraph/uniqueness.spec.ts +16 -0
- package/src/FlameGraph/uniqueness.ts +84 -0
- package/src/FlamegraphRenderer.tsx +61 -0
- package/src/Icons.tsx +74 -0
- package/src/ProfilerTable.tsx +527 -0
- package/src/SharedQueryInput.module.scss +82 -0
- package/src/SharedQueryInput.tsx +127 -0
- package/src/Toolbar.module.scss +117 -0
- package/src/Toolbar.spec.tsx +217 -0
- package/src/Toolbar.tsx +471 -0
- package/src/Tooltip/FlamegraphTooltip.spec.tsx +81 -0
- package/src/Tooltip/FlamegraphTooltip.tsx +257 -0
- package/src/Tooltip/LeftClickIcon.tsx +18 -0
- package/src/Tooltip/RightClickIcon.tsx +18 -0
- package/src/Tooltip/TableTooltip.spec.tsx +44 -0
- package/src/Tooltip/TableTooltip.tsx +145 -0
- package/src/Tooltip/Tooltip.module.scss +71 -0
- package/src/Tooltip/Tooltip.spec.tsx +395 -0
- package/src/Tooltip/Tooltip.tsx +336 -0
- package/src/__snapshots__/Toolbar.spec.tsx.snap +297 -0
- package/src/convert/convertJaegerTraceToProfile.ts +97 -0
- package/src/convert/diffTwoProfiles.ts +81 -0
- package/src/convert/flamebearersToTree.ts +78 -0
- package/src/convert/sandwichViewProfiles.spec.ts +65 -0
- package/src/convert/sandwichViewProfiles.ts +191 -0
- package/src/convert/subtract.ts +87 -0
- package/src/convert/testData.ts +145 -0
- package/src/convert/toGraphviz.ts +485 -0
- package/src/fitMode/fitMode.spec.ts +93 -0
- package/src/fitMode/fitMode.ts +122 -0
- package/src/format/format.spec.ts +291 -0
- package/src/format/format.ts +303 -0
- package/src/globals.d.ts +13 -0
- package/src/i18n.tsx +293 -0
- package/src/index.node.ts +19 -0
- package/src/index.spec.tsx +383 -0
- package/src/index.tsx +10 -0
- package/src/logo-v3-small.svg +32 -0
- package/src/models/decode.ts +45 -0
- package/src/models/flamebearer.ts +86 -0
- package/src/models/groups.ts +14 -0
- package/src/models/index.ts +7 -0
- package/src/models/profile.spec.ts +32 -0
- package/src/models/profile.ts +48 -0
- package/src/models/spyName.spec.ts +18 -0
- package/src/models/spyName.ts +32 -0
- package/src/models/trace.ts +45 -0
- package/src/models/units.spec.ts +21 -0
- package/src/models/units.ts +24 -0
- package/src/sass/_common.scss +206 -0
- package/src/sass/_css-variables.scss +201 -0
- package/src/sass/_mixins.scss +15 -0
- package/src/sass/_sanitize.scss +407 -0
- package/src/sass/_variables.scss +53 -0
- package/src/sass/flamegraph.scss +18 -0
- package/src/search.spec.ts +11 -0
- package/src/search.ts +4 -0
- package/src/shameful-any.d.ts +2 -0
- package/src/shims/Box.module.scss +57 -0
- package/src/shims/Box.tsx +105 -0
- package/src/shims/Button.module.scss +129 -0
- package/src/shims/Button.tsx +128 -0
- package/src/shims/Dropdown.module.scss +63 -0
- package/src/shims/Dropdown.tsx +96 -0
- package/src/shims/Input.module.scss +15 -0
- package/src/shims/Input.tsx +55 -0
- package/src/shims/LoadingSpinner.tsx +19 -0
- package/src/shims/Menu.tsx +9 -0
- package/src/shims/NoData.module.scss +6 -0
- package/src/shims/NoData.tsx +11 -0
- package/src/shims/Table.module.scss +82 -0
- package/src/shims/Table.spec.tsx +121 -0
- package/src/shims/Table.tsx +252 -0
- package/src/shims/Tooltip.tsx +51 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphVizPane.d.ts","sourceRoot":"","sources":["../../../src/FlameGraph/FlameGraphComponent/GraphVizPane.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAehD,UAAU,iBAAiB;IACzB,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,wBAAgB,YAAY,CAAC,EAAE,WAAW,EAAE,EAAE,iBAAiB,2CAmC9D"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Flamebearer } from '../../models';
|
|
2
|
+
import { FlamegraphPalette } from './colorPalette';
|
|
3
|
+
interface HeaderProps {
|
|
4
|
+
format: Flamebearer['format'];
|
|
5
|
+
units: Flamebearer['units'];
|
|
6
|
+
palette: FlamegraphPalette;
|
|
7
|
+
setPalette: (p: FlamegraphPalette) => void;
|
|
8
|
+
toolbarVisible?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export default function Header(props: HeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/FlameGraph/FlameGraphComponent/Header.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGnD,UAAU,WAAW;IACnB,MAAM,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC9B,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAE5B,OAAO,EAAE,iBAAiB,CAAC;IAC3B,UAAU,EAAE,CAAC,CAAC,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AACD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,WAAW,2CAwDhD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Maybe } from 'true-myth';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { DeepReadonly } from 'ts-essentials';
|
|
4
|
+
export interface HighlightProps {
|
|
5
|
+
barHeight: number;
|
|
6
|
+
zoom: Maybe<DeepReadonly<{
|
|
7
|
+
i: number;
|
|
8
|
+
j: number;
|
|
9
|
+
}>>;
|
|
10
|
+
xyToHighlightData: (x: number, y: number) => Maybe<{
|
|
11
|
+
left: number;
|
|
12
|
+
top: number;
|
|
13
|
+
width: number;
|
|
14
|
+
}>;
|
|
15
|
+
canvasRef: React.RefObject<HTMLCanvasElement>;
|
|
16
|
+
}
|
|
17
|
+
export default function Highlight(props: HighlightProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=Highlight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Highlight.d.ts","sourceRoot":"","sources":["../../../src/FlameGraph/FlameGraphComponent/Highlight.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,MAAM,WAAW,cAAc;IAE7B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,CAAC;IACpD,iBAAiB,EAAE,CACjB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,KACN,KAAK,CAAC;QACT,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;KACf,CAAC,CAAC;IAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;CAC/C;AACD,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,cAAc,2CAyEtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogoLink.d.ts","sourceRoot":"","sources":["../../../src/FlameGraph/FlameGraphComponent/LogoLink.tsx"],"names":[],"mappings":"AAwFA,MAAM,CAAC,OAAO,UAAU,QAAQ,4CAY/B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Color from 'color';
|
|
2
|
+
import type { SpyName } from '../../models';
|
|
3
|
+
import type { FlamegraphPalette } from './colorPalette';
|
|
4
|
+
export declare const defaultColor: import("color").ColorInstance;
|
|
5
|
+
export declare const diffColorRed: import("color").ColorInstance;
|
|
6
|
+
export declare const diffColorGreen: import("color").ColorInstance;
|
|
7
|
+
export declare const highlightColor: import("color").ColorInstance;
|
|
8
|
+
export declare function colorBasedOnDiffPercent(palette: FlamegraphPalette, leftPercent: number, rightPercent: number): import("color").ColorInstance;
|
|
9
|
+
export declare function diffPercent(leftPercent: number, rightPercent: number): number;
|
|
10
|
+
export declare function colorFromPercentage(p: number, alpha: number): import("color").ColorInstance;
|
|
11
|
+
export declare function colorGreyscale(v: number, a: number): import("color").ColorInstance;
|
|
12
|
+
export declare function getPackageNameFromStackTrace(spyName: SpyName, stackTrace: string): string;
|
|
13
|
+
export declare function colorBasedOnPackageName(palette: FlamegraphPalette, name: string): import("color").ColorInstance;
|
|
14
|
+
/**
|
|
15
|
+
* NewDiffColor constructs a function that given a number from -100 to 100
|
|
16
|
+
* it returns the color for that number in a linear scale
|
|
17
|
+
* encoded in rgb
|
|
18
|
+
*/
|
|
19
|
+
export declare function NewDiffColor(props: Omit<FlamegraphPalette, 'colors'>): (n: number) => InstanceType<typeof Color>;
|
|
20
|
+
//# sourceMappingURL=color.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../src/FlameGraph/FlameGraphComponent/color.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,eAAO,MAAM,YAAY,+BAA2B,CAAC;AACrD,eAAO,MAAM,YAAY,+BAAuB,CAAC;AACjD,eAAO,MAAM,cAAc,+BAAuB,CAAC;AAEnD,eAAO,MAAM,cAAc,+BAAmB,CAAC;AAE/C,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,iBAAiB,EAC1B,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,iCAKrB;AAID,wBAAgB,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,UAoBpE;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,iCAqB3D;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,iCAElD;AAuCD,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,MAAM,UAWnB;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,iBAAiB,EAC1B,IAAI,EAAE,MAAM,iCAYb;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC,GACvC,CAAC,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,OAAO,KAAK,CAAC,CAiB3C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Color from 'color';
|
|
2
|
+
export interface FlamegraphPalette {
|
|
3
|
+
name: string;
|
|
4
|
+
goodColor: InstanceType<typeof Color>;
|
|
5
|
+
neutralColor: InstanceType<typeof Color>;
|
|
6
|
+
badColor: InstanceType<typeof Color>;
|
|
7
|
+
colors: InstanceType<typeof Color>[];
|
|
8
|
+
}
|
|
9
|
+
export declare const DefaultPalette: FlamegraphPalette;
|
|
10
|
+
export declare const ColorBlindPalette: FlamegraphPalette;
|
|
11
|
+
//# sourceMappingURL=colorPalette.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colorPalette.d.ts","sourceRoot":"","sources":["../../../src/FlameGraph/FlameGraphComponent/colorPalette.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,YAAY,CAAC,OAAO,KAAK,CAAC,CAAC;IACtC,YAAY,EAAE,YAAY,CAAC,OAAO,KAAK,CAAC,CAAC;IACzC,QAAQ,EAAE,YAAY,CAAC,OAAO,KAAK,CAAC,CAAC;IAErC,MAAM,EAAE,YAAY,CAAC,OAAO,KAAK,CAAC,EAAE,CAAC;CACtC;AAED,eAAO,MAAM,cAAc,EAAE,iBAoC5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,iBAO/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/FlameGraph/FlameGraphComponent/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,kBAAkB,IAAI,CAAC;AACpC,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,GAAG,MAAM,CAAC;AACvB,eAAO,MAAM,UAAU,QAAqB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Maybe } from 'true-myth';
|
|
2
|
+
import { Flamebearer } from '../../models';
|
|
3
|
+
import Flamegraph from './Flamegraph';
|
|
4
|
+
import { FlamegraphPalette } from './colorPalette';
|
|
5
|
+
import type { ViewTypes } from './viewTypes';
|
|
6
|
+
import { FitModes } from '../../fitMode/fitMode';
|
|
7
|
+
interface FlamegraphProps {
|
|
8
|
+
flamebearer: Flamebearer;
|
|
9
|
+
focusedNode: ConstructorParameters<typeof Flamegraph>[2];
|
|
10
|
+
fitMode: ConstructorParameters<typeof Flamegraph>[3];
|
|
11
|
+
updateFitMode: (f: FitModes) => void;
|
|
12
|
+
highlightQuery: ConstructorParameters<typeof Flamegraph>[4];
|
|
13
|
+
zoom: ConstructorParameters<typeof Flamegraph>[5];
|
|
14
|
+
showCredit: boolean;
|
|
15
|
+
selectedItem: Maybe<string>;
|
|
16
|
+
onZoom: (bar: Maybe<{
|
|
17
|
+
i: number;
|
|
18
|
+
j: number;
|
|
19
|
+
}>) => void;
|
|
20
|
+
onFocusOnNode: (i: number, j: number) => void;
|
|
21
|
+
setActiveItem: (item: {
|
|
22
|
+
name: string;
|
|
23
|
+
}) => void;
|
|
24
|
+
updateView?: (v: ViewTypes) => void;
|
|
25
|
+
onReset: () => void;
|
|
26
|
+
isDirty: () => boolean;
|
|
27
|
+
['data-testid']?: string;
|
|
28
|
+
palette: FlamegraphPalette;
|
|
29
|
+
setPalette: (p: FlamegraphPalette) => void;
|
|
30
|
+
toolbarVisible?: boolean;
|
|
31
|
+
headerVisible?: boolean;
|
|
32
|
+
disableClick?: boolean;
|
|
33
|
+
showSingleLevel?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export default function FlameGraphComponent(props: FlamegraphProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/FlameGraph/FlameGraphComponent/index.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,UAAU,MAAM,cAAc,CAAC;AAStC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAsB,MAAM,uBAAuB,CAAC;AAIrE,UAAU,eAAe;IACvB,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,qBAAqB,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IACzD,OAAO,EAAE,qBAAqB,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IACrD,aAAa,EAAE,CAAC,CAAC,EAAE,QAAQ,KAAK,IAAI,CAAC;IACrC,cAAc,EAAE,qBAAqB,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5D,IAAI,EAAE,qBAAqB,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IAClD,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B,MAAM,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,KAAK,IAAI,CAAC;IACvD,aAAa,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,aAAa,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAChD,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;IAEpC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,OAAO,CAAC;IAEvB,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,UAAU,EAAE,CAAC,CAAC,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,eAAe,2CAiWjE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"murmur3.d.ts","sourceRoot":"","sources":["../../../src/FlameGraph/FlameGraphComponent/murmur3.ts"],"names":[],"mappings":"AAoBA,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,SAAI,UA4E9D"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
declare const TestData: {
|
|
2
|
+
empty: {
|
|
3
|
+
names: any[];
|
|
4
|
+
levels: any[];
|
|
5
|
+
numTicks: number;
|
|
6
|
+
sampleRate: number;
|
|
7
|
+
units: "samples";
|
|
8
|
+
spyName: "unknown";
|
|
9
|
+
format: "single";
|
|
10
|
+
version: number;
|
|
11
|
+
};
|
|
12
|
+
SimpleTree: {
|
|
13
|
+
topLevel: number;
|
|
14
|
+
rangeMin: number;
|
|
15
|
+
format: "single";
|
|
16
|
+
numTicks: number;
|
|
17
|
+
maxSelf: number;
|
|
18
|
+
sampleRate: number;
|
|
19
|
+
names: string[];
|
|
20
|
+
levels: number[][];
|
|
21
|
+
rangeMax: number;
|
|
22
|
+
units: "samples";
|
|
23
|
+
fitMode: string;
|
|
24
|
+
spyName: "gospy";
|
|
25
|
+
version: number;
|
|
26
|
+
};
|
|
27
|
+
ComplexTree: {
|
|
28
|
+
names: string[];
|
|
29
|
+
levels: number[][];
|
|
30
|
+
numTicks: number;
|
|
31
|
+
maxSelf: number;
|
|
32
|
+
spyName: "gospy";
|
|
33
|
+
sampleRate: number;
|
|
34
|
+
units: "samples";
|
|
35
|
+
format: "single";
|
|
36
|
+
version: number;
|
|
37
|
+
};
|
|
38
|
+
DiffTree: {
|
|
39
|
+
names: string[];
|
|
40
|
+
levels: number[][];
|
|
41
|
+
numTicks: number;
|
|
42
|
+
maxSelf: number;
|
|
43
|
+
spyName: "gospy";
|
|
44
|
+
sampleRate: number;
|
|
45
|
+
units: "samples";
|
|
46
|
+
format: "double";
|
|
47
|
+
leftTicks: number;
|
|
48
|
+
rightTicks: number;
|
|
49
|
+
version: number;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export default TestData;
|
|
53
|
+
//# sourceMappingURL=testData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testData.d.ts","sourceRoot":"","sources":["../../../src/FlameGraph/FlameGraphComponent/testData.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwab,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/FlameGraph/FlameGraphComponent/utils.ts"],"names":[],"mappings":"AAIA,iBAAS,SAAS,CAChB,KAAK,EAAE,MAAM,EAAE,EACf,CAAC,EAAE,MAAM,EACT,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM;;;EAoBnB;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewTypes.d.ts","sourceRoot":"","sources":["../../../src/FlameGraph/FlameGraphComponent/viewTypes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GACjB,YAAY,GACZ,MAAM,GACN,OAAO,GACP,UAAU,GACV,UAAU,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction, ReactNode, Component } from 'react';
|
|
2
|
+
import { Maybe } from 'true-myth';
|
|
3
|
+
import { Flamebearer, Profile } from '../models';
|
|
4
|
+
import { ProfileHeaderProps } from '../Toolbar';
|
|
5
|
+
import { DefaultPalette } from './FlameGraphComponent/colorPalette';
|
|
6
|
+
import { FitModes } from '../fitMode/fitMode';
|
|
7
|
+
import { ViewTypes } from './FlameGraphComponent/viewTypes';
|
|
8
|
+
interface Node {
|
|
9
|
+
i: number;
|
|
10
|
+
j: number;
|
|
11
|
+
}
|
|
12
|
+
export interface FlamegraphRendererProps {
|
|
13
|
+
profile?: Profile;
|
|
14
|
+
/** in case you ONLY want to display a specific visualization mode. It will also disable the dropdown that allows you to change mode. */
|
|
15
|
+
onlyDisplay?: ViewTypes;
|
|
16
|
+
showToolbar?: boolean;
|
|
17
|
+
/** whether to display the panes (table and flamegraph) side by side ('horizontal') or one on top of the other ('vertical') */
|
|
18
|
+
panesOrientation?: 'horizontal' | 'vertical';
|
|
19
|
+
showPyroscopeLogo?: boolean;
|
|
20
|
+
showCredit?: boolean;
|
|
21
|
+
ExportData?: ProfileHeaderProps['ExportData'];
|
|
22
|
+
/** @deprecated prefer Profile */
|
|
23
|
+
flamebearer?: Flamebearer;
|
|
24
|
+
sharedQuery?: {
|
|
25
|
+
searchQuery?: string;
|
|
26
|
+
onQueryChange: Dispatch<SetStateAction<string | undefined>>;
|
|
27
|
+
syncEnabled: string | boolean;
|
|
28
|
+
toggleSync: Dispatch<SetStateAction<boolean | string>>;
|
|
29
|
+
id: string;
|
|
30
|
+
};
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
}
|
|
33
|
+
interface FlamegraphRendererState {
|
|
34
|
+
/** A dirty flamegraph refers to a flamegraph where its original state can be reset */
|
|
35
|
+
isFlamegraphDirty: boolean;
|
|
36
|
+
view: NonNullable<FlamegraphRendererProps['onlyDisplay']>;
|
|
37
|
+
panesOrientation: NonNullable<FlamegraphRendererProps['panesOrientation']>;
|
|
38
|
+
fitMode: 'HEAD' | 'TAIL';
|
|
39
|
+
flamebearer: NonNullable<FlamegraphRendererProps['flamebearer']>;
|
|
40
|
+
/** Query searched in the input box.
|
|
41
|
+
* It's used to filter data in the table AND highlight items in the flamegraph */
|
|
42
|
+
searchQuery: string;
|
|
43
|
+
/** Triggered when an item is clicked on the table. It overwrites the searchQuery */
|
|
44
|
+
selectedItem: Maybe<string>;
|
|
45
|
+
flamegraphConfigs: {
|
|
46
|
+
focusedNode: Maybe<Node>;
|
|
47
|
+
zoom: Maybe<Node>;
|
|
48
|
+
};
|
|
49
|
+
palette: typeof DefaultPalette;
|
|
50
|
+
}
|
|
51
|
+
declare class FlameGraphRenderer extends Component<FlamegraphRendererProps, FlamegraphRendererState> {
|
|
52
|
+
resetFlamegraphState: {
|
|
53
|
+
focusedNode: import("true-myth/maybe").Nothing<Node>;
|
|
54
|
+
zoom: import("true-myth/maybe").Nothing<Node>;
|
|
55
|
+
};
|
|
56
|
+
initialFlamegraphState: {
|
|
57
|
+
focusedNode: import("true-myth/maybe").Nothing<Node>;
|
|
58
|
+
zoom: import("true-myth/maybe").Nothing<Node>;
|
|
59
|
+
};
|
|
60
|
+
static defaultProps: {
|
|
61
|
+
showCredit: boolean;
|
|
62
|
+
};
|
|
63
|
+
constructor(props: FlamegraphRendererProps);
|
|
64
|
+
componentDidUpdate(prevProps: FlamegraphRendererProps, prevState: FlamegraphRendererState): void;
|
|
65
|
+
calcNewConfigs: (prevFlame: Flamebearer, currFlame: Flamebearer) => {
|
|
66
|
+
focusedNode: Maybe<Node>;
|
|
67
|
+
zoom: Maybe<Node>;
|
|
68
|
+
};
|
|
69
|
+
onSearchChange: (e: string) => void;
|
|
70
|
+
isSameFlamebearer: (prevFlame: Flamebearer, currFlame: Flamebearer) => boolean;
|
|
71
|
+
onReset: () => void;
|
|
72
|
+
onFlamegraphZoom: (bar: Maybe<Node>) => void;
|
|
73
|
+
onFocusOnNode: (i: number, j: number) => void;
|
|
74
|
+
setActiveItem: (item: {
|
|
75
|
+
name: string;
|
|
76
|
+
}) => void;
|
|
77
|
+
getHighlightQuery: () => string;
|
|
78
|
+
updateView: (newView: ViewTypes) => void;
|
|
79
|
+
updateFlamegraphDirtiness: () => void;
|
|
80
|
+
updateFitMode: (newFitMode: FitModes) => void;
|
|
81
|
+
isDirty: () => boolean;
|
|
82
|
+
shouldShowToolbar(): boolean;
|
|
83
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
84
|
+
}
|
|
85
|
+
export default FlameGraphRenderer;
|
|
86
|
+
//# sourceMappingURL=FlameGraphRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlameGraphRenderer.d.ts","sourceRoot":"","sources":["../../src/FlameGraph/FlameGraphRenderer.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Profile } from '../models';
|
|
2
|
+
export declare function deltaDiffWrapperReverse(format: Profile['metadata']['format'], levels: Profile['flamebearer']['levels']): number[][];
|
|
3
|
+
export declare function deltaDiffWrapper(format: Profile['metadata']['format'], levels: Profile['flamebearer']['levels']): number[][];
|
|
4
|
+
export declare function decodeFlamebearer(fb: Profile): {
|
|
5
|
+
version?: number;
|
|
6
|
+
flamebearer?: {
|
|
7
|
+
names?: string[];
|
|
8
|
+
levels?: number[][];
|
|
9
|
+
numTicks?: number;
|
|
10
|
+
maxSelf?: number;
|
|
11
|
+
};
|
|
12
|
+
metadata?: {
|
|
13
|
+
appName?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
startTime?: number;
|
|
16
|
+
endTime?: number;
|
|
17
|
+
query?: string;
|
|
18
|
+
maxNodes?: number;
|
|
19
|
+
format?: "single" | "double";
|
|
20
|
+
sampleRate?: number;
|
|
21
|
+
spyName?: "dotnetspy" | "ebpfspy" | "gospy" | "phpspy" | "pyspy" | "rbspy" | "nodespy" | "javaspy" | "pyroscope-rs" | "scrape" | "tracing" | "unknown";
|
|
22
|
+
units?: "unknown" | "samples" | "objects" | "goroutines" | "bytes" | "lock_samples" | "lock_nanoseconds" | "trace_samples" | "exceptions";
|
|
23
|
+
};
|
|
24
|
+
leftTicks?: number;
|
|
25
|
+
rightTicks?: number;
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=decode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decode.d.ts","sourceRoot":"","sources":["../../src/FlameGraph/decode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,EACrC,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,cA2BzC;AAED,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,EACrC,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,cA2BzC;AAQD,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;EAO5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../src/FlameGraph/normalize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKjD,wBAAgB,SAAS,CAAC,CAAC,EAAE;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,GAAG,WAAW,CAmDd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uniqueness.d.ts","sourceRoot":"","sources":["../../src/FlameGraph/uniqueness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,WAAW,EACtB,SAAS,EAAE,WAAW,WAsDvB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FlamegraphRendererProps as InnerFlamegraphRendererProps } from './FlameGraph/FlameGraphRenderer';
|
|
3
|
+
import './sass/flamegraph.scss';
|
|
4
|
+
import { type FlamegraphMessages } from './i18n';
|
|
5
|
+
export type FlamegraphRendererProps = Omit<InnerFlamegraphRendererProps, 'showPyroscopeLogo'> & {
|
|
6
|
+
/** 颜色模式:原生 light/dark + 新增 kylin */
|
|
7
|
+
colorMode?: 'light' | 'dark' | 'kylin';
|
|
8
|
+
/** 文案覆盖(不传就是内置默认英文/中文) */
|
|
9
|
+
i18n?: Partial<FlamegraphMessages>;
|
|
10
|
+
};
|
|
11
|
+
declare global {
|
|
12
|
+
namespace JSX {
|
|
13
|
+
interface IntrinsicElements {
|
|
14
|
+
'pyro-flamegraph': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export declare const FlamegraphRenderer: React.FC<FlamegraphRendererProps>;
|
|
19
|
+
//# sourceMappingURL=FlamegraphRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlamegraphRenderer.d.ts","sourceRoot":"","sources":["../src/FlamegraphRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAA2B,EACzB,uBAAuB,IAAI,4BAA4B,EACxD,MAAM,iCAAiC,CAAC;AACzC,OAAO,wBAAwB,CAAC;AAChC,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,QAAQ,CAAC;AAOhB,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACxC,4BAA4B,EAC5B,mBAAmB,CACpB,GAAG;IACF,oCAAoC;IACpC,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;IACvC,0BAA0B;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;CACpC,CAAC;AAGF,OAAO,CAAC,MAAM,CAAC;IAEb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CACxC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EACjC,WAAW,CACZ,CAAC;SACH;KACF;CACF;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAqBhE,CAAC"}
|
package/dist/Icons.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const TableIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const TablePlusFlamegraphIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const FlamegraphIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const SandwichIcon: ({ fill }: {
|
|
5
|
+
fill?: string;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const HeadFirstIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const TailFirstIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=Icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icons.d.ts","sourceRoot":"","sources":["../src/Icons.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,+CAQrB,CAAC;AAEF,eAAO,MAAM,uBAAuB,+CAOnC,CAAC;AAEF,eAAO,MAAM,cAAc,+CAM1B,CAAC;AAEF,eAAO,MAAM,YAAY,aAAc;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,4CAYvD,CAAC;AAEF,eAAO,MAAM,aAAa,+CAczB,CAAC;AAEF,eAAO,MAAM,aAAa,+CAczB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { RefObject } from 'react';
|
|
2
|
+
import type Color from 'color';
|
|
3
|
+
import type { Maybe } from 'true-myth';
|
|
4
|
+
import { Flamebearer } from './models';
|
|
5
|
+
import { FitModes } from './fitMode/fitMode';
|
|
6
|
+
import type { FlamegraphPalette } from './FlameGraph/FlameGraphComponent/colorPalette';
|
|
7
|
+
export declare function backgroundImageDiffStyle(palette: FlamegraphPalette, a: number, b: number, total: number, color: InstanceType<typeof Color>, side?: 'L' | 'R'): React.CSSProperties;
|
|
8
|
+
export interface ProfilerTableProps {
|
|
9
|
+
flamebearer: Flamebearer;
|
|
10
|
+
fitMode: FitModes;
|
|
11
|
+
handleTableItemClick: (tableItem: {
|
|
12
|
+
name: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
highlightQuery: string;
|
|
15
|
+
palette: FlamegraphPalette;
|
|
16
|
+
selectedItem: Maybe<string>;
|
|
17
|
+
tableBodyRef: RefObject<HTMLTableSectionElement>;
|
|
18
|
+
}
|
|
19
|
+
declare const ProfilerTable: React.NamedExoticComponent<Omit<ProfilerTableProps, "tableBodyRef">>;
|
|
20
|
+
export default ProfilerTable;
|
|
21
|
+
//# sourceMappingURL=ProfilerTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfilerTable.d.ts","sourceRoot":"","sources":["../src/ProfilerTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAU,SAAS,EAAiB,MAAM,OAAO,CAAC;AAChE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAsB,WAAW,EAAE,MAAM,UAAU,CAAC;AAe3D,OAAO,EAAoB,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AA2IvF,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,iBAAiB,EAC1B,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,YAAY,CAAC,OAAO,KAAK,CAAC,EACjC,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GACf,KAAK,CAAC,aAAa,CA4BrB;AAqMD,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,QAAQ,CAAC;IAClB,oBAAoB,EAAE,CAAC,SAAS,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAC5D,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B,YAAY,EAAE,SAAS,CAAC,uBAAuB,CAAC,CAAC;CAClD;AA2FD,QAAA,MAAM,aAAa,sEA+BjB,CAAC;AAEH,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ProfileHeaderProps } from './Toolbar';
|
|
2
|
+
interface SharedQueryProps {
|
|
3
|
+
onHighlightChange: ProfileHeaderProps['handleSearchChange'];
|
|
4
|
+
highlightQuery: ProfileHeaderProps['highlightQuery'];
|
|
5
|
+
sharedQuery: ProfileHeaderProps['sharedQuery'];
|
|
6
|
+
width: number;
|
|
7
|
+
}
|
|
8
|
+
declare const SharedQueryInput: ({ onHighlightChange, highlightQuery, sharedQuery, width, }: SharedQueryProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default SharedQueryInput;
|
|
10
|
+
//# sourceMappingURL=SharedQueryInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SharedQueryInput.d.ts","sourceRoot":"","sources":["../src/SharedQueryInput.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAGpD,UAAU,gBAAgB;IACxB,iBAAiB,EAAE,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;IAC5D,cAAc,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IACrD,WAAW,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC;IAC/C,KAAK,EAAE,MAAM,CAAC;CACf;AAYD,QAAA,MAAM,gBAAgB,+DAKnB,gBAAgB,4CA4FlB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { Maybe } from 'true-myth';
|
|
3
|
+
import { FitModes } from './fitMode/fitMode';
|
|
4
|
+
import type { ViewTypes } from './FlameGraph/FlameGraphComponent/viewTypes';
|
|
5
|
+
import type { FlamegraphRendererProps } from './FlameGraph/FlameGraphRenderer';
|
|
6
|
+
export interface ProfileHeaderProps {
|
|
7
|
+
view: ViewTypes;
|
|
8
|
+
enableChangingDisplay?: boolean;
|
|
9
|
+
flamegraphType: 'single' | 'double';
|
|
10
|
+
handleSearchChange: (s: string) => void;
|
|
11
|
+
highlightQuery: string;
|
|
12
|
+
ExportData?: ReactNode;
|
|
13
|
+
/** Whether the flamegraph is different from its original state */
|
|
14
|
+
isFlamegraphDirty: boolean;
|
|
15
|
+
reset: () => void;
|
|
16
|
+
updateFitMode: (f: FitModes) => void;
|
|
17
|
+
fitMode: FitModes;
|
|
18
|
+
updateView: (s: ViewTypes) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Refers to the node that has been selected in the flamegraph
|
|
21
|
+
*/
|
|
22
|
+
selectedNode: Maybe<{
|
|
23
|
+
i: number;
|
|
24
|
+
j: number;
|
|
25
|
+
}>;
|
|
26
|
+
onFocusOnSubtree: (i: number, j: number) => void;
|
|
27
|
+
sharedQuery?: FlamegraphRendererProps['sharedQuery'];
|
|
28
|
+
}
|
|
29
|
+
declare const Toolbar: React.MemoExoticComponent<({ view, handleSearchChange, highlightQuery, isFlamegraphDirty, reset, updateFitMode, fitMode, updateView, selectedNode, onFocusOnSubtree, flamegraphType, enableChangingDisplay, sharedQuery, ExportData, }: ProfileHeaderProps) => import("react/jsx-runtime").JSX.Element>;
|
|
30
|
+
export default Toolbar;
|
|
31
|
+
//# sourceMappingURL=Toolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../src/Toolbar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EACZ,SAAS,EAOV,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAQlC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAyF/E,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,SAAS,CAAC;IAChB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,cAAc,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACpC,kBAAkB,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,SAAS,CAAC;IAEvB,kEAAkE;IAClE,iBAAiB,EAAE,OAAO,CAAC;IAC3B,KAAK,EAAE,MAAM,IAAI,CAAC;IAElB,aAAa,EAAE,CAAC,CAAC,EAAE,QAAQ,KAAK,IAAI,CAAC;IACrC,OAAO,EAAE,QAAQ,CAAC;IAClB,UAAU,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;IAEnC;;OAEG;IACH,YAAY,EAAE,KAAK,CAAC;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9C,gBAAgB,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,WAAW,CAAC,EAAE,uBAAuB,CAAC,aAAa,CAAC,CAAC;CACtD;AASD,QAAA,MAAM,OAAO,0OAgBR,kBAAkB,6CAwItB,CAAC;AA4KF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { Maybe } from 'true-myth';
|
|
3
|
+
import { Units } from '../models/units';
|
|
4
|
+
import { FlamegraphPalette } from '../FlameGraph/FlameGraphComponent/colorPalette';
|
|
5
|
+
import { TooltipData } from './Tooltip';
|
|
6
|
+
type xyToDataSingle = (x: number, y: number) => Maybe<{
|
|
7
|
+
format: 'single';
|
|
8
|
+
name: string;
|
|
9
|
+
total: number;
|
|
10
|
+
}>;
|
|
11
|
+
type xyToDataDouble = (x: number, y: number) => Maybe<{
|
|
12
|
+
format: 'double';
|
|
13
|
+
name: string;
|
|
14
|
+
totalLeft: number;
|
|
15
|
+
totalRight: number;
|
|
16
|
+
barTotal: number;
|
|
17
|
+
}>;
|
|
18
|
+
export type FlamegraphTooltipProps = {
|
|
19
|
+
canvasRef: RefObject<HTMLCanvasElement>;
|
|
20
|
+
units: Units;
|
|
21
|
+
sampleRate: number;
|
|
22
|
+
numTicks: number;
|
|
23
|
+
leftTicks: number;
|
|
24
|
+
rightTicks: number;
|
|
25
|
+
palette: FlamegraphPalette;
|
|
26
|
+
} & ({
|
|
27
|
+
format: 'single';
|
|
28
|
+
xyToData: xyToDataSingle;
|
|
29
|
+
} | {
|
|
30
|
+
format: 'double';
|
|
31
|
+
leftTicks: number;
|
|
32
|
+
rightTicks: number;
|
|
33
|
+
xyToData: xyToDataDouble;
|
|
34
|
+
});
|
|
35
|
+
export default function FlamegraphTooltip(props: FlamegraphTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
interface Formatter {
|
|
37
|
+
format(samples: number, sampleRate: number): string;
|
|
38
|
+
}
|
|
39
|
+
export declare function formatDouble({ formatter, sampleRate, totalLeft, leftTicks, totalRight, rightTicks, title, units, }: {
|
|
40
|
+
formatter: Formatter;
|
|
41
|
+
sampleRate: number;
|
|
42
|
+
totalLeft: number;
|
|
43
|
+
leftTicks: number;
|
|
44
|
+
totalRight: number;
|
|
45
|
+
rightTicks: number;
|
|
46
|
+
title: string;
|
|
47
|
+
units: Units;
|
|
48
|
+
}, palette?: FlamegraphPalette): {
|
|
49
|
+
tooltipData: TooltipData[];
|
|
50
|
+
title: {
|
|
51
|
+
text: string;
|
|
52
|
+
diff: {
|
|
53
|
+
text: string;
|
|
54
|
+
color: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export {};
|
|
59
|
+
//# sourceMappingURL=FlamegraphTooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlamegraphTooltip.d.ts","sourceRoot":"","sources":["../../src/Tooltip/FlamegraphTooltip.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAe,SAAS,EAA4B,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAQxC,OAAO,EACL,iBAAiB,EAElB,MAAM,gDAAgD,CAAC;AAExD,OAAO,EAAW,WAAW,EAAE,MAAM,WAAW,CAAC;AAEjD,KAAK,cAAc,GAAG,CACpB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,KACN,KAAK,CAAC;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE9D,KAAK,cAAc,GAAG,CACpB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,KACN,KAAK,CAAC;IACT,MAAM,EAAE,QAAQ,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAE,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAExC,KAAK,EAAE,KAAK,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IAEnB,OAAO,EAAE,iBAAiB,CAAC;CAC5B,GAAG,CACA;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,QAAQ,EAAE,cAAc,CAAA;CAAE,GAC9C;IACE,MAAM,EAAE,QAAQ,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,cAAc,CAAC;CAC1B,CACJ,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CA+GtE;AAED,UAAU,SAAS;IACjB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;CACrD;AAED,wBAAgB,YAAY,CAC1B,EACE,SAAS,EACT,UAAU,EACV,SAAS,EACT,SAAS,EACT,UAAU,EACV,UAAU,EACV,KAAK,EACL,KAAK,GACN,EAAE;IACD,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,CAAC;CACd,EACD,OAAO,GAAE,iBAAkC,GAC1C;IACD,WAAW,EAAE,WAAW,EAAE,CAAC;IAC3B,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM,CAAC;YACb,KAAK,EAAE,MAAM,CAAC;SACf,CAAC;KACH,CAAC;CACH,CAuDA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LeftClickIcon.d.ts","sourceRoot":"","sources":["../../src/Tooltip/LeftClickIcon.tsx"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,aAAa,4CAepC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RightClickIcon.d.ts","sourceRoot":"","sources":["../../src/Tooltip/RightClickIcon.tsx"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,cAAc,4CAerC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { Units } from '../models/units';
|
|
3
|
+
import type { FlamegraphPalette } from '../FlameGraph/FlameGraphComponent/colorPalette';
|
|
4
|
+
export interface TableTooltipProps {
|
|
5
|
+
tableBodyRef: RefObject<HTMLTableSectionElement>;
|
|
6
|
+
numTicks: number;
|
|
7
|
+
sampleRate: number;
|
|
8
|
+
units: Units;
|
|
9
|
+
palette: FlamegraphPalette;
|
|
10
|
+
}
|
|
11
|
+
export default function TableTooltip({ numTicks, sampleRate, units, tableBodyRef, palette, }: TableTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=TableTooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableTooltip.d.ts","sourceRoot":"","sources":["../../src/Tooltip/TableTooltip.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAe,SAAS,EAA4B,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AAKxF,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,SAAS,CAAC,uBAAuB,CAAC,CAAC;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,QAAQ,EACR,UAAU,EACV,KAAK,EACL,YAAY,EACZ,OAAO,GACR,EAAE,iBAAiB,2CA0HnB"}
|