| 76 | } |
| 77 | |
| 78 | void GPUMemTracker::SetUsed(std::string const & tag, uint32_t id, uint32_t size) |
| 79 | { |
| 80 | std::lock_guard<std::mutex> g(m_mutex); |
| 81 | TAlocUsedMem & node = m_memTracker[make_pair(tag, id)]; |
| 82 | node.second = size; |
| 83 | ASSERT_LESS_OR_EQUAL(node.second, node.first, ("Can't use more than allocated")); |
| 84 | } |
| 85 | |
| 86 | void GPUMemTracker::RemoveDeallocated(std::string const & tag, uint32_t id) |
| 87 | { |
no outgoing calls
no test coverage detected