class MemoryTracker { private: std::atomic amount {0}; std::atomic peak {0}; std::atomic hard_limit {0}; std::atomic profiler_limit {0}; /// 以下用于故障注入测试 double fault_probability = 0; double sample_probability = 0; /// 父级 std::atomic parent {}; ……