detect_performance_issues
Profile an X++ object for N+1 queries, queries in loops, missing field lists, row-by-row inserts/updates, missing firstOnly. Returns compact issue table with line + fix. Only call when performance is explicitly the concern — for general quality use validate_best_practices. [!] Auto-fixing requires D365_CUSTOM_MODEL_PATH (custom code only).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| methodName | No | Optional: specific method to analyze. Analyzes all methods if not provided. | |
| objectName | Yes | Object name to analyze, e.g. 'SalesTable', 'CustInvoiceJour' |