feat: Add startup profiler to measure and record application initialization phases. (#13638)

This commit is contained in:
Kevin Ramdass
2025-12-01 10:06:13 -08:00
committed by GitHub
parent 613fb2fed6
commit db027dd95b
10 changed files with 591 additions and 1 deletions

View File

@@ -58,6 +58,7 @@ import {
enableMouseEvents,
disableLineWrapping,
shouldEnterAlternateScreen,
startupProfiler,
} from '@google/gemini-cli-core';
import { validateAuthMethod } from '../config/auth.js';
import process from 'node:process';
@@ -282,6 +283,7 @@ export const AppContainer = (props: AppContainerProps) => {
// handled by the global catch.
await config.initialize();
setConfigInitialized(true);
startupProfiler.flush(config);
})();
registerCleanup(async () => {
// Turn off mouse scroll.