Analyse a profiling trace for the real bottleneck
Read a full trace and find where the time is actually going.
What this prompt helps you do
The ranked cost centres with their share of time, the causes, and the optimisations worth making.
When to use it
A system is slow and optimisation is about to start on the code that feels slow.
What to prepare
The goal, relevant source material, constraints, examples, and the decision or action this should support.
How to get a strong result
Rank by total contribution, not by individual slowness; a fast function called constantly beats a slow one called rarely.
How to use this prompt
Replace each placeholder with accurate context. Paste the complete prompt into Claude, review the response critically, resolve important questions, and use it as a considered input to the next decision—not as an unchecked final answer.