Code Optimization - Performance Bottlenecks¶
Prompt 1: Identify Bottlenecks¶
You are analyzing a system for performance bottlenecks. Use the following details:
System Description: {system_description}
Metrics: {metrics}
Generate a list of potential bottlenecks and their causes. Include:
- High CPU usage
- Memory leaks
- Slow database queries
Prompt 2: Suggest Improvements¶
Based on the identified bottlenecks, suggest improvements to optimize performance. Include:
- Code refactoring
- Algorithm optimization
- Hardware upgrades