164-java-profiling-verify
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseJava Profiling Workflow / Step 4 / Verify results
Java性能分析工作流 / 步骤4 / 验证结果
Verify performance optimizations through rigorous before/after comparison: ensure baseline and post-refactoring profiling data use identical test conditions, generate post-refactoring reports, compare metrics (memory, CPU, GC, threading), perform side-by-side flamegraph analysis, document findings in profiling-comparison-analysis-YYYYMMDD.md and profiling-final-results-YYYYMMDD.md, and validate success criteria.
What is covered in this Skill?
- Pre-refactoring baseline: run profiler with same load before changes
- Post-refactoring: generate new reports with identical test conditions
- Comparison: memory (leaks, allocations, GC), CPU (hotspots, contention), visual flamegraph comparison
- Documentation: profiler/docs/profiling-comparison-analysis-YYYYMMDD.md, profiler/docs/profiling-final-results-YYYYMMDD.md
- File naming: baseline/after suffixes, timestamp-based organization
- Validation: verify reports exist, compare metrics, identify regressions
Scope: Identical test conditions are critical. Document test scenarios. Validate application runs with refactored code before generating new reports.
通过严谨的前后对比来验证性能优化:确保基准线和重构后的性能分析数据使用完全相同的测试条件,生成重构后的报告,对比各项指标(内存、CPU、GC、线程),执行并排火焰图分析,将发现记录在profiling-comparison-analysis-YYYYMMDD.md和profiling-final-results-YYYYMMDD.md文档中,并验证成功标准。
本Skill涵盖哪些内容?
- 重构前基准线:在代码变更前,使用相同负载运行性能分析器
- 重构后:在完全相同的测试条件下生成新报告
- 对比:内存(泄漏、分配、GC)、CPU(热点、竞争)、可视化火焰图对比
- 文档:profiler/docs/profiling-comparison-analysis-YYYYMMDD.md、profiler/docs/profiling-final-results-YYYYMMDD.md
- 文件命名:使用baseline/after后缀,基于时间戳进行组织
- 验证:确认报告存在、对比指标、识别性能回归
范围: 相同的测试条件至关重要。需记录测试场景。在生成新报告前,先验证重构后的代码能正常运行应用。
Constraints
约束条件
Use identical test conditions between baseline and post-refactoring. Verify both report sets are complete. Document test scenarios.
- CONSISTENCY: Use identical test conditions and load patterns for baseline and post-refactoring
- VALIDATE: Ensure both baseline and post-refactoring reports exist and are non-empty before comparison
- DOCUMENT: Record test scenarios and load patterns for reproduction
- BEFORE APPLYING: Read the reference for comparison templates and validation steps
基准线和重构后的测试需使用完全相同的条件。验证两组报告均完整。记录测试场景。
- 一致性:基准线和重构后使用完全相同的测试条件和负载模式
- 验证:在对比前,确保基准线和重构后的报告均存在且非空
- 文档记录:记录测试场景和负载模式以便复现
- 使用前:阅读对比模板和验证步骤的参考文档
When to use this skill
何时使用本Skill
- Verify performance fix
- Verify the performance
- Verify the memory
- Verify the threading
- Verify the GC
- Verify the profiling
- Verify the profiling
- Performance benchmark
- 验证性能修复效果
- 验证性能表现
- 验证内存状态
- 验证线程情况
- 验证GC性能
- 验证性能分析结果
- 性能基准测试
Reference
参考资料
For detailed guidance, examples, and constraints, see references/164-java-profiling-verify.md.
如需详细指南、示例和约束条件,请查看references/164-java-profiling-verify.md。