feat(cli): add /perf performance monitoring dashboard#22485
feat(cli): add /perf performance monitoring dashboard#224851nonlyasta wants to merge 7 commits intogoogle-gemini:mainfrom
Conversation
Implemented a standalone /perf command with dedicated subcommands: - /perf overview: session stats and memory summary - /perf memory: detailed heap/RSS utilization - /perf tools: execution timing and frequency - /perf api: model latency and token breakdown - /perf export: session metrics export to JSON Includes new Sink-based UI components and type definitions. Relates to google-gemini#21142 Relates to google-gemini#22403
5545490 to
fb0a48d
Compare
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a new performance monitoring dashboard accessible through the /perf command in the CLI. This feature provides users with detailed insights into various aspects of the application's performance, including session duration, memory usage, tool execution times, and API latency. By offering a comprehensive view of these metrics, the dashboard aims to empower users to identify bottlenecks and optimize their CLI experience, aligning with the goal of improving overall application efficiency. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a valuable performance monitoring dashboard accessible via the /perf command. The implementation is well-structured, with new components for displaying performance metrics and a new command to gather and present the data.
My review includes two main points for improvement, both in packages/cli/src/ui/commands/perfCommand.ts:
- Refactoring duplicated logic in the command actions to improve maintainability.
- Optimizing data aggregation to be more efficient by reducing redundant loops.
These changes will make the new feature more robust and easier to maintain in the future. Overall, this is a great addition to the CLI.
|
Hi there! Thank you for your interest in contributing to Gemini CLI. To ensure we maintain high code quality and focus on our prioritized roadmap, we have updated our contribution policy (see Discussion #17383). We only guarantee review and consideration of pull requests for issues that are explicitly labeled as 'help wanted'. All other community pull requests are subject to closure after 14 days if they do not align with our current focus areas. For this reason, we strongly recommend that contributors only submit pull requests against issues explicitly labeled as 'help-wanted'. This pull request is being closed as it has been open for 14 days without a 'help wanted' designation. We encourage you to find and contribute to existing 'help wanted' issues in our backlog! Thank you for your understanding and for being part of our community! |
|
@1nonlyasta, apologies for the bot closing this PR! We have reopened it. Please sync your branch to the latest |
|
Closing this PR as we have re-evaluated the feature request (#22483). Because it touches core telemetry and API usage statistics, it requires internal maintainer alignment and is not currently open for community contribution. Thank you for your efforts and understanding! |
Summary
Add an in-CLI performance monitoring dashboard accessible via
/perfcommand.What's included:
/perf— overview dashboard (timing, memory, session stats)/perf memory— detailed heap/RSS breakdown with utilization bars/perf tools— per-tool execution table (calls, avg latency, success rate)/perf api— per-model API latency and token usage/perf export— JSON performance reportFiles changed:
Context
This aligns with GSoC 2026 Project Idea #5: Performance Monitoring and Optimization Dashboard.
Relates to #21142
Relates to #22403