mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-28 22:14:52 -07:00
Enhance debug profiler to track tree framerate and dispatch errors (#10502)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2025 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import { isDevelopment } from '../../utils/installationInfo.js';
|
||||
import { CommandKind, type SlashCommand } from './types.js';
|
||||
|
||||
export const profileCommand: SlashCommand | null = isDevelopment
|
||||
? {
|
||||
name: 'profile',
|
||||
kind: CommandKind.BUILT_IN,
|
||||
description: 'Toggle the debug profile display',
|
||||
action: async (context) => {
|
||||
context.ui.toggleDebugProfiler();
|
||||
return {
|
||||
type: 'message',
|
||||
messageType: 'info',
|
||||
content: 'Toggled profile display.',
|
||||
};
|
||||
},
|
||||
}
|
||||
: null;
|
||||
@@ -66,6 +66,7 @@ export interface CommandContext {
|
||||
loadHistory: UseHistoryManagerReturn['loadHistory'];
|
||||
/** Toggles a special display mode. */
|
||||
toggleCorgiMode: () => void;
|
||||
toggleDebugProfiler: () => void;
|
||||
toggleVimEnabled: () => Promise<boolean>;
|
||||
setGeminiMdFileCount: (count: number) => void;
|
||||
reloadCommands: () => void;
|
||||
|
||||
Reference in New Issue
Block a user