本页总览perf性能分析(perf/valgrind) Linux perf(采样): perf record -g -- ./appperf report Valgrind Callgrind(调用图): valgrind --tool=callgrind ./appkcachegrind callgrind.out.* 注意:采样对优化敏感;插桩工具开销大,适合离线分析与热点确认。