Home
last modified time | relevance | path

Searched refs:allocations_ (Results 1 – 21 of 21) sorted by relevance

/external/compiler-rt/lib/asan/
Dasan_memory_profile.cc34 HeapProfile() : allocations_(1024) {} in HeapProfile()
39 for (uptr i = 0; i < allocations_.size(); i++) { in Insert()
40 if (allocations_[i].id == id) { in Insert()
41 allocations_[i].total_size += size; in Insert()
42 allocations_[i].count++; in Insert()
46 allocations_.push_back({id, size, 1}); in Insert()
50 InternalSort(&allocations_, allocations_.size(), in Print()
58 for (uptr i = 0; i < allocations_.size(); i++) { in Print()
59 auto &a = allocations_[i]; in Print()
72 InternalMmapVector<AllocationSite> allocations_; member in __asan::HeapProfile
/external/v8/src/wasm/
Dwasm-memory.cc172 allocations_.emplace(buffer_start, in RegisterAllocation()
181 auto find_result = allocations_.find(buffer_start); in ReleaseAllocation()
182 CHECK_NE(find_result, allocations_.end()); in ReleaseAllocation()
184 if (find_result != allocations_.end()) { in ReleaseAllocation()
196 allocations_.erase(find_result); in ReleaseAllocation()
205 const auto& result = allocations_.find(buffer_start); in FindAllocationData()
206 if (result != allocations_.end()) { in FindAllocationData()
214 return allocations_.find(buffer_start) != allocations_.end(); in IsWasmMemory()
219 const auto allocation = allocations_.find(buffer_start); in HasFullGuardRegions()
221 if (allocation == allocations_.end()) { in HasFullGuardRegions()
Dwasm-memory.h122 std::unordered_map<const void*, AllocationData> allocations_; variable
/external/tensorflow/tensorflow/compiler/xla/service/
Dshaped_buffer_test.cc53 if (!allocations_.empty()) { in ~TestAllocator()
68 allocations_.insert({device_ordinal, buf}); in Allocate()
78 auto it = allocations_.find({device_ordinal, mem.opaque()}); in Deallocate()
79 if (it == allocations_.end()) { in Deallocate()
83 allocations_.erase(it); in Deallocate()
91 std::set<std::pair</*device_ordinal*/ int64, void*>> allocations_; member in xla::__anone4c562340111::TestAllocator
Dbuffer_assignment.cc371 CHECK_LT(index, allocations_.size()); in GetAllocation()
372 return allocations_[index]; in GetAllocation()
496 BufferAllocation::Index index = allocations_.size(); in NewEmptyAllocation()
497 allocations_.emplace_back(index, size, color); in NewEmptyAllocation()
498 BufferAllocation* allocation = &allocations_.back(); in NewEmptyAllocation()
540 std::partition(allocations_.begin(), allocations_.end(), in CombineTempAllocations()
547 if (first_temp_it != allocations_.end()) { in CombineTempAllocations()
548 for (auto it = first_temp_it; it != allocations_.end(); ++it) { in CombineTempAllocations()
589 allocations_.erase(first_temp_it, allocations_.end()); in CombineTempAllocations()
591 allocations_.push_back(combined.second); in CombineTempAllocations()
[all …]
Dbuffer_assignment.h355 return allocations_; in Allocations()
512 std::vector<BufferAllocation> allocations_; variable
/external/tensorflow/tensorflow/core/framework/
Dtracking_allocator.cc48 allocations_.emplace_back(allocated_bytes, Env::Default()->NowMicros()); in AllocateRaw()
64 allocations_.emplace_back(allocated_bytes, Env::Default()->NowMicros()); in AllocateRaw()
69 allocations_.emplace_back(num_bytes, Env::Default()->NowMicros()); in AllocateRaw()
102 allocations_.emplace_back(-allocated_bytes, Env::Default()->NowMicros()); in DeallocateRaw()
179 allocations.swap(allocations_); in GetRecordsAndUnRef()
192 for (const AllocRecord& alloc : allocations_) { in GetCurrentRecords()
Dtracking_allocator.h117 gtl::InlinedVector<AllocRecord, 4> allocations_ GUARDED_BY(mu_);
/external/v8/src/profiler/
Dsampling-heap-profiler.cc98 node->allocations_[size]++; in SampleObject()
118 DCHECK_GT(node->allocations_[sample->size], 0); in OnWeakCallback()
119 node->allocations_[sample->size]--; in OnWeakCallback()
120 if (node->allocations_[sample->size] == 0) { in OnWeakCallback()
121 node->allocations_.erase(sample->size); in OnWeakCallback()
122 while (node->allocations_.empty() && node->children_.empty() && in OnWeakCallback()
244 allocations.reserve(node->allocations_.size()); in TranslateAllocationNode()
261 for (auto alloc : node->allocations_) { in TranslateAllocationNode()
Dsampling-heap-profiler.h109 std::map<size_t, unsigned int> allocations_; variable
/external/v8/src/heap/
Darray-buffer-collector.cc18 allocations_.push_back(std::move(allocations)); in AddGarbageAllocations()
24 allocations_) { in FreeAllocations()
29 allocations_.clear(); in FreeAllocations()
Darray-buffer-collector.h45 std::vector<std::vector<JSArrayBuffer::Allocation>> allocations_; variable
/external/perfetto/src/profiling/memory/
Dbookkeeping.cc52 auto it = allocations_.find(address); in RecordMalloc()
53 if (it != allocations_.end()) { in RecordMalloc()
79 allocations_.emplace(address, in RecordMalloc()
114 auto leaf_it = allocations_.find(address); in CommitOperation()
115 if (leaf_it == allocations_.end()) in CommitOperation()
123 allocations_.erase(leaf_it); in CommitOperation()
Dbookkeeping.h383 std::map<uint64_t /* allocation address */, Allocation> allocations_; variable
/external/webrtc/webrtc/p2p/base/
Dturnserver.cc127 for (AllocationMap::iterator it = allocations_.begin(); in ~TurnServer()
128 it != allocations_.end(); ++it) { in ~TurnServer()
431 AllocationMap::const_iterator it = allocations_.find(*conn); in FindAllocation()
432 return (it != allocations_.end()) ? it->second : NULL; in FindAllocation()
448 allocations_[*conn] = allocation; in CreateAllocation()
513 AllocationMap::iterator it = allocations_.find(*(allocation->conn())); in OnAllocationDestroyed()
514 if (it != allocations_.end()) in OnAllocationDestroyed()
515 allocations_.erase(it); in OnAllocationDestroyed()
Dturnserver.h175 const AllocationMap& allocations() const { return allocations_; } in allocations()
271 AllocationMap allocations_; variable
/external/tensorflow/tensorflow/core/common_runtime/
Dstep_stats_collector.cc183 allocations_.push_back(std::make_pair(memory, tracking_allocator)); in AddAllocation()
187 for (auto& alloc : allocations_) { in Finalize()
195 allocations_.clear(); in Finalize()
455 for (const auto& alloc : stats->allocations_) { in ReportAllocsOnResourceExhausted()
Dstep_stats_collector.h132 allocations_; variable
/external/tensorflow/tensorflow/core/profiler/internal/
Dtfprof_node.h188 return allocations_; in allocations()
218 for (const auto& r : allocations_) { in ToProto()
240 allocations_.clear(); in FromProto()
260 allocations_.push_back(r); in FromProto()
287 std::vector<AllocationRecord> allocations_; variable
Dtfprof_node.cc105 allocations_.push_back(alloc); in AddMemoryStats()
/external/protobuf/src/google/protobuf/
Ddescriptor.cc518 vector<void*> allocations_; // All other memory allocated in the pool. member in google::protobuf::DescriptorPool::Tables
529 allocations_before_checkpoint(tables->allocations_.size()), in CheckPoint()
656 for (int i = 0; i < allocations_.size(); i++) { in ~Tables()
657 operator delete(allocations_[i]); in ~Tables()
753 i < allocations_.size(); in RollbackToLastCheckpoint()
755 operator delete(allocations_[i]); in RollbackToLastCheckpoint()
761 allocations_.resize(checkpoint.allocations_before_checkpoint); in RollbackToLastCheckpoint()
1018 allocations_.push_back(result); in AllocateBytes()