identify_performance_bottlenecks
Identify potential performance bottlenecks by analyzing code patterns and complexity, helping you prioritize optimization efforts and plan performance improvements.
Instructions
Identify potential performance bottlenecks by analyzing code patterns and complexity.
Use this tool when you need to:
Find likely performance issues before they become problems
Prioritize optimization efforts on high-impact code
Understand which parts of the codebase might be slow
Plan performance improvements based on actual usage patterns
Perfect for performance optimization planning, code reviews focused on performance, or debugging existing performance issues.
Args: repo_path: Repository path (absolute) working_directory: Working directory (absolute path) focus_areas: Specific performance areas to focus on (default: common bottlenecks) custom_patterns: Custom regex patterns for bottlenecks (overrides defaults) include_usage_frequency: Whether to weight results by code usage frequency days_back: Days of git history to analyze for frequently changed performance code
Returns: Performance bottleneck analysis with optimization recommendations
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days_back | No | ||
| repo_path | Yes | ||
| working_directory | Yes | ||
| bottleneck_patterns | Yes | ||
| include_usage_frequency | No |