Apex Performance Profiling

Use when diagnosing where Apex transactions spend CPU, heap, SOQL, or DML time using the Salesforce diagnostic toolchain: Apex Log Analyzer flame graphs in VS Code, Developer Console execution timeline, SOQL Query Plan tool, and Limits-class checkpoint instrumentation. Triggers: 'why is my Apex slow', 'flame graph Apex', 'profile Apex transaction', 'Query Plan tool', 'Apex Log Analyzer'. NOT for fixing specific CPU or heap patterns after the hotspot is found — use apex/apex-cpu-and-heap-optimization. NOT for debug log setup or trace flag mechanics — use apex/debug-logs-and-developer-console. NOT for SOQL query rewriting — use data/soql-query-optimization. NOT for runtime Limits.get* guard clauses in production code — use apex/apex-limits-monitoring.

PranavNagrecha a4476f1 7 files · 42.0 KB Updated 15 repo stars

File contents

PranavNagrecha/AwesomeSalesforceSkills/tree/main/skills/apex/apex-performance-profiling commit a4476f1b65

Frequently asked questions

npx skillmds add pranavnagrecha/apex-performance-profiling