Enhance debug profiler to track tree framerate and dispatch errors (#10502)

This commit is contained in:
Jacob Richman
2025-10-07 10:28:35 -07:00
committed by GitHub
parent 6bb99806f0
commit 34ba8be821
20 changed files with 487 additions and 27 deletions
+10
View File
@@ -139,6 +139,7 @@ export const AppContainer = (props: AppContainerProps) => {
);
const [isProcessing, setIsProcessing] = useState<boolean>(false);
const [embeddedShellFocused, setEmbeddedShellFocused] = useState(false);
const [showDebugProfiler, setShowDebugProfiler] = useState(false);
const [geminiMdFileCount, setGeminiMdFileCount] = useState<number>(
initializationResult.geminiMdFileCount,
@@ -175,6 +176,11 @@ export const AppContainer = (props: AppContainerProps) => {
[],
);
const toggleDebugProfiler = useCallback(
() => setShowDebugProfiler((prev) => !prev),
[],
);
// Helper to determine the effective model, considering the fallback state.
const getEffectiveModel = useCallback(() => {
if (config.isInFallbackMode()) {
@@ -460,6 +466,7 @@ Logging in with Google... Please restart Gemini CLI to continue.
},
setDebugMessage,
toggleCorgiMode: () => setCorgiMode((prev) => !prev),
toggleDebugProfiler,
dispatchExtensionStateUpdate,
addConfirmUpdateExtensionRequest,
}),
@@ -476,6 +483,7 @@ Logging in with Google... Please restart Gemini CLI to continue.
dispatchExtensionStateUpdate,
openPermissionsDialog,
addConfirmUpdateExtensionRequest,
toggleDebugProfiler,
],
);
@@ -1146,6 +1154,7 @@ Logging in with Google... Please restart Gemini CLI to continue.
extensionsUpdateState,
activePtyId,
embeddedShellFocused,
showDebugProfiler,
}),
[
isThemeDialogOpen,
@@ -1226,6 +1235,7 @@ Logging in with Google... Please restart Gemini CLI to continue.
activePtyId,
historyManager,
embeddedShellFocused,
showDebugProfiler,
],
);