Home
last modified time | relevance | path

Searched refs:allocationSize (Results 1 – 25 of 64) sorted by relevance

123

/external/caliper/caliper/src/main/java/com/google/caliper/worker/
DAllocationStats.java38 private final long allocationSize; field in AllocationStats
47 AllocationStats(int allocationCount, long allocationSize, int reps) { in AllocationStats() argument
48 this(allocationCount, allocationSize, reps, ImmutableMultiset.<Allocation>of()); in AllocationStats()
60 private AllocationStats(int allocationCount, long allocationSize, int reps, in AllocationStats() argument
64 checkArgument(allocationSize >= 0, "allocationSize (%s) was negative", allocationSize); in AllocationStats()
65 this.allocationSize = allocationSize; in AllocationStats()
76 return allocationSize; in getAllocationSize()
99 allocationSize - baseline.allocationSize, in minus()
119 allocationSize - baseline.allocationSize, in delta()
140 .value(Value.create(allocationSize, "B")) in toMeasurements()
[all …]
DAggregateAllocationsRecorder.java32 private final AtomicLong allocationSize = new AtomicLong(); field in AggregateAllocationsRecorder
40 allocationSize.getAndAdd(size);
52 allocationSize.set(0); in doStartRecording()
59 return new AllocationStats(allocationCount.get(), allocationSize.get(), reps); in stopRecording()
/external/swiftshader/src/OpenGL/compiler/
DPoolAlloc.cpp254 size_t allocationSize = TAllocation::allocationSize(numBytes); in allocate() local
256 if (allocationSize < numBytes) in allocate()
263 if (allocationSize <= pageSize - currentPageOffset) { in allocate()
268 currentPageOffset += allocationSize; in allocate()
274 if (allocationSize > pageSize - headerSkip) { in allocate()
279 size_t numBytesToAlloc = allocationSize + headerSkip; in allocate()
281 if (numBytesToAlloc < allocationSize) in allocate()
316 currentPageOffset = (headerSkip + allocationSize + alignmentMask) & ~alignmentMask; in allocate()
/external/deqp-deps/glslang/glslang/MachineIndependent/
DPoolAlloc.cpp240 size_t allocationSize = TAllocation::allocationSize(numBytes); in allocate() local
252 if (currentPageOffset + allocationSize <= pageSize) { in allocate()
257 currentPageOffset += allocationSize; in allocate()
263 if (allocationSize + headerSkip > pageSize) { in allocate()
268 size_t numBytesToAlloc = allocationSize + headerSkip; in allocate()
301 currentPageOffset = (headerSkip + allocationSize + alignmentMask) & ~alignmentMask; in allocate()
/external/skqp/src/core/
DSkArenaAlloc.cpp121 uint32_t allocationSize = std::max(objSizeAndOverhead, minAllocationSize); in ensureSpace() local
126 uint32_t mask = allocationSize > (1 << 15) ? (1 << 12) - 1 : 16 - 1; in ensureSpace()
127 AssertRelease(allocationSize <= maxSize - mask); in ensureSpace()
128 allocationSize = (allocationSize + mask) & ~mask; in ensureSpace()
131 char* newBlock = new char[allocationSize]; in ensureSpace()
136 fEnd = fCursor + allocationSize; in ensureSpace()
DSkString.cpp211 size_t allocationSize = safe.add(len, SizeOfRec() + sizeof(char)); in Make() local
213 allocationSize = safe.alignUp(allocationSize, 4); in Make()
217 void* storage = ::operator new (allocationSize); in Make()
/external/skia/src/core/
DSkArenaAlloc.cpp121 uint32_t allocationSize = std::max(objSizeAndOverhead, minAllocationSize); in ensureSpace() local
126 uint32_t mask = allocationSize > (1 << 15) ? (1 << 12) - 1 : 16 - 1; in ensureSpace()
127 AssertRelease(allocationSize <= maxSize - mask); in ensureSpace()
128 allocationSize = (allocationSize + mask) & ~mask; in ensureSpace()
131 char* newBlock = new char[allocationSize]; in ensureSpace()
136 fEnd = fCursor + allocationSize; in ensureSpace()
DSkString.cpp211 size_t allocationSize = safe.add(len, SizeOfRec() + sizeof(char)); in Make() local
213 allocationSize = safe.alignUp(allocationSize, 4); in Make()
217 void* storage = ::operator new (allocationSize); in Make()
/external/deqp/external/vulkancts/modules/vulkan/memory/
DvktMemoryAllocationTests.cpp297 …const VkDeviceSize allocationSize = (m_config.memorySize ? memReqs.size : (VkDeviceSize)(*m_confi… in iterate() local
298 …const VkDeviceSize roundedUpAllocationSize = roundUpToNextMultiple(allocationSize, m_memoryLimit… in iterate()
317allocationSize * m_config.memoryAllocationCount * (m_subsetAllocationAllowed ? 1 : m_numPhysDevice… in iterate()
344 allocationSize, // allocationSize in iterate()
382 allocationSize, // allocationSize in iterate()
633 const VkDeviceSize allocationSize = 1 + (m_rng.getUint64() % maxAllocSize); in iterate() local
635 …if ((allocationSize > (deUint64)(heap.maxMemoryUsage - heap.memoryUsage)) && (allocationSize != 1)) in iterate()
641 allocationSize in iterate()
659 heap.memoryUsage += allocationSize; in iterate()
660 (isDeviceLocal ? m_totalDeviceMem : m_totalSystemMem) += allocationSize; in iterate()
[all …]
DvktMemoryMappingTests.cpp456 : allocationSize (~(VkDeviceSize)0) in TestConfig()
461 VkDeviceSize allocationSize; member
549 log << TestLog::Message << "Allocation size: " << config.allocationSize << TestLog::EndMessage; in testMemoryMapping()
581allocationSize = (config.allocationSize % atomSize == 0) ? config.allocationSize : config.a… in testMemoryMapping() local
584 (VkDeviceSize)allocationSize, in testMemoryMapping()
593 image = makeImage(vkd, device, allocationSize, queueFamilyIndex); in testMemoryMapping()
598 buffer = makeBuffer(vkd, device, allocationSize, queueFamilyIndex); in testMemoryMapping()
601 allocationSize = req.size; in testMemoryMapping()
604 if (config.mapping.size == config.allocationSize && config.mapping.offset == 0u) in testMemoryMapping()
606 mappingSize = allocationSize; in testMemoryMapping()
[all …]
DvktMemoryExternalMemoryHostTests.cpp73 ExternalMemoryHostBaseTestInstance (Context& context, VkDeviceSize allocationSize);
158 …aseTestInstance::ExternalMemoryHostBaseTestInstance (Context& context, VkDeviceSize allocationSize) in ExternalMemoryHostBaseTestInstance() argument
168 , m_allocationSize (m_minImportedHostPointerAlignment * allocationSize) in ExternalMemoryHostBaseTestInstance()
237 memoryAllocateInfo.allocationSize = m_allocationSize; in allocateMemoryFromHostPointer()
/external/swiftshader/src/Vulkan/
DVkDescriptorSetLayout.cpp74 size_t allocationSize = pCreateInfo->bindingCount * sizeof(VkDescriptorSetLayoutBinding); in ComputeRequiredAllocationSize() local
80 allocationSize += pCreateInfo->pBindings[i].descriptorCount * sizeof(VkSampler); in ComputeRequiredAllocationSize()
84 return allocationSize; in ComputeRequiredAllocationSize()
DVkDeviceMemory.cpp23 size(pCreateInfo->allocationSize), memoryTypeIndex(pCreateInfo->memoryTypeIndex) in DeviceMemory()
/external/deqp/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesTestsUtil.cpp681 const VkDeviceSize allocationSize, in makeSparseImageMemoryBind() argument
691 allocationSize, // VkDeviceSize allocationSize; in makeSparseImageMemoryBind()
712 const VkDeviceSize allocationSize, in makeSparseMemoryBind() argument
721 allocationSize, // VkDeviceSize allocationSize; in makeSparseMemoryBind()
731 memoryBind.size = allocationSize; in makeSparseMemoryBind()
DvktSparseResourcesTestsUtil.hpp199 const vk::VkDeviceSize allocationSize,
207 const vk::VkDeviceSize allocationSize,
/external/deqp/external/vulkancts/framework/vulkan/
DvkMemUtil.cpp208 hostPtr = MovePtr<HostPtr>(new HostPtr(m_vk, m_device, *mem, 0u, allocInfo.allocationSize, 0u)); in allocate()
230 hostPtr = MovePtr<HostPtr>(new HostPtr(m_vk, m_device, *mem, 0u, allocInfo.allocationSize, 0u)); in allocate()
259 hostPtr = MovePtr<HostPtr>(new HostPtr(vkd, device, *mem, 0u, allocInfo.allocationSize, 0u)); in allocateDedicated()
/external/skia/include/third_party/vulkan/vulkan/
Dvulkan_android.h71 VkDeviceSize allocationSize; member
/external/vulkan-headers/include/vulkan/
Dvulkan_android.h71 VkDeviceSize allocationSize; member
/external/swiftshader/include/vulkan/
Dvulkan_android.h71 VkDeviceSize allocationSize; member
/external/skqp/include/third_party/vulkan/vulkan/
Dvulkan_android.h71 VkDeviceSize allocationSize; member
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldImpl.h77 size_t allocationSize, uintptr_t objAddress) in SectionEntry() argument
80 AllocationSize(allocationSize), ObjAddress(objAddress) { in SectionEntry()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldImpl.h77 size_t allocationSize, uintptr_t objAddress) in SectionEntry() argument
80 AllocationSize(allocationSize), ObjAddress(objAddress) { in SectionEntry()
/external/skia/src/gpu/
DGrAHardwareBufferUtils.cpp418 hwbProps.allocationSize, // allocationSize in make_vk_backend_texture()
447 imageInfo.fAlloc = GrVkAlloc(memory, 0, hwbProps.allocationSize, 0); in make_vk_backend_texture()
/external/mesa3d/src/vulkan/wsi/
Dwsi_common.c267 .allocationSize = reqs.size, in wsi_create_native_image()
364 .allocationSize = linear_size, in wsi_create_prime_image()
414 .allocationSize = reqs.size, in wsi_create_prime_image()
/external/swiftshader/src/OpenGL/libGLESv2/
Dutilities.h45 int AllocateFirstFreeBits(unsigned int *bits, unsigned int allocationSize, unsigned int bitsSize);

123