| 153 | } |
| 154 | |
| 155 | void MemoryPlanner::TrackAllocate(size_t alignment, size_t num_bytes) { |
| 156 | if (!is_stats_.load()) { |
| 157 | return; |
| 158 | } |
| 159 | for (auto lifetime_policy : lifetime_stats_polices_) { |
| 160 | lifetime_policy->TrackAllocate(alignment, num_bytes); |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | void MemoryPlanner::TrackDeallocate(Header* header) { |
| 165 | if (!is_stats_.load()) { |
no test coverage detected