Analyze code performance to identify bottlenecks, detect redundant computations and blocking operations, and provide optimization recommendations.
Initial release of performance-profiler: - 分析代码性能,识别常见性能瓶颈如循环、重复计算和同步阻塞 - 检测循环内数组操作、重复函数调用、同步阻塞和内存泄漏风险 - 提供复杂度计算和具体优化建议 - 支持多种触发词(如“性能分析”、“优化建议”等) - 输出问题类型、位置、建议、复杂度和评分