GitLab Well Architected
Cookbook navigation
Prompts / Investigate Performance Bottleneck

Investigate Performance Bottleneck

DebuggingDeveloperOptimizationPerformanceMonitorBeginner

Pinpoint performance bottlenecks through profiling analysis. Know exactly what to optimize.

For GitLab Duo

prompt

Performance issue:

Slow operation: [DESCRIBE WHAT'S SLOW]
Metrics: [PASTE PROFILING DATA]
Code: [PASTE RELEVANT CODE]

Help me:
1. Identify the bottleneck
2. Explain why it's slow
3. Suggest optimizations
4. Estimate improvement potential

Use the prompt

Provide measurements from the slow operation and describe the workload that produced them. Compare the proposed fix under the same conditions before deciding whether it helped.