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