@grafana/flamegraph
Version:
Grafana flamegraph visualization component
27 lines (26 loc) • 1.5 kB
TypeScript
import { type GetExtraContextMenuButtonsFunction } from './FlameGraph/FlameGraphContextMenu';
import { type FlameGraphDataContainer } from './FlameGraph/dataTransform';
import { PaneView, type ViewMode } from './types';
export type FlameGraphPaneProps = {
paneView: PaneView;
dataContainer: FlameGraphDataContainer;
search: string;
matchedLabels: Set<string> | undefined;
onTableSymbolClick?: (symbol: string) => void;
onTextAlignSelected?: (align: string) => void;
onTableSort?: (sort: string) => void;
showFlameGraphOnly?: boolean;
disableCollapsing?: boolean;
getExtraContextMenuButtons?: GetExtraContextMenuButtonsFunction;
viewMode: ViewMode;
paneViewForContextMenu: PaneView;
setSearch: (search: string) => void;
resetKey?: number;
keepFocusOnDataChange?: boolean;
focusedItemIndexes?: number[];
setFocusedItemIndexes?: (itemIndexes: number[] | undefined) => void;
sharedSandwichItem?: string;
setSharedSandwichItem?: (item: string | undefined) => void;
};
declare const FlameGraphPane: ({ paneView, dataContainer, search, matchedLabels, onTableSymbolClick, onTextAlignSelected, onTableSort, showFlameGraphOnly, disableCollapsing, getExtraContextMenuButtons, viewMode, paneViewForContextMenu, setSearch, resetKey, keepFocusOnDataChange, focusedItemIndexes, setFocusedItemIndexes, sharedSandwichItem, setSharedSandwichItem, }: FlameGraphPaneProps) => import("react/jsx-runtime").JSX.Element;
export default FlameGraphPane;