| 155 | } |
| 156 | |
| 157 | void SetHandler(MemoryDebugHandler handler) { |
| 158 | std::lock_guard<std::mutex> lock(mutex_); |
| 159 | handler_ = std::move(handler); |
| 160 | } |
| 161 | |
| 162 | static DebugState* Instance() { |
| 163 | // Instance is constructed on-demand. If it was a global static variable, |