/external/compiler-rt/lib/asan/ |
D | asan_memory_profile.cc | 34 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/llvm-project/compiler-rt/lib/asan/ |
D | asan_memory_profile.cpp | 33 HeapProfile() { allocations_.reserve(1024); } in HeapProfile() 51 Sort(allocations_.data(), allocations_.size(), in Print() 65 for (uptr i = 0; i < Min(allocations_.size(), max_number_of_contexts); in Print() 67 auto &a = allocations_[i]; in Print() 83 InternalMmapVector<AllocationSite> allocations_; member in __asan::HeapProfile 87 for (uptr i = 0; i < allocations_.size(); i++) { in Insert() 88 if (allocations_[i].id == id) { in Insert() 89 allocations_[i].total_size += size; in Insert() 90 allocations_[i].count++; in Insert() 94 allocations_.push_back({id, size, 1}); in Insert()
|
/external/tensorflow/tensorflow/core/framework/ |
D | tracking_allocator.cc | 48 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()
|
D | tracking_allocator.h | 116 gtl::InlinedVector<AllocRecord, 4> allocations_ TF_GUARDED_BY(mu_);
|
/external/perfetto/src/profiling/memory/ |
D | bookkeeping.cc | 55 auto it = allocations_.find(address); in RecordMalloc() 56 if (it != allocations_.end()) { in RecordMalloc() 83 allocations_.emplace(address, in RecordMalloc() 119 auto leaf_it = allocations_.find(address); in CommitOperation() 120 if (leaf_it == allocations_.end()) in CommitOperation() 128 allocations_.erase(leaf_it); in CommitOperation()
|
D | bookkeeping.h | 181 for (const auto& addr_and_allocation : allocations_) { in GetAllocations() 339 std::map<uint64_t /* allocation address */, Allocation> allocations_; variable
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | shaped_buffer_test.cc | 51 if (!allocations_.empty()) { in ~TestAllocator() 67 allocations_.insert({device_ordinal, buf}); in Allocate() 77 auto it = allocations_.find({device_ordinal, mem.opaque()}); in Deallocate() 78 if (it == allocations_.end()) { in Deallocate() 82 allocations_.erase(it); in Deallocate() 94 std::set<std::pair</*device_ordinal*/ int64, void*>> allocations_; member in xla::__anon216fc2fb0111::TestAllocator
|
D | buffer_assignment.cc | 433 CHECK_LT(index, allocations_.size()); in GetAllocation() 434 return allocations_[index]; in GetAllocation() 558 BufferAllocation::Index index = allocations_.size(); in NewEmptyAllocation() 559 allocations_.emplace_back(index, size, color); in NewEmptyAllocation() 560 BufferAllocation* allocation = &allocations_.back(); in NewEmptyAllocation() 619 std::partition(allocations_.begin(), allocations_.end(), in CombineTempAllocations() 626 if (first_temp_it != allocations_.end()) { in CombineTempAllocations() 627 for (auto it = first_temp_it; it != allocations_.end(); ++it) { in CombineTempAllocations() 681 allocations_.erase(first_temp_it, allocations_.end()); in CombineTempAllocations() 684 allocations_.push_back(std::move(combined)); in CombineTempAllocations() [all …]
|
D | buffer_assignment.h | 359 return allocations_; in Allocations() 367 return std::move(allocations_); in ReleaseAllocations() 554 std::vector<BufferAllocation> allocations_; variable
|
D | memory_space_assignment.h | 841 AllocationSequence allocations_; variable 953 allocations_(allocations), in AlternateMemoryBestFitHeap() 997 return allocations_; in allocations() 1322 MemorySpaceAssignment::AllocationSequence* allocations_; variable
|
D | memory_space_assignment.cc | 1607 allocations_->push_back(std::move(allocation)); in AllocateCrossProgramPrefetchBuffer() 1613 for (const auto& allocation : *allocations_) { in AllocateCrossProgramPrefetchBuffer() 1889 allocations_->push_back(std::move(allocation)); in FinalizeAllocations() 1891 allocations_->back().get(); in FinalizeAllocations() 2693 &allocations_, options_, alias_analysis, hlo_live_range); in FindAllocationSequence() 2920 for (auto& allocation : allocations_) { in Process() 3135 for (auto& allocation : allocations_) { in ScheduleAsynchronousCopies()
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
D | ir_emitter_context.h | 79 return allocations_; in allocations() 84 allocations_ = allocations; in set_allocations() 90 absl::Span<const BufferAllocation> allocations_; variable
|
D | gpu_executable.cc | 67 allocations_(std::move(params.allocations)), in GpuExecutable() 383 const int64 num_buffers = allocations_.size(); in GenerateBufferAllocations() 387 const BufferAllocation& allocation = allocations_[i]; in GenerateBufferAllocations() 464 &allocations_[output_info.allocation_index]; in ExecuteAsyncOnStreamImpl() 558 buffer_allocations.TearDown(buffers_in_result, allocations_)); in ExecuteAsyncOnStreamImpl() 574 for (BufferAllocation::Index i = 0; i < allocations_.size(); ++i) { in SizeOfGeneratedCodeInBytes() 575 const BufferAllocation& allocation = allocations_[i]; in SizeOfGeneratedCodeInBytes()
|
D | gpu_executable.h | 131 return allocations_; in GetAllocations() 202 const std::vector<BufferAllocation> allocations_; variable
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | step_stats_collector.cc | 181 allocations_.push_back(std::make_pair(memory, tracking_allocator)); in AddAllocation() 185 for (auto& alloc : allocations_) { in Finalize() 193 allocations_.clear(); in Finalize() 453 for (const auto& alloc : stats->allocations_) { in ReportAllocsOnResourceExhausted()
|
D | step_stats_collector.h | 127 allocations_; variable
|
/external/webrtc/p2p/base/ |
D | turn_server.cc | 457 AllocationMap::const_iterator it = allocations_.find(*conn); in FindAllocation() 458 return (it != allocations_.end()) ? it->second.get() : nullptr; in FindAllocation() 477 allocations_[*conn].reset(allocation); in CreateAllocation() 558 AllocationMap::iterator it = allocations_.find(*(allocation->conn())); in OnAllocationDestroyed() 559 if (it != allocations_.end()) { in OnAllocationDestroyed() 561 allocations_.erase(it); in OnAllocationDestroyed()
|
D | turn_server.h | 206 return allocations_; in allocations() 339 AllocationMap allocations_; variable
|
/external/tensorflow/tensorflow/core/profiler/internal/ |
D | tfprof_node.h | 187 return allocations_; in allocations() 217 for (const auto& r : allocations_) { in ToProto() 239 allocations_.clear(); in FromProto() 259 allocations_.push_back(r); in FromProto() 286 std::vector<AllocationRecord> allocations_; variable
|
D | tfprof_node.cc | 104 allocations_.push_back(alloc); in AddMemoryStats()
|
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/ |
D | mhlo_to_lhlo_with_xla.h | 230 llvm::DenseMap<const xla::BufferAllocation*, Value> allocations_; variable
|
D | mhlo_to_lhlo_with_xla.cc | 1354 Value alloc = allocations_[slice.allocation()]; in GetOrCreateArrayView() 1496 allocations_[alloc] = block->getArguments().back(); in Initialize() 1504 allocations_[alloc] = block->getArguments().back(); in Initialize()
|
/external/protobuf/src/google/protobuf/ |
D | descriptor.cc | 658 std::vector<void*> allocations_; // All other memory allocated in the pool. member in google::protobuf::DescriptorPool::Tables 670 allocations_before_checkpoint(tables->allocations_.size()), in CheckPoint() 812 for (int i = 0; i < allocations_.size(); i++) { in ~Tables() 813 operator delete(allocations_[i]); in ~Tables() 891 i < allocations_.size(); i++) { in RollbackToLastCheckpoint() 892 operator delete(allocations_[i]); in RollbackToLastCheckpoint() 899 allocations_.resize(checkpoint.allocations_before_checkpoint); in RollbackToLastCheckpoint() 1234 allocations_.push_back(result); in AllocateBytes()
|