UNPKG

agentsqripts

Version:

Comprehensive static code analysis toolkit for identifying technical debt, security vulnerabilities, performance issues, and code quality problems

32 lines (26 loc) 1.52 kB
# lib/performance Directory This directory contains the performance analysis system that achieves 100/100 performance score through intelligent bottleneck detection. ## Core Files: - **analyzePerformance.js**: Main performance analysis entry point - **performanceProjectAnalyzer.js**: Project-level performance assessment - **performanceFileAnalyzer.js**: File-level performance analysis - **performanceFileCollector.js**: Performance-relevant file collection ## Pattern Detection: - **O2PatternDetector.js**: O(n²) algorithmic complexity detection - **performancePatternDetector.js**: General performance anti-patterns - **syncIODetector.js**: Synchronous I/O detection in async contexts - **memoryLeakDetector.js**: Memory leak pattern identification ## Specialized Analysis: - **reactPerformanceAnalyzer.js**: React-specific performance issues - **vuePerformanceAnalyzer.js**: Vue.js performance optimization - **stringConcatenationAnalyzer.js**: String concatenation in loops - **domQueryOptimizer.js**: DOM query optimization analysis ## Assessment Systems: - **performanceScoreCalculator.js**: Overall performance scoring - **performanceGradeProvider.js**: Performance grade assignment - **performanceRecommendationGenerator.js**: Optimization recommendations ## Purpose: - Detect O(n²) patterns, sync I/O, and memory leaks - Provide framework-specific performance analysis (React, Vue) - Generate actionable optimization recommendations - Support context-aware analysis for different application types