/external/webrtc/modules/video_coding/codecs/vp9/ |
D | svc_rate_allocator_unittest.cc | 59 VideoBitrateAllocation allocation = in TEST() local 62 EXPECT_GT(allocation.GetSpatialLayerSum(0), 0u); in TEST() 63 EXPECT_EQ(allocation.GetSpatialLayerSum(1), 0u); in TEST() 70 VideoBitrateAllocation allocation = in TEST() local 73 EXPECT_GT(allocation.GetSpatialLayerSum(0), 0u); in TEST() 74 EXPECT_GT(allocation.GetSpatialLayerSum(1), 0u); in TEST() 75 EXPECT_EQ(allocation.GetSpatialLayerSum(2), 0u); in TEST() 82 VideoBitrateAllocation allocation = in TEST() local 85 EXPECT_GT(allocation.GetSpatialLayerSum(0), 0u); in TEST() 86 EXPECT_GT(allocation.GetSpatialLayerSum(1), 0u); in TEST() [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/ |
D | DefaultAllocator.java | 33 private final Allocation[] singleAllocationReleaseHolder; 38 private Allocation[] availableAllocations; 41 * Constructs an instance without creating any {@link Allocation}s up front. 45 * @param individualAllocationSize The length of each individual {@link Allocation}. 52 * Constructs an instance with some {@link Allocation}s created up front. 54 * Note: {@link Allocation}s created up front will never be discarded by {@link #trim()}. 58 * @param individualAllocationSize The length of each individual {@link Allocation}. 68 this.availableAllocations = new Allocation[initialAllocationCount + AVAILABLE_EXTRA_CAPACITY]; in DefaultAllocator() 73 availableAllocations[i] = new Allocation(initialAllocationBlock, allocationOffset); in DefaultAllocator() 78 singleAllocationReleaseHolder = new Allocation[1]; in DefaultAllocator() [all …]
|
D | Allocator.java | 24 * Obtain an {@link Allocation}. 26 * When the caller has finished with the {@link Allocation}, it should be returned by calling 27 * {@link #release(Allocation)}. 29 * @return The {@link Allocation}. 31 Allocation allocate(); in allocate() 34 * Releases an {@link Allocation} back to the allocator. 36 * @param allocation The {@link Allocation} being released. 38 void release(Allocation allocation); in release() argument 41 * Releases an array of {@link Allocation}s back to the allocator. 43 * @param allocations The array of {@link Allocation}s being released. [all …]
|
/external/angle/src/common/ |
D | PoolAlloc_unittest.cpp | 23 void *allocation = poolAllocator.allocate(numBytes); in TEST() local 25 EXPECT_NE(nullptr, allocation); in TEST() 26 // Write to allocation to check later in TEST() 27 uint32_t *writePtr = static_cast<uint32_t *>(allocation); in TEST() 29 // Test push and creating a new allocation in TEST() 31 allocation = poolAllocator.allocate(numBytes); in TEST() 32 EXPECT_NE(nullptr, allocation); in TEST() 33 // Make an allocation that spans multiple pages in TEST() 34 allocation = poolAllocator.allocate(10 * 1024); in TEST() 37 // Verify first allocation still has data in TEST() [all …]
|
D | PoolAlloc.h | 7 // Defines the class interface for PoolAllocator and the Allocation 26 // * Makes each individual allocation much more efficient; the 27 // typical allocation is trivial. 46 // allocation. If we aren't using guard blocks, these 50 class Allocation 53 Allocation(size_t size, unsigned char *mem, Allocation *prev = 0) 94 unsigned char *mMem; // beginning of our allocation (pts to header) 95 Allocation *mPrevAlloc; // prior allocation in the chain 102 static constexpr size_t HeaderSize() { return sizeof(Allocation); } in HeaderSize() 115 // of each allocation obtained from the underlying OS. Multi-page allocations [all …]
|
/external/tensorflow/tensorflow/compiler/xrt/ |
D | xrt_state.h | 48 // A reference-counted wrapper around a buffer allocation. This maps an XLA 53 XRTBufferAllocation(const se::DeviceMemoryBase& allocation, 58 const se::DeviceMemoryBase& allocation(); 86 XRTTupleAllocation** allocation); 94 XRTTupleAllocation** allocation); 99 XRTTupleAllocation** allocation); 109 XRTTupleAllocation** allocation); 113 // sub-shape will be shared between parent and the returned allocation, 118 XRTTupleAllocation** allocation, 122 // contains an allocation and indicates whether or not the allocation's handle [all …]
|
D | xrt_state.cc | 119 XRTBufferAllocation::XRTBufferAllocation(const se::DeviceMemoryBase& allocation, in XRTBufferAllocation() argument 122 : allocation_(allocation), in XRTBufferAllocation() 128 LOG(INFO) << "XRT Allocation Stats: device=" << device_ordinal_ in XRTBufferAllocation() 143 const se::DeviceMemoryBase& XRTBufferAllocation::allocation() { in allocation() function in tensorflow::XRTBufferAllocation 172 XRTTupleAllocation** allocation) { in CreateAndTransfer() argument 187 *allocation = new XRTTupleAllocation( in CreateAndTransfer() 190 (*allocation) in CreateAndTransfer() 193 (*allocation)->SetDeviceMemorySize(); in CreateAndTransfer() 200 XRTTupleAllocation** allocation) { in CreateUninitialized() argument 210 *allocation = new XRTTupleAllocation( in CreateUninitialized() [all …]
|
/external/deqp/external/vulkancts/framework/vulkan/ |
D | vkMemUtil.hpp | 36 * \brief Memory allocation interface 38 * Allocation represents block of device memory and is allocated by 42 * Allocation doesn't necessarily correspond to a whole VkDeviceMemory, but 43 * instead it may represent sub-allocation. Thus whenever VkDeviceMemory 44 * (getMemory()) managed by Allocation is passed to Vulkan API calls, 49 * pointer, i.e. the pointer is already adjusted in case of sub-allocation. 51 * Memory mappings are managed solely by Allocation, i.e. unmapping or 52 * re-mapping VkDeviceMemory owned by Allocation is not allowed. 54 class Allocation class 57 virtual ~Allocation (void); [all …]
|
/external/perfetto/docs/design-docs/ |
D | heapprofd-sampling.md | 9 allocation done by a program, so the [Android Heap Profiler] employs a sampling 17 taking every nth byte, is that there may be regular allocation patterns in the 29 1. We look at an allocation 31 2. If the size of the allocation is large enough that there’s a greater than 99% 33 allocation directly. This is a performance optimization. 35 3. If the size of the allocation is smaller, then we compute the number of times 39 sample. When an allocation happens, we subtract its size from the arrival 44 distribution is the number of samples the allocation should count as. 46 * We multiply the number of samples we drew within the allocation by the 47 sampling rate to get an estimate of the size of the allocation [all …]
|
/external/llvm-project/clang/test/SemaCXX/ |
D | unavailable_aligned_allocation.cpp | 3 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.13.0 -fexceptions -faligned-allocation -faligned-a… 12 // RUN: %clang_cc1 -triple s390x-none-zos -fexceptions -faligned-allocation -faligned-alloc-unavail… 61 // No error here since it is not calling a replaceable allocation function. in testOveraligned() 68 // expected-error-re@-16 {{aligned allocation function of type 'void *(unsigned long, enum std::ali… 69 // expected-note@-17 {{if you supply your own aligned allocation functions}} 71 // expected-note@-19 {{if you supply your own aligned allocation functions}} 73 // expected-error-re@-20 {{aligned allocation function of type 'void *(unsigned long, enum std::ali… 74 // expected-note@-21 {{if you supply your own aligned allocation functions}} 76 // expected-note@-23 {{if you supply your own aligned allocation functions}} 79 // expected-note@-25 {{if you supply your own aligned allocation functions}} [all …]
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | buffer_assignment.cc | 130 // Create a worklist of computations paired with whether the allocation must in GatherComputationsByAllocationType() 164 "computation %s has conflicting allocation requirements (global " in GatherComputationsByAllocationType() 241 VLOG(4) << "Adding the following buffer to allocation #" << index() in AddAssignment() 245 << "LogicalBuffer " << buffer << " already assigned to allocation " in AddAssignment() 254 << " does not match allocation color " << color() << "."; in AddAssignment() 305 // Returns parameter instruction corresponding to the allocation or nullptr. 319 // Returns root module output instruction corresponding to the allocation or 339 StrAppendFormat(&output, "allocation %d: %p, size %d", index_, this, size()); in ToString() 481 VLOG(3) << "Has allocation"; in GetUniqueSlice() 484 if (result.allocation() == nullptr) { in GetUniqueSlice() [all …]
|
D | buffer_assignment.h | 58 // This class abstracts an allocation of contiguous memory which can hold the 60 // of the allocation, represented by a Slice. A single BufferAllocation may hold 65 // The abstraction includes information required by the backends for allocation, 67 // are held in this allocation through the execution of the computation. 70 // Holds a unique identifier for each allocation. Values are assigned 78 // Returns the index of this allocation. 81 // Whether this allocation is used in a parallel calling context such as 89 // Whether this allocation can be used by more than one logical buffer. 99 // Whether this allocation is readonly i.e. backed by memory we cannot write 112 // Whether this allocation holds a LogicalBuffer from a parameter of the entry [all …]
|
D | memory_space_assignment.h | 233 // Returns a debug string for no-copy allocation. 384 // determine the actual allocation offsets of values in the alternate memory 404 // Forward declaration for Allocation. 405 class Allocation; variable 466 // This is only useful for testing, repack after every allocation. 491 // This class represents an allocation that might either be in the default or 519 // - Allocation(memory_space=kAlternate, start_time=10, end_time=14) 522 class Allocation { 524 Allocation(HloPosition defining_position, MemorySpace memory_space, in Allocation() function 531 virtual ~Allocation() = default; [all …]
|
/external/swiftshader/third_party/marl/include/marl/ |
D | memory.h | 54 // Allocation 57 // Allocation holds the result of a memory allocation from an Allocator. 58 struct Allocation { struct 59 // Intended usage of the allocation. Used for allocation trackers. 70 // Request holds all the information required to make an allocation. 72 size_t size = 0; // The size of the allocation in bytes. 73 size_t alignment = 0; // The minimum alignment of the allocation. 74 bool useGuards = false; // Whether the allocation is guarded. 75 Usage usage = Usage::Undefined; // Intended usage of the allocation. 79 Request request; // Request used for the allocation. [all …]
|
/external/llvm-project/lldb/source/Expression/ |
D | IRMemoryMap.cpp | 96 // adequate space for our allocation. in FindSpace() 138 // default if this is our first allocation. in FindSpace() 269 IRMemoryMap::Allocation::Allocation(lldb::addr_t process_alloc, in Allocation() function in IRMemoryMap::Allocation 318 error.SetErrorString("Couldn't malloc: invalid allocation policy"); in Malloc() 437 error.SetErrorString("Couldn't leak: allocation doesn't exist"); in Leak() 441 Allocation &allocation = iter->second; in Leak() local 443 allocation.m_leak = true; in Leak() 453 error.SetErrorString("Couldn't free: allocation doesn't exist"); in Free() 457 Allocation &allocation = iter->second; in Free() local 459 switch (allocation.m_policy) { in Free() [all …]
|
/external/llvm-project/lldb/include/lldb/Expression/ |
D | IRMemoryMap.h | 41 0, ///< It is an error for an allocation to have this policy. 42 eAllocationPolicyHostOnly, ///< This allocation was created in the host and 46 eAllocationPolicyMirror, ///< The intent is that this allocation exist both 49 eAllocationPolicyProcessOnly ///< The intent is that this allocation exist 89 struct Allocation { struct 91 m_process_alloc; ///< The (unaligned) base for the remote allocation. 93 m_process_start; ///< The base address of the allocation in the process. 94 size_t m_size; ///< The size of the requested allocation. 103 uint8_t m_alignment; ///< The alignment of the requested allocation. 106 Allocation(lldb::addr_t process_alloc, lldb::addr_t process_start, argument [all …]
|
/external/tensorflow/tensorflow/lite/ |
D | model_builder.cc | 25 #include "tensorflow/lite/allocation.h" 46 std::unique_ptr<Allocation> GetAllocationFromFile(const char* filename, in GetAllocationFromFile() 50 std::unique_ptr<Allocation> allocation; in GetAllocationFromFile() local 52 allocation.reset(new MMAPAllocation(filename, error_reporter)); in GetAllocationFromFile() 54 allocation.reset(new FileCopyAllocation(filename, error_reporter)); in GetAllocationFromFile() 56 return allocation; in GetAllocationFromFile() 64 auto allocation = GetAllocationFromFile(filename, /*mmap_file=*/true, in BuildFromFile() local 66 model.reset(new FlatBufferModel(std::move(allocation), error_reporter)); in BuildFromFile() 77 auto allocation = GetAllocationFromFile(filename, /*mmap_file=*/true, in VerifyAndBuildFromFile() local 81 reinterpret_cast<const uint8_t*>(allocation->base()), in VerifyAndBuildFromFile() [all …]
|
/external/swiftshader/third_party/marl/src/ |
D | memory.cpp | 127 #error "Page based allocation not implemented for this platform" 185 auto allocation = malloc(allocSize); in alignedMalloc() local 187 reinterpret_cast<uintptr_t>(allocation), alignment)); // align in alignedMalloc() 188 memcpy(aligned + size, &allocation, sizeof(void*)); // pointer-to-allocation in alignedMalloc() 203 virtual marl::Allocation allocate( in allocate() 204 const marl::Allocation::Request& request) override { in allocate() 215 MARL_ASSERT(ptr != nullptr, "Allocation failed"); in allocate() 217 "Allocation gave incorrect alignment"); in allocate() 219 marl::Allocation allocation; in allocate() local 220 allocation.ptr = ptr; in allocate() [all …]
|
/external/webrtc/call/ |
D | bitrate_allocator.cc | 73 // Splits |bitrate| evenly to observers already in |allocation|. 82 std::map<BitrateAllocatorObserver*, int>* allocation) { in DistributeBitrateEvenly() argument 83 RTC_DCHECK_EQ(allocation->size(), allocatable_tracks.size()); in DistributeBitrateEvenly() 88 allocation->at(observer_config.observer) != 0) { in DistributeBitrateEvenly() 99 extra_allocation + allocation->at(it->second->observer); in DistributeBitrateEvenly() 107 // Finally, update the allocation for this observer. in DistributeBitrateEvenly() 108 allocation->at(it->second->observer) = total_allocation; in DistributeBitrateEvenly() 123 std::map<BitrateAllocatorObserver*, int>* allocation) { in DistributeBitrateRelatively() argument 124 RTC_DCHECK_EQ(allocation->size(), allocatable_tracks.size()); in DistributeBitrateRelatively() 170 allocation->at(priority_rate_observer.allocation_key) += in DistributeBitrateRelatively() [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ |
D | SampleDataQueue.java | 24 import com.google.android.exoplayer2.upstream.Allocation; 164 allocator.release(firstAllocationNode.allocation); in discardDownstreamTo() 184 writeAllocationNode.allocation.data, in sampleData() 201 writeAllocationNode.allocation.data, in sampleData() 308 Allocation allocation = readAllocationNode.allocation; in readData() local 309 target.put(allocation.data, readAllocationNode.translateOffset(absolutePosition), toCopy); in readData() 330 Allocation allocation = readAllocationNode.allocation; in readData() local 332 allocation.data, in readData() 357 * Clears allocation nodes starting from {@code fromNode}. 372 Allocation[] allocationsToRelease = new Allocation[allocationCount]; in clearAllocationNodes() [all …]
|
/external/swiftshader/src/System/ |
D | Memory.cpp | 47 struct Allocation struct 57 unsigned char *block = (unsigned char *)malloc(bytes + sizeof(Allocation) + alignment); in allocateRaw() 62 …aligned = (unsigned char *)((uintptr_t)(block + sizeof(Allocation) + alignment - 1) & -(intptr_t)a… in allocateRaw() 63 Allocation *allocation = (Allocation *)(aligned - sizeof(Allocation)); in allocateRaw() local 65 // allocation->bytes = bytes; in allocateRaw() 66 allocation->block = block; in allocateRaw() 106 Allocation *allocation = (Allocation *)(aligned - sizeof(Allocation)); in deallocate() local 108 free(allocation->block); in deallocate()
|
/external/swiftshader/src/Common/ |
D | Memory.cpp | 46 struct Allocation struct 56 unsigned char *block = new unsigned char[bytes + sizeof(Allocation) + alignment]; in allocateRaw() 61 …aligned = (unsigned char*)((uintptr_t)(block + sizeof(Allocation) + alignment - 1) & -(intptr_t)al… in allocateRaw() 62 Allocation *allocation = (Allocation*)(aligned - sizeof(Allocation)); in allocateRaw() local 64 // allocation->bytes = bytes; in allocateRaw() 65 allocation->block = block; in allocateRaw() 107 Allocation *allocation = (Allocation*)(aligned - sizeof(Allocation)); in deallocate() local 109 delete[] allocation->block; in deallocate()
|
/external/caliper/caliper/src/main/java/com/google/caliper/worker/ |
D | Allocation.java | 28 * Data about a particular allocation performed by a benchmark. This tracks a human readable 29 * description of the allocation (e.g. 'int[23]', 'java.lang.Integer', or 'java.util.ArrayList'), 30 * the total size of the allocation in bytes and the location, which is a stringified stack trace of 31 * the allocation. 33 final class Allocation { class 42 static long getTotalSize(Collection<Allocation> allocations) { in getTotalSize() 44 for (Allocation allocation : allocations) { in getTotalSize() 45 totalSize += allocation.size; in getTotalSize() 54 Allocation(String description, long size, List<StackTraceElement> location) { in Allocation() method in Allocation 65 if (obj instanceof Allocation) { in equals() [all …]
|
/external/tensorflow/tensorflow/core/framework/ |
D | log_memory.cc | 50 MemoryLogTensorAllocation allocation; in RecordTensorAllocation() local 51 allocation.set_step_id(step_id); in RecordTensorAllocation() 52 allocation.set_kernel_name(kernel_name); in RecordTensorAllocation() 53 tensor.FillDescription(allocation.mutable_tensor()); in RecordTensorAllocation() 54 OutputToLog(allocation); in RecordTensorAllocation() 79 MemoryLogRawAllocation allocation; in RecordRawAllocation() local 80 allocation.set_step_id(step_id); in RecordRawAllocation() 81 allocation.set_operation(operation); in RecordRawAllocation() 82 allocation.set_num_bytes(static_cast<int64>(num_bytes)); in RecordRawAllocation() 83 allocation.set_ptr(reinterpret_cast<uintptr_t>(ptr)); in RecordRawAllocation() [all …]
|
/external/bcc/man/man8/ |
D | memleak.8 | 9 memleak traces and matches memory allocation and deallocation requests, and 10 collects call stacks for each allocation. memleak can then print a summary 13 When tracing a specific process, memleak instruments a list of allocation 39 Print a trace of all allocation and free requests and results. 57 Record roughly every SAMPLE_RATE-th allocation to reduce overhead. 70 Attach to allocation functions in specified object instead of resolving libc. Ignored when kernel a… 80 Print outstanding kernel allocation stacks every 3 seconds: 84 Print user outstanding allocation stacks and allocation details for the process 1005: 88 Sample roughly every 5th allocation (~20%) of the call stacks and print the top 5 93 Run ./allocs and print outstanding allocation stacks for that process: [all …]
|