diff --git a/desktop/plugins/public/ui-debugger/components/PerfStats.tsx b/desktop/plugins/public/ui-debugger/components/PerfStats.tsx index 43c39f7108d..f8b101a030c 100644 --- a/desktop/plugins/public/ui-debugger/components/PerfStats.tsx +++ b/desktop/plugins/public/ui-debugger/components/PerfStats.tsx @@ -12,6 +12,7 @@ import { DynamicPerformanceStatsEvent, UIState, Id, + UINode, } from '../types'; import React, {useMemo} from 'react'; import { @@ -25,6 +26,7 @@ import { export function PerfStats(props: { uiState: UIState; + nodes: Map; rootId?: Id; events: DataSource; }) { @@ -68,6 +70,8 @@ export function PerfStats(props: { data={{ ...Object.fromEntries(uiStateValues), rootId: props.rootId, + nodesCount: props.nodes.size, + rootNode: props.nodes.get(props.rootId ?? 'noroot'), }}> diff --git a/desktop/plugins/public/ui-debugger/components/main.tsx b/desktop/plugins/public/ui-debugger/components/main.tsx index 41029c25d41..5b3604d1949 100644 --- a/desktop/plugins/public/ui-debugger/components/main.tsx +++ b/desktop/plugins/public/ui-debugger/components/main.tsx @@ -50,6 +50,16 @@ export function Component() { setBottomPanelComponent(undefined); }; + if (showPerfStats) + return ( + + ); + if (streamState.state === 'FatalError') { return ( - ); - if (rootId == null || streamState.state === 'RetryingAfterError') { return (