2026-03-26 16:45:24 +08:00
|
|
|
# MemoryManager::DumpMemoryLeaks
|
|
|
|
|
|
2026-03-26 18:02:29 +08:00
|
|
|
输出内存泄漏报告。
|
2026-03-26 16:45:24 +08:00
|
|
|
|
|
|
|
|
```cpp
|
|
|
|
|
void DumpMemoryLeaks();
|
|
|
|
|
```
|
|
|
|
|
|
2026-03-26 18:02:29 +08:00
|
|
|
## 行为说明
|
2026-03-26 16:45:24 +08:00
|
|
|
|
2026-03-26 18:02:29 +08:00
|
|
|
当前实现还只是占位接口,实际只向标准输出打印一行标题:
|
2026-03-26 16:45:24 +08:00
|
|
|
|
2026-03-26 18:02:29 +08:00
|
|
|
```cpp
|
|
|
|
|
Memory Leak Report:
|
|
|
|
|
```
|
2026-03-26 16:45:24 +08:00
|
|
|
|
2026-03-26 18:02:29 +08:00
|
|
|
它不会遍历任何分配记录,也不会列出真实泄漏条目。
|
2026-03-26 16:45:24 +08:00
|
|
|
|
2026-03-26 18:02:29 +08:00
|
|
|
## 返回值
|
2026-03-26 16:45:24 +08:00
|
|
|
|
2026-03-26 18:02:29 +08:00
|
|
|
- 无。
|
2026-03-26 16:45:24 +08:00
|
|
|
|
|
|
|
|
## 相关文档
|
|
|
|
|
|
2026-03-26 18:02:29 +08:00
|
|
|
- [返回类型总览](MemoryManager.md)
|
|
|
|
|
- [GenerateMemoryReport](GenerateMemoryReport.md)
|