/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/perfetto/src/profiling/memory/ |
H A D | wrap_allocators.cc | 34 void* wrap_malloc(uint32_t heap_id, void* (*fn)(size_t), size_t size) { in wrap_malloc() argument 36 AHeapProfile_reportAllocation(heap_id, reinterpret_cast<uint64_t>(addr), in wrap_malloc() 41 void* wrap_calloc(uint32_t heap_id, in wrap_calloc() argument 46 AHeapProfile_reportAllocation(heap_id, reinterpret_cast<uint64_t>(addr), in wrap_calloc() 51 void* wrap_memalign(uint32_t heap_id, in wrap_memalign() argument 61 int wrap_posix_memalign(uint32_t heap_id, in wrap_posix_memalign() argument 78 void wrap_free(uint32_t heap_id, void (*fn)(void*), void* pointer) { in wrap_free() argument 90 AHeapProfile_reportFree(heap_id, reinterpret_cast<uint64_t>(pointer)); in wrap_free() 97 void* wrap_realloc(uint32_t heap_id, in wrap_realloc() argument 116 void* wrap_valloc(uint32_t heap_id, void* (*fn)(size_t), size_t size) { in wrap_valloc() argument [all …]
|
H A D | wrap_allocators.h | 26 void* wrap_malloc(uint32_t heap_id, void* (*fn)(size_t), size_t size); 27 void* wrap_calloc(uint32_t heap_id, 31 void* wrap_memalign(uint32_t heap_id, 35 int wrap_posix_memalign(uint32_t heap_id, 40 void wrap_free(uint32_t heap_id, void (*fn)(void*), void* pointer); 41 void* wrap_realloc(uint32_t heap_id, 45 void* wrap_pvalloc(uint32_t heap_id, void* (*fn)(size_t), size_t size); 46 void* wrap_valloc(uint32_t heap_id, void* (*fn)(size_t), size_t size); 48 void* wrap_reallocarray(uint32_t heap_id,
|
H A D | client.cc | 360 bool Client::RecordMalloc(uint32_t heap_id, in RecordMalloc() argument 383 1 + sequence_number_[heap_id].fetch_add(1, std::memory_order_acq_rel); in RecordMalloc() 384 metadata.heap_id = heap_id; in RecordMalloc() 429 bool Client::RecordFree(uint32_t heap_id, const uint64_t alloc_address) { in RecordFree() argument 436 1 + sequence_number_[heap_id].fetch_add(1, std::memory_order_acq_rel); in RecordFree() 438 current_entry.heap_id = heap_id; in RecordFree() 454 bool Client::RecordHeapName(uint32_t heap_id, const char* heap_name) { in RecordHeapName() argument 460 hnr.heap_id = heap_id; in RecordHeapName()
|
H A D | client_api.cc | 287 AHeapProfile_reportAllocation(uint32_t heap_id, uint64_t id, uint64_t size) { in AHeapProfile_reportAllocation() argument 288 AHeapInfo& heap = GetHeap(heap_id); in AHeapProfile_reportAllocation() 314 if (!client->RecordMalloc(heap_id, sampled_alloc_sz, size, id)) { in AHeapProfile_reportAllocation() 321 AHeapProfile_reportSample(uint32_t heap_id, uint64_t id, uint64_t size) { in AHeapProfile_reportSample() argument 322 const AHeapInfo& heap = GetHeap(heap_id); in AHeapProfile_reportSample() 343 if (!client->RecordMalloc(heap_id, size, size, id)) { in AHeapProfile_reportSample() 350 uint32_t heap_id, in AHeapProfile_reportFree() argument 352 const AHeapInfo& heap = GetHeap(heap_id); in AHeapProfile_reportFree() 371 if (!client->RecordFree(heap_id, id)) in AHeapProfile_reportFree()
|
H A D | client.h | 80 bool RecordMalloc(uint32_t heap_id, 86 bool RecordFree(uint32_t heap_id, 88 bool RecordHeapName(uint32_t heap_id, const char* heap_name);
|
H A D | heapprofd_standalone_client_example.cc | 22 uint32_t heap_id = AHeapProfile_registerHeap(AHeapInfo_create("test")); in main() local 24 AHeapProfile_reportAllocation(heap_id, i, i); in main()
|
H A D | wire_protocol.h | 122 PERFETTO_CROSS_ABI_ALIGNED(uint32_t) heap_id; 130 PERFETTO_CROSS_ABI_ALIGNED(uint32_t) heap_id; 134 PERFETTO_CROSS_ABI_ALIGNED(uint32_t) heap_id;
|
H A D | wire_protocol_unittest.cc | 34 one.clock_monotonic_coarse_timestamp, one.heap_id, in operator ==() 39 other.heap_id, other.arch) && in operator ==() 46 return (std::tie(one.sequence_number, one.addr, one.heap_id) == in operator ==() 47 std::tie(other.sequence_number, other.addr, other.heap_id)); in operator ==()
|
/dports/devel/android-tools-fastboot/platform_system_core-platform-tools-29.0.5/libion/tests/ |
H A D | exit_test.cpp | 32 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 60 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, in TEST_F() 78 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 102 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 128 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 134 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), in TEST_F() 153 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 159 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), in TEST_F() 180 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 186 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), in TEST_F() [all …]
|
H A D | allocate_test.cpp | 32 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 35 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F() 47 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 62 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 65 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), in TEST_F() 78 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 84 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F() 95 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 108 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 113 ASSERT_EQ(0, ion_alloc_fd(ionfd, 4096, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F() [all …]
|
H A D | heap_query.cpp | 32 << ":" << heap.heap_id); in TEST_F() 35 ASSERT_TRUE((1 << heap.heap_id) & ION_HEAP_SYSTEM_MASK); in TEST_F() 38 ASSERT_TRUE((1 << heap.heap_id) & ION_HEAP_SYSTEM_CONTIG_MASK); in TEST_F() 41 ASSERT_TRUE((1 << heap.heap_id) & ION_HEAP_CARVEOUT_MASK); in TEST_F() 44 ASSERT_TRUE((1 << heap.heap_id) & ION_HEAP_TYPE_DMA_MASK); in TEST_F()
|
H A D | invalid_values_test.cpp | 39 int ret = ion_alloc_fd(0, 4096, 0, (1 << heap.heap_id), 0, &fd); in TEST_F() 42 EXPECT_EQ(-EBADF, ion_alloc_fd(-1, 4096, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F() 44 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 46 EXPECT_EQ(-EINVAL, ion_alloc_fd(ionfd, 0, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F() 48 EXPECT_EQ(-EINVAL, ion_alloc_fd(ionfd, -1, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F() 57 EXPECT_EQ(-EINVAL, ion_alloc_fd(ionfd, 4096, 0, (1 << heap.heap_id), 0, nullptr)); in TEST_F()
|
H A D | map_test.cpp | 32 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 36 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F() 54 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 57 ASSERT_EQ(0, ion_alloc_fd(ionfd, getpagesize() * 2, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F() 85 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 90 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), flags, &map_fd)); in TEST_F() 110 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 115 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), flags, &map_fd)); in TEST_F()
|
/dports/shells/zsh/zsh-5.8.1/Src/ |
H A D | mem.c | 277 HEAPID_FMT " to " HEAPID_FMT ".\n", h->heap_id, new->heap_id); in switch_heaps() 309 hs->heap_id = h->heap_id; in pushheap() 314 hs->heap_id, h->heap_id); in pushheap() 471 h->heap_id, hs->heap_id); in popheap() 473 h->heap_id = hs->heap_id; in popheap() 772 Heapid heap_id = h->heap_id; in hrealloc() local 851 h->heap_id = heap_id; in hrealloc() 907 if (h->heap_id == heap_id) { in memory_validate() 912 if (hs->heap_id == heap_id) { in memory_validate() 922 if (h->heap_id == heap_id) { in memory_validate() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/perfetto/include/perfetto/profiling/memory/ |
H A D | heap_profile.h | 152 bool AHeapProfile_reportAllocation(uint32_t heap_id, 169 bool AHeapProfile_reportSample(uint32_t heap_id, 182 void AHeapProfile_reportFree(uint32_t heap_id, uint64_t alloc_id);
|
/dports/java/openjdk8/jdk8u-jdk8u312-b07.1/jdk/src/share/demo/jvmti/hprof/ |
H A D | hprof_io.c | 515 heap_id(HprofId i) in heap_id() function 523 heap_id(index); in heap_index_id() 1402 heap_id(obj_id); in io_heap_root_unknown() 1415 heap_id(obj_id); in io_heap_root_jni_global() 1431 heap_id(obj_id); in io_heap_root_jni_local() 1446 heap_id(obj_id); in io_heap_root_system_class() 1462 heap_id(obj_id); in io_heap_root_monitor() 1474 heap_id(obj_id); in io_heap_root_thread() 1489 heap_id(obj_id); in io_heap_root_java_frame() 1594 heap_id(0); in io_heap_class_dump() [all …]
|
/dports/java/openjdk8-jre/jdk8u-jdk8u312-b07.1/jdk/src/share/demo/jvmti/hprof/ |
H A D | hprof_io.c | 515 heap_id(HprofId i) in heap_id() function 523 heap_id(index); in heap_index_id() 1402 heap_id(obj_id); in io_heap_root_unknown() 1415 heap_id(obj_id); in io_heap_root_jni_global() 1431 heap_id(obj_id); in io_heap_root_jni_local() 1446 heap_id(obj_id); in io_heap_root_system_class() 1462 heap_id(obj_id); in io_heap_root_monitor() 1474 heap_id(obj_id); in io_heap_root_thread() 1489 heap_id(obj_id); in io_heap_root_java_frame() 1594 heap_id(0); in io_heap_class_dump() [all …]
|
/dports/science/InsightToolkit/ITK-5.0.1/Modules/ThirdParty/HDF5/src/itkhdf5/src/ |
H A D | H5Oshared.c | 143 if(H5HF_get_obj_len(fheap, &(shared->u.heap_id), &mesg_size) < 0) in H5O_shared_read() 155 if(H5HF_read(fheap, &(shared->u.heap_id), mesg_ptr) < 0) in H5O_shared_read() 357 HDmemcpy(&sh_mesg.u.heap_id, buf, sizeof(sh_mesg.u.heap_id)); in H5O_shared_decode() 425 HDmemcpy(buf, &(sh_mesg->u.heap_id), sizeof(sh_mesg->u.heap_id)); in H5O_shared_encode() 743 (unsigned long long)mesg->u.heap_id.val); in H5O_shared_debug()
|
/dports/science/hdf5/hdf5-1.10.6/src/ |
H A D | H5Oshared.c | 143 if(H5HF_get_obj_len(fheap, &(shared->u.heap_id), &mesg_size) < 0) in H5O_shared_read() 155 if(H5HF_read(fheap, &(shared->u.heap_id), mesg_ptr) < 0) in H5O_shared_read() 357 HDmemcpy(&sh_mesg.u.heap_id, buf, sizeof(sh_mesg.u.heap_id)); in H5O_shared_decode() 425 HDmemcpy(buf, &(sh_mesg->u.heap_id), sizeof(sh_mesg->u.heap_id)); in H5O_shared_encode() 743 (unsigned long long)mesg->u.heap_id.val); in H5O_shared_debug()
|
/dports/lang/halide/Halide-release_2019_08_27-2654-g664dc4993/src/runtime/hexagon_remote/ |
H A D | host_malloc.cpp | 154 const int heap_id = system_heap_id; in halide_hexagon_host_malloc() local 166 if (heap_id != system_heap_id) { in halide_hexagon_host_malloc() 176 handle = ion_alloc(ion_fd, size, alignment, 1 << heap_id, ion_flags); in halide_hexagon_host_malloc() 179 ion_fd, (long long)size, (long long)alignment, 1 << heap_id, ion_flags); in halide_hexagon_host_malloc()
|
/dports/math/vtk9/VTK-9.1.0/ThirdParty/hdf5/vtkhdf5/src/ |
H A D | H5Oshared.c | 139 if (H5HF_get_obj_len(fheap, &(shared->u.heap_id), &mesg_size) < 0) in H5O__shared_read() 151 if (H5HF_read(fheap, &(shared->u.heap_id), mesg_ptr) < 0) in H5O__shared_read() 351 H5MM_memcpy(&sh_mesg.u.heap_id, buf, sizeof(sh_mesg.u.heap_id)); in H5O__shared_decode() 418 H5MM_memcpy(buf, &(sh_mesg->u.heap_id), sizeof(sh_mesg->u.heap_id)); in H5O__shared_encode() 719 "Heap ID:", (unsigned long long)mesg->u.heap_id.val); in H5O__shared_debug()
|
/dports/science/hdf5-18/hdf5-1.8.21/src/ |
H A D | H5Oshared.c | 143 if(H5HF_get_obj_len(fheap, dxpl_id, &(shared->u.heap_id), &mesg_size) < 0) in H5O_shared_read() 155 if(H5HF_read(fheap, dxpl_id, &(shared->u.heap_id), mesg_ptr) < 0) in H5O_shared_read() 357 HDmemcpy(&sh_mesg.u.heap_id, buf, sizeof(sh_mesg.u.heap_id)); in H5O_shared_decode() 425 HDmemcpy(buf, &(sh_mesg->u.heap_id), sizeof(sh_mesg->u.heap_id)); in H5O_shared_encode() 739 (unsigned long long)mesg->u.heap_id.val); in H5O_shared_debug()
|
/dports/math/vtk8/VTK-8.2.0/ThirdParty/hdf5/vtkhdf5/src/ |
H A D | H5Oshared.c | 143 if(H5HF_get_obj_len(fheap, dxpl_id, &(shared->u.heap_id), &mesg_size) < 0) in H5O_shared_read() 155 if(H5HF_read(fheap, dxpl_id, &(shared->u.heap_id), mesg_ptr) < 0) in H5O_shared_read() 357 HDmemcpy(&sh_mesg.u.heap_id, buf, sizeof(sh_mesg.u.heap_id)); in H5O_shared_decode() 425 HDmemcpy(buf, &(sh_mesg->u.heap_id), sizeof(sh_mesg->u.heap_id)); in H5O_shared_encode() 745 (unsigned long long)mesg->u.heap_id.val); in H5O_shared_debug()
|
/dports/math/vtk6/VTK-6.2.0/ThirdParty/hdf5/vtkhdf5/src/ |
H A D | H5Oshared.c | 145 if(H5HF_get_obj_len(fheap, dxpl_id, &(shared->u.heap_id), &mesg_size) < 0) in H5O_shared_read() 157 if(H5HF_read(fheap, dxpl_id, &(shared->u.heap_id), mesg_ptr) < 0) in H5O_shared_read() 359 HDmemcpy(&sh_mesg.u.heap_id, buf, sizeof(sh_mesg.u.heap_id)); in H5O_shared_decode() 427 HDmemcpy(buf, &(sh_mesg->u.heap_id), sizeof(sh_mesg->u.heap_id)); in H5O_shared_encode() 741 (unsigned long long)mesg->u.heap_id.val); in H5O_shared_debug()
|
/dports/lang/spidermonkey78/firefox-78.9.0/third_party/rust/gfx-backend-dx12/src/ |
H A D | descriptors_cpu.rs | 139 let heap_id = self.free_list.iter().cloned().next().unwrap_or_else(|| { in alloc_handle() localVariable 147 let heap = &mut self.heaps[heap_id]; in alloc_handle() 150 self.free_list.remove(&heap_id); in alloc_handle()
|