Files
gemini-cli/packages/cli/src/ui/commands/profileCommand.ts
2025-12-01 17:29:03 +00:00

26 lines
659 B
TypeScript

/**
* @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',
autoExecute: true,
action: async (context) => {
context.ui.toggleDebugProfiler();
return {
type: 'message',
messageType: 'info',
content: 'Toggled profile display.',
};
},
}
: null;