Home
last modified time | relevance | path

Searched refs:usages_ (Results 1 – 2 of 2) sorted by relevance

/external/libchrome/base/memory/
Dshared_memory_tracker.cc59 DCHECK(usages_.find(shared_memory.memory()) == usages_.end()); in IncrementMemoryUsage()
60 usages_.emplace(shared_memory.memory(), UsageInfo(shared_memory.mapped_size(), in IncrementMemoryUsage()
67 DCHECK(usages_.find(mapping.raw_memory_ptr()) == usages_.end()); in IncrementMemoryUsage()
68 usages_.emplace(mapping.raw_memory_ptr(), in IncrementMemoryUsage()
75 DCHECK(usages_.find(shared_memory.memory()) != usages_.end()); in DecrementMemoryUsage()
76 usages_.erase(shared_memory.memory()); in DecrementMemoryUsage()
82 DCHECK(usages_.find(mapping.raw_memory_ptr()) != usages_.end()); in DecrementMemoryUsage()
83 usages_.erase(mapping.raw_memory_ptr()); in DecrementMemoryUsage()
96 for (const auto& usage : usages_) { in OnMemoryDump()
Dshared_memory_tracker.h83 std::map<void*, UsageInfo> usages_; variable