| 153 | |
| 154 | namespace { |
| 155 | struct MemUsage |
| 156 | { |
| 157 | std::string report; |
| 158 | size_t total_mem; |
| 159 | |
| 160 | MemUsage(const std::string& r, size_t m) : report(r), total_mem(m) {} |
| 161 | bool operator<(const MemUsage& other) { return total_mem < other.total_mem; } |
| 162 | }; |
| 163 | } // namespace |
| 164 | |
| 165 | void memory_profiler::report_mem_usage(model* m) |