mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
FlameGraph: Add sandwich view (#70268)
This commit is contained in:
@@ -5,6 +5,8 @@ import '@pyroscope/flamegraph/dist/index.css';
|
||||
import { CoreApp, DataFrame, DataFrameView } from '@grafana/data';
|
||||
import { config } from '@grafana/runtime';
|
||||
|
||||
import FlameGraphContainerV2 from '../flamegraphV2/components/FlameGraphContainer';
|
||||
|
||||
import FlameGraphContainer from './FlameGraphContainer';
|
||||
|
||||
type Props = {
|
||||
@@ -22,7 +24,11 @@ export const FlameGraphTopWrapper = (props: Props) => {
|
||||
return <FlamegraphRenderer profile={profile} />;
|
||||
}
|
||||
|
||||
return <FlameGraphContainer data={props.data} app={props.app} />;
|
||||
return config.featureToggles.flameGraphV2 ? (
|
||||
<FlameGraphContainerV2 data={props.data} app={props.app} />
|
||||
) : (
|
||||
<FlameGraphContainer data={props.data} app={props.app} />
|
||||
);
|
||||
};
|
||||
|
||||
type Row = {
|
||||
|
||||
Reference in New Issue
Block a user