This Visual Studio Code extension is designed to help you monitor the performance of your AI coding assistant, VAgent Code Assist. It provides real-time latency measurements, tracks memory usage of the extension host, and generates detailed reports with charts.
Features
The extension adds a status bar item to the bottom right of your VS Code window that displays the real-time latency of Code Assist's suggestions during manual typing.
Run the Code Assist Performance: Show Performance Report command to open a detailed Webview report. The report includes:
Latency Metrics: Average, minimum, and maximum suggestion latency.
Visual Analysis: Time-series charts plotting latency, Resident Set Size (RSS), and Heap Used memory.
Memory Analysis: A table of recorded memory usage over time, including a heuristic analysis for potential memory leaks.
Record and Playback
Use the record and playback feature to gather a consistent, reproducible set of performance data for reliable analysis.
Start Recording: Clears all previous data and begins a new session.
Playback Session: Automatically runs 5 controlled code generation events with a delay between each, recording metrics for every event.
Measure the performance of your Git sync operations to monitor network and merge efficiency.
Quickly access critical low-level tools for deeper diagnostics:
Open Process Explorer: Opens VS Code's built-in process manager to manually inspect the real-time CPU and Memory usage of the individual Gemini Code Assist process and the overall Extension Host to export the head dumps
Open Webview Profiler: Opens the Chromium DevTools specifically for the report's charts, useful for debugging performance issues in the reporting UI.
HTML Export
The Code Assist Performance: Export Report to HTML command allows you to save the entire generated report (including charts) as a single, shareable HTML file.
How to Use
- Start a Recording: Open the Command Palette and run
Code Assist Performance: Start Recording.
- Generate Data: Use one of the following methods to create performance data:
- Playback Session: Run the
Code Assist Performance: Playback Session command to automatically run a series of tests.
- Git Sync: Run the
Code Assist Performance: Git Sync command to measure repository sync performance (requires an initialized Git repo with a remote).
- Manual Typing: Simply type in an editor and observe the status bar.
- View and Export the Report: Run either
Code Assist Performance: Show Performance Report to view it in a webview or Code Assist Performance: Export Report to HTML to save it as a file.