Find Performance Bottlenecks
find_performance_bottlenecksAnalyze Apex debug logs to detect performance bottlenecks, high CPU time, and risks of hitting governor limits.
Instructions
Check whether an Apex log transaction is approaching governor limits (flags usage above 80%). Analyzes CPU time, SOQL/DML limits, query rows, and method execution patterns by namespace. Best for checking if a transaction is at risk of hitting governor limits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logFilePath | Yes | Absolute path to the Apex debug log file (.log) | |
| analysisType | No | Type of analysis: "cpu" checks CPU time governor limit, "database" checks SOQL query/DML statement/query row limits, "methods" groups methods by namespace with duration totals, "all" runs all three (default) |