From 0e10e5f8e1d5da1854d2e0c616c788316ee68bef Mon Sep 17 00:00:00 2001 From: Kbz-8 Date: Thu, 7 Dec 2023 23:20:25 +0100 Subject: [PATCH] removing garbage files --- test/memory_dump0.json | 234 ----------------------------------------- test/memory_dump1.json | 232 ---------------------------------------- test/memory_dump2.json | 232 ---------------------------------------- test/memory_dump3.json | 232 ---------------------------------------- test/memory_dump4.json | 232 ---------------------------------------- 5 files changed, 1162 deletions(-) delete mode 100644 test/memory_dump0.json delete mode 100644 test/memory_dump1.json delete mode 100644 test/memory_dump2.json delete mode 100644 test/memory_dump3.json delete mode 100644 test/memory_dump4.json diff --git a/test/memory_dump0.json b/test/memory_dump0.json deleted file mode 100644 index a34c0d5..0000000 --- a/test/memory_dump0.json +++ /dev/null @@ -1,234 +0,0 @@ -{ - "General": { - "API": "Vulkan", - "apiVersion": "1.3.260", - "GPU": "NVIDIA GeForce GTX 1650", - "deviceType": 2, - "maxMemoryAllocationCount": 4294967295, - "bufferImageGranularity": 1024, - "nonCoherentAtomSize": 64, - "memoryHeapCount": 3, - "memoryTypeCount": 5 - }, - "Total": { - "BlockCount": 5, - "BlockBytes": 73007104, - "AllocationCount": 19, - "AllocationBytes": 2668256, - "UnusedRangeCount": 6, - "AllocationSizeMin": 12, - "AllocationSizeMax": 1048576, - "UnusedRangeSizeMin": 4, - "UnusedRangeSizeMax": 33433984 - }, - "MemoryInfo": { - "Heap 0": { - "Flags": ["DEVICE_LOCAL"], - "Size": 4294967296, - "Budget": { - "BudgetBytes": 3435973836, - "UsageBytes": 35422208 - }, - "Stats": { - "BlockCount": 3, - "BlockBytes": 35422208, - "AllocationCount": 14, - "AllocationBytes": 1988064, - "UnusedRangeCount": 4, - "AllocationSizeMin": 12, - "AllocationSizeMax": 1048576, - "UnusedRangeSizeMin": 4, - "UnusedRangeSizeMax": 33433984 - }, - "MemoryPools": { - "Type 1": { - "Flags": ["DEVICE_LOCAL"], - "Stats": { - "BlockCount": 3, - "BlockBytes": 35422208, - "AllocationCount": 14, - "AllocationBytes": 1988064, - "UnusedRangeCount": 4, - "AllocationSizeMin": 12, - "AllocationSizeMax": 1048576, - "UnusedRangeSizeMin": 4, - "UnusedRangeSizeMax": 33433984 - } - } - } - }, - "Heap 1": { - "Flags": [], - "Size": 6071976960, - "Budget": { - "BudgetBytes": 4857581568, - "UsageBytes": 33554432 - }, - "Stats": { - "BlockCount": 1, - "BlockBytes": 33554432, - "AllocationCount": 2, - "AllocationBytes": 680000, - "UnusedRangeCount": 1, - "AllocationSizeMin": 40000, - "AllocationSizeMax": 640000 - }, - "MemoryPools": { - "Type 0": { - "Flags": [], - "Stats": { - "BlockCount": 0, - "BlockBytes": 0, - "AllocationCount": 0, - "AllocationBytes": 0, - "UnusedRangeCount": 0 - } - }, - "Type 2": { - "Flags": ["HOST_VISIBLE", "HOST_COHERENT"], - "Stats": { - "BlockCount": 1, - "BlockBytes": 33554432, - "AllocationCount": 2, - "AllocationBytes": 680000, - "UnusedRangeCount": 1, - "AllocationSizeMin": 40000, - "AllocationSizeMax": 640000 - } - }, - "Type 3": { - "Flags": ["HOST_VISIBLE", "HOST_COHERENT", "HOST_CACHED"], - "Stats": { - "BlockCount": 0, - "BlockBytes": 0, - "AllocationCount": 0, - "AllocationBytes": 0, - "UnusedRangeCount": 0 - } - } - } - }, - "Heap 2": { - "Flags": ["DEVICE_LOCAL"], - "Size": 257949696, - "Budget": { - "BudgetBytes": 206359756, - "UsageBytes": 4030464 - }, - "Stats": { - "BlockCount": 1, - "BlockBytes": 4030464, - "AllocationCount": 3, - "AllocationBytes": 192, - "UnusedRangeCount": 1, - "AllocationSizeMin": 64, - "AllocationSizeMax": 64 - }, - "MemoryPools": { - "Type 4": { - "Flags": ["DEVICE_LOCAL", "HOST_VISIBLE", "HOST_COHERENT"], - "Stats": { - "BlockCount": 1, - "BlockBytes": 4030464, - "AllocationCount": 3, - "AllocationBytes": 192, - "UnusedRangeCount": 1, - "AllocationSizeMin": 64, - "AllocationSizeMax": 64 - } - } - } - } - }, - "DefaultPools": { - "Type 0": { - "PreferredBlockSize": 268435456, - "Blocks": { - }, - "DedicatedAllocations": [ - ] - }, - "Type 1": { - "PreferredBlockSize": 268435456, - "Blocks": { - "0": { - "MapRefCount": 0, - "TotalBytes": 33554432, - "UnusedBytes": 33434144, - "Allocations": 12, - "UnusedRanges": 4, - "Suballocations": [ - {"Offset": 0, "Type": "BUFFER", "Size": 128, "Usage": 130, "Name": "__mlx_pixel_put_pipeline_texture_GPU_vertex_buffer"}, - {"Offset": 128, "Type": "BUFFER", "Size": 12, "Usage": 66, "Name": "__mlx_pixel_put_pipeline_texture_GPU_index_buffer"}, - {"Offset": 140, "Type": "FREE", "Size": 4}, - {"Offset": 144, "Type": "BUFFER", "Size": 128, "Usage": 130, "Name": "42_logo.png_GPU_vertex_buffer"}, - {"Offset": 272, "Type": "BUFFER", "Size": 12, "Usage": 66, "Name": "42_logo.png_GPU_index_buffer"}, - {"Offset": 284, "Type": "FREE", "Size": 4}, - {"Offset": 288, "Type": "BUFFER", "Size": 128, "Usage": 130, "Name": "__mlx_unamed_user_texture_GPU_vertex_buffer"}, - {"Offset": 416, "Type": "BUFFER", "Size": 12, "Usage": 66, "Name": "__mlx_unamed_user_texture_GPU_index_buffer"}, - {"Offset": 428, "Type": "BUFFER", "Size": 288, "Usage": 66, "Name": "that text will disappear_GPU_index_buffer"}, - {"Offset": 716, "Type": "BUFFER", "Size": 156, "Usage": 66, "Name": "that's a text_GPU_index_buffer"}, - {"Offset": 872, "Type": "FREE", "Size": 152}, - {"Offset": 1024, "Type": "IMAGE_OPTIMAL", "Size": 57344, "Usage": 7, "Name": "42_logo.png"}, - {"Offset": 58368, "Type": "IMAGE_OPTIMAL", "Size": 57344, "Usage": 7, "Name": "__mlx_unamed_user_texture"}, - {"Offset": 115712, "Type": "BUFFER", "Size": 3072, "Usage": 130, "Name": "that text will disappear_GPU_vertex_buffer"}, - {"Offset": 118784, "Type": "BUFFER", "Size": 1664, "Usage": 130, "Name": "that's a text_GPU_vertex_buffer"}, - {"Offset": 120448, "Type": "FREE", "Size": 33433984} - ] - } - }, - "DedicatedAllocations": [ - {"Type": "IMAGE_OPTIMAL", "Size": 819200, "Usage": 7, "Name": "__mlx_pixel_put_pipeline_texture"}, - {"Type": "IMAGE_OPTIMAL", "Size": 1048576, "Usage": 7, "Name": "__mlx_texts_pipeline_texture_atlas"} - ] - }, - "Type 2": { - "PreferredBlockSize": 268435456, - "Blocks": { - "0": { - "MapRefCount": 2, - "TotalBytes": 33554432, - "UnusedBytes": 32874432, - "Allocations": 2, - "UnusedRanges": 1, - "Suballocations": [ - {"Offset": 0, "Type": "BUFFER", "Size": 640000, "Usage": 1, "Name": "__mlx_pixel_put_pipeline_texture_buffer"}, - {"Offset": 640000, "Type": "BUFFER", "Size": 40000, "Usage": 3, "Name": "__mlx_unamed_user_texture_buffer"}, - {"Offset": 680000, "Type": "FREE", "Size": 32874432} - ] - } - }, - "DedicatedAllocations": [ - ] - }, - "Type 3": { - "PreferredBlockSize": 268435456, - "Blocks": { - }, - "DedicatedAllocations": [ - ] - }, - "Type 4": { - "PreferredBlockSize": 32243712, - "Blocks": { - "0": { - "MapRefCount": 3, - "TotalBytes": 4030464, - "UnusedBytes": 4030272, - "Allocations": 3, - "UnusedRanges": 1, - "Suballocations": [ - {"Offset": 0, "Type": "BUFFER", "Size": 64, "Usage": 16, "Name": "__mlx_matrices_uniform_buffer_0_buffer"}, - {"Offset": 64, "Type": "BUFFER", "Size": 64, "Usage": 16, "Name": "__mlx_matrices_uniform_buffer_1_buffer"}, - {"Offset": 128, "Type": "BUFFER", "Size": 64, "Usage": 16, "Name": "__mlx_matrices_uniform_buffer_2_buffer"}, - {"Offset": 192, "Type": "FREE", "Size": 4030272} - ] - } - }, - "DedicatedAllocations": [ - ] - } - }, - "CustomPools": { - } -} \ No newline at end of file diff --git a/test/memory_dump1.json b/test/memory_dump1.json deleted file mode 100644 index 96ea825..0000000 --- a/test/memory_dump1.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "General": { - "API": "Vulkan", - "apiVersion": "1.3.260", - "GPU": "NVIDIA GeForce GTX 1650", - "deviceType": 2, - "maxMemoryAllocationCount": 4294967295, - "bufferImageGranularity": 1024, - "nonCoherentAtomSize": 64, - "memoryHeapCount": 3, - "memoryTypeCount": 5 - }, - "Total": { - "BlockCount": 5, - "BlockBytes": 73007104, - "AllocationCount": 17, - "AllocationBytes": 2664896, - "UnusedRangeCount": 6, - "AllocationSizeMin": 12, - "AllocationSizeMax": 1048576, - "UnusedRangeSizeMin": 4, - "UnusedRangeSizeMax": 33437056 - }, - "MemoryInfo": { - "Heap 0": { - "Flags": ["DEVICE_LOCAL"], - "Size": 4294967296, - "Budget": { - "BudgetBytes": 3435973836, - "UsageBytes": 35422208 - }, - "Stats": { - "BlockCount": 3, - "BlockBytes": 35422208, - "AllocationCount": 12, - "AllocationBytes": 1984704, - "UnusedRangeCount": 4, - "AllocationSizeMin": 12, - "AllocationSizeMax": 1048576, - "UnusedRangeSizeMin": 4, - "UnusedRangeSizeMax": 33437056 - }, - "MemoryPools": { - "Type 1": { - "Flags": ["DEVICE_LOCAL"], - "Stats": { - "BlockCount": 3, - "BlockBytes": 35422208, - "AllocationCount": 12, - "AllocationBytes": 1984704, - "UnusedRangeCount": 4, - "AllocationSizeMin": 12, - "AllocationSizeMax": 1048576, - "UnusedRangeSizeMin": 4, - "UnusedRangeSizeMax": 33437056 - } - } - } - }, - "Heap 1": { - "Flags": [], - "Size": 6071976960, - "Budget": { - "BudgetBytes": 4857581568, - "UsageBytes": 33554432 - }, - "Stats": { - "BlockCount": 1, - "BlockBytes": 33554432, - "AllocationCount": 2, - "AllocationBytes": 680000, - "UnusedRangeCount": 1, - "AllocationSizeMin": 40000, - "AllocationSizeMax": 640000 - }, - "MemoryPools": { - "Type 0": { - "Flags": [], - "Stats": { - "BlockCount": 0, - "BlockBytes": 0, - "AllocationCount": 0, - "AllocationBytes": 0, - "UnusedRangeCount": 0 - } - }, - "Type 2": { - "Flags": ["HOST_VISIBLE", "HOST_COHERENT"], - "Stats": { - "BlockCount": 1, - "BlockBytes": 33554432, - "AllocationCount": 2, - "AllocationBytes": 680000, - "UnusedRangeCount": 1, - "AllocationSizeMin": 40000, - "AllocationSizeMax": 640000 - } - }, - "Type 3": { - "Flags": ["HOST_VISIBLE", "HOST_COHERENT", "HOST_CACHED"], - "Stats": { - "BlockCount": 0, - "BlockBytes": 0, - "AllocationCount": 0, - "AllocationBytes": 0, - "UnusedRangeCount": 0 - } - } - } - }, - "Heap 2": { - "Flags": ["DEVICE_LOCAL"], - "Size": 257949696, - "Budget": { - "BudgetBytes": 206359756, - "UsageBytes": 4030464 - }, - "Stats": { - "BlockCount": 1, - "BlockBytes": 4030464, - "AllocationCount": 3, - "AllocationBytes": 192, - "UnusedRangeCount": 1, - "AllocationSizeMin": 64, - "AllocationSizeMax": 64 - }, - "MemoryPools": { - "Type 4": { - "Flags": ["DEVICE_LOCAL", "HOST_VISIBLE", "HOST_COHERENT"], - "Stats": { - "BlockCount": 1, - "BlockBytes": 4030464, - "AllocationCount": 3, - "AllocationBytes": 192, - "UnusedRangeCount": 1, - "AllocationSizeMin": 64, - "AllocationSizeMax": 64 - } - } - } - } - }, - "DefaultPools": { - "Type 0": { - "PreferredBlockSize": 268435456, - "Blocks": { - }, - "DedicatedAllocations": [ - ] - }, - "Type 1": { - "PreferredBlockSize": 268435456, - "Blocks": { - "0": { - "MapRefCount": 0, - "TotalBytes": 33554432, - "UnusedBytes": 33437504, - "Allocations": 10, - "UnusedRanges": 4, - "Suballocations": [ - {"Offset": 0, "Type": "BUFFER", "Size": 128, "Usage": 130, "Name": "__mlx_pixel_put_pipeline_texture_GPU_vertex_buffer"}, - {"Offset": 128, "Type": "BUFFER", "Size": 12, "Usage": 66, "Name": "__mlx_pixel_put_pipeline_texture_GPU_index_buffer"}, - {"Offset": 140, "Type": "FREE", "Size": 4}, - {"Offset": 144, "Type": "BUFFER", "Size": 128, "Usage": 130, "Name": "42_logo.png_GPU_vertex_buffer"}, - {"Offset": 272, "Type": "BUFFER", "Size": 12, "Usage": 66, "Name": "42_logo.png_GPU_index_buffer"}, - {"Offset": 284, "Type": "FREE", "Size": 4}, - {"Offset": 288, "Type": "BUFFER", "Size": 128, "Usage": 130, "Name": "__mlx_unamed_user_texture_GPU_vertex_buffer"}, - {"Offset": 416, "Type": "BUFFER", "Size": 12, "Usage": 66, "Name": "__mlx_unamed_user_texture_GPU_index_buffer"}, - {"Offset": 428, "Type": "BUFFER", "Size": 156, "Usage": 66, "Name": "that's a text_GPU_index_buffer"}, - {"Offset": 584, "Type": "FREE", "Size": 440}, - {"Offset": 1024, "Type": "IMAGE_OPTIMAL", "Size": 57344, "Usage": 7, "Name": "42_logo.png"}, - {"Offset": 58368, "Type": "IMAGE_OPTIMAL", "Size": 57344, "Usage": 7, "Name": "__mlx_unamed_user_texture"}, - {"Offset": 115712, "Type": "BUFFER", "Size": 1664, "Usage": 130, "Name": "that's a text_GPU_vertex_buffer"}, - {"Offset": 117376, "Type": "FREE", "Size": 33437056} - ] - } - }, - "DedicatedAllocations": [ - {"Type": "IMAGE_OPTIMAL", "Size": 819200, "Usage": 7, "Name": "__mlx_pixel_put_pipeline_texture"}, - {"Type": "IMAGE_OPTIMAL", "Size": 1048576, "Usage": 7, "Name": "__mlx_texts_pipeline_texture_atlas"} - ] - }, - "Type 2": { - "PreferredBlockSize": 268435456, - "Blocks": { - "0": { - "MapRefCount": 2, - "TotalBytes": 33554432, - "UnusedBytes": 32874432, - "Allocations": 2, - "UnusedRanges": 1, - "Suballocations": [ - {"Offset": 0, "Type": "BUFFER", "Size": 640000, "Usage": 1, "Name": "__mlx_pixel_put_pipeline_texture_buffer"}, - {"Offset": 640000, "Type": "BUFFER", "Size": 40000, "Usage": 3, "Name": "__mlx_unamed_user_texture_buffer"}, - {"Offset": 680000, "Type": "FREE", "Size": 32874432} - ] - } - }, - "DedicatedAllocations": [ - ] - }, - "Type 3": { - "PreferredBlockSize": 268435456, - "Blocks": { - }, - "DedicatedAllocations": [ - ] - }, - "Type 4": { - "PreferredBlockSize": 32243712, - "Blocks": { - "0": { - "MapRefCount": 3, - "TotalBytes": 4030464, - "UnusedBytes": 4030272, - "Allocations": 3, - "UnusedRanges": 1, - "Suballocations": [ - {"Offset": 0, "Type": "BUFFER", "Size": 64, "Usage": 16, "Name": "__mlx_matrices_uniform_buffer_0_buffer"}, - {"Offset": 64, "Type": "BUFFER", "Size": 64, "Usage": 16, "Name": "__mlx_matrices_uniform_buffer_1_buffer"}, - {"Offset": 128, "Type": "BUFFER", "Size": 64, "Usage": 16, "Name": "__mlx_matrices_uniform_buffer_2_buffer"}, - {"Offset": 192, "Type": "FREE", "Size": 4030272} - ] - } - }, - "DedicatedAllocations": [ - ] - } - }, - "CustomPools": { - } -} \ No newline at end of file diff --git a/test/memory_dump2.json b/test/memory_dump2.json deleted file mode 100644 index 96ea825..0000000 --- a/test/memory_dump2.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "General": { - "API": "Vulkan", - "apiVersion": "1.3.260", - "GPU": "NVIDIA GeForce GTX 1650", - "deviceType": 2, - "maxMemoryAllocationCount": 4294967295, - "bufferImageGranularity": 1024, - "nonCoherentAtomSize": 64, - "memoryHeapCount": 3, - "memoryTypeCount": 5 - }, - "Total": { - "BlockCount": 5, - "BlockBytes": 73007104, - "AllocationCount": 17, - "AllocationBytes": 2664896, - "UnusedRangeCount": 6, - "AllocationSizeMin": 12, - "AllocationSizeMax": 1048576, - "UnusedRangeSizeMin": 4, - "UnusedRangeSizeMax": 33437056 - }, - "MemoryInfo": { - "Heap 0": { - "Flags": ["DEVICE_LOCAL"], - "Size": 4294967296, - "Budget": { - "BudgetBytes": 3435973836, - "UsageBytes": 35422208 - }, - "Stats": { - "BlockCount": 3, - "BlockBytes": 35422208, - "AllocationCount": 12, - "AllocationBytes": 1984704, - "UnusedRangeCount": 4, - "AllocationSizeMin": 12, - "AllocationSizeMax": 1048576, - "UnusedRangeSizeMin": 4, - "UnusedRangeSizeMax": 33437056 - }, - "MemoryPools": { - "Type 1": { - "Flags": ["DEVICE_LOCAL"], - "Stats": { - "BlockCount": 3, - "BlockBytes": 35422208, - "AllocationCount": 12, - "AllocationBytes": 1984704, - "UnusedRangeCount": 4, - "AllocationSizeMin": 12, - "AllocationSizeMax": 1048576, - "UnusedRangeSizeMin": 4, - "UnusedRangeSizeMax": 33437056 - } - } - } - }, - "Heap 1": { - "Flags": [], - "Size": 6071976960, - "Budget": { - "BudgetBytes": 4857581568, - "UsageBytes": 33554432 - }, - "Stats": { - "BlockCount": 1, - "BlockBytes": 33554432, - "AllocationCount": 2, - "AllocationBytes": 680000, - "UnusedRangeCount": 1, - "AllocationSizeMin": 40000, - "AllocationSizeMax": 640000 - }, - "MemoryPools": { - "Type 0": { - "Flags": [], - "Stats": { - "BlockCount": 0, - "BlockBytes": 0, - "AllocationCount": 0, - "AllocationBytes": 0, - "UnusedRangeCount": 0 - } - }, - "Type 2": { - "Flags": ["HOST_VISIBLE", "HOST_COHERENT"], - "Stats": { - "BlockCount": 1, - "BlockBytes": 33554432, - "AllocationCount": 2, - "AllocationBytes": 680000, - "UnusedRangeCount": 1, - "AllocationSizeMin": 40000, - "AllocationSizeMax": 640000 - } - }, - "Type 3": { - "Flags": ["HOST_VISIBLE", "HOST_COHERENT", "HOST_CACHED"], - "Stats": { - "BlockCount": 0, - "BlockBytes": 0, - "AllocationCount": 0, - "AllocationBytes": 0, - "UnusedRangeCount": 0 - } - } - } - }, - "Heap 2": { - "Flags": ["DEVICE_LOCAL"], - "Size": 257949696, - "Budget": { - "BudgetBytes": 206359756, - "UsageBytes": 4030464 - }, - "Stats": { - "BlockCount": 1, - "BlockBytes": 4030464, - "AllocationCount": 3, - "AllocationBytes": 192, - "UnusedRangeCount": 1, - "AllocationSizeMin": 64, - "AllocationSizeMax": 64 - }, - "MemoryPools": { - "Type 4": { - "Flags": ["DEVICE_LOCAL", "HOST_VISIBLE", "HOST_COHERENT"], - "Stats": { - "BlockCount": 1, - "BlockBytes": 4030464, - "AllocationCount": 3, - "AllocationBytes": 192, - "UnusedRangeCount": 1, - "AllocationSizeMin": 64, - "AllocationSizeMax": 64 - } - } - } - } - }, - "DefaultPools": { - "Type 0": { - "PreferredBlockSize": 268435456, - "Blocks": { - }, - "DedicatedAllocations": [ - ] - }, - "Type 1": { - "PreferredBlockSize": 268435456, - "Blocks": { - "0": { - "MapRefCount": 0, - "TotalBytes": 33554432, - "UnusedBytes": 33437504, - "Allocations": 10, - "UnusedRanges": 4, - "Suballocations": [ - {"Offset": 0, "Type": "BUFFER", "Size": 128, "Usage": 130, "Name": "__mlx_pixel_put_pipeline_texture_GPU_vertex_buffer"}, - {"Offset": 128, "Type": "BUFFER", "Size": 12, "Usage": 66, "Name": "__mlx_pixel_put_pipeline_texture_GPU_index_buffer"}, - {"Offset": 140, "Type": "FREE", "Size": 4}, - {"Offset": 144, "Type": "BUFFER", "Size": 128, "Usage": 130, "Name": "42_logo.png_GPU_vertex_buffer"}, - {"Offset": 272, "Type": "BUFFER", "Size": 12, "Usage": 66, "Name": "42_logo.png_GPU_index_buffer"}, - {"Offset": 284, "Type": "FREE", "Size": 4}, - {"Offset": 288, "Type": "BUFFER", "Size": 128, "Usage": 130, "Name": "__mlx_unamed_user_texture_GPU_vertex_buffer"}, - {"Offset": 416, "Type": "BUFFER", "Size": 12, "Usage": 66, "Name": "__mlx_unamed_user_texture_GPU_index_buffer"}, - {"Offset": 428, "Type": "BUFFER", "Size": 156, "Usage": 66, "Name": "that's a text_GPU_index_buffer"}, - {"Offset": 584, "Type": "FREE", "Size": 440}, - {"Offset": 1024, "Type": "IMAGE_OPTIMAL", "Size": 57344, "Usage": 7, "Name": "42_logo.png"}, - {"Offset": 58368, "Type": "IMAGE_OPTIMAL", "Size": 57344, "Usage": 7, "Name": "__mlx_unamed_user_texture"}, - {"Offset": 115712, "Type": "BUFFER", "Size": 1664, "Usage": 130, "Name": "that's a text_GPU_vertex_buffer"}, - {"Offset": 117376, "Type": "FREE", "Size": 33437056} - ] - } - }, - "DedicatedAllocations": [ - {"Type": "IMAGE_OPTIMAL", "Size": 819200, "Usage": 7, "Name": "__mlx_pixel_put_pipeline_texture"}, - {"Type": "IMAGE_OPTIMAL", "Size": 1048576, "Usage": 7, "Name": "__mlx_texts_pipeline_texture_atlas"} - ] - }, - "Type 2": { - "PreferredBlockSize": 268435456, - "Blocks": { - "0": { - "MapRefCount": 2, - "TotalBytes": 33554432, - "UnusedBytes": 32874432, - "Allocations": 2, - "UnusedRanges": 1, - "Suballocations": [ - {"Offset": 0, "Type": "BUFFER", "Size": 640000, "Usage": 1, "Name": "__mlx_pixel_put_pipeline_texture_buffer"}, - {"Offset": 640000, "Type": "BUFFER", "Size": 40000, "Usage": 3, "Name": "__mlx_unamed_user_texture_buffer"}, - {"Offset": 680000, "Type": "FREE", "Size": 32874432} - ] - } - }, - "DedicatedAllocations": [ - ] - }, - "Type 3": { - "PreferredBlockSize": 268435456, - "Blocks": { - }, - "DedicatedAllocations": [ - ] - }, - "Type 4": { - "PreferredBlockSize": 32243712, - "Blocks": { - "0": { - "MapRefCount": 3, - "TotalBytes": 4030464, - "UnusedBytes": 4030272, - "Allocations": 3, - "UnusedRanges": 1, - "Suballocations": [ - {"Offset": 0, "Type": "BUFFER", "Size": 64, "Usage": 16, "Name": "__mlx_matrices_uniform_buffer_0_buffer"}, - {"Offset": 64, "Type": "BUFFER", "Size": 64, "Usage": 16, "Name": "__mlx_matrices_uniform_buffer_1_buffer"}, - {"Offset": 128, "Type": "BUFFER", "Size": 64, "Usage": 16, "Name": "__mlx_matrices_uniform_buffer_2_buffer"}, - {"Offset": 192, "Type": "FREE", "Size": 4030272} - ] - } - }, - "DedicatedAllocations": [ - ] - } - }, - "CustomPools": { - } -} \ No newline at end of file diff --git a/test/memory_dump3.json b/test/memory_dump3.json deleted file mode 100644 index 96ea825..0000000 --- a/test/memory_dump3.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "General": { - "API": "Vulkan", - "apiVersion": "1.3.260", - "GPU": "NVIDIA GeForce GTX 1650", - "deviceType": 2, - "maxMemoryAllocationCount": 4294967295, - "bufferImageGranularity": 1024, - "nonCoherentAtomSize": 64, - "memoryHeapCount": 3, - "memoryTypeCount": 5 - }, - "Total": { - "BlockCount": 5, - "BlockBytes": 73007104, - "AllocationCount": 17, - "AllocationBytes": 2664896, - "UnusedRangeCount": 6, - "AllocationSizeMin": 12, - "AllocationSizeMax": 1048576, - "UnusedRangeSizeMin": 4, - "UnusedRangeSizeMax": 33437056 - }, - "MemoryInfo": { - "Heap 0": { - "Flags": ["DEVICE_LOCAL"], - "Size": 4294967296, - "Budget": { - "BudgetBytes": 3435973836, - "UsageBytes": 35422208 - }, - "Stats": { - "BlockCount": 3, - "BlockBytes": 35422208, - "AllocationCount": 12, - "AllocationBytes": 1984704, - "UnusedRangeCount": 4, - "AllocationSizeMin": 12, - "AllocationSizeMax": 1048576, - "UnusedRangeSizeMin": 4, - "UnusedRangeSizeMax": 33437056 - }, - "MemoryPools": { - "Type 1": { - "Flags": ["DEVICE_LOCAL"], - "Stats": { - "BlockCount": 3, - "BlockBytes": 35422208, - "AllocationCount": 12, - "AllocationBytes": 1984704, - "UnusedRangeCount": 4, - "AllocationSizeMin": 12, - "AllocationSizeMax": 1048576, - "UnusedRangeSizeMin": 4, - "UnusedRangeSizeMax": 33437056 - } - } - } - }, - "Heap 1": { - "Flags": [], - "Size": 6071976960, - "Budget": { - "BudgetBytes": 4857581568, - "UsageBytes": 33554432 - }, - "Stats": { - "BlockCount": 1, - "BlockBytes": 33554432, - "AllocationCount": 2, - "AllocationBytes": 680000, - "UnusedRangeCount": 1, - "AllocationSizeMin": 40000, - "AllocationSizeMax": 640000 - }, - "MemoryPools": { - "Type 0": { - "Flags": [], - "Stats": { - "BlockCount": 0, - "BlockBytes": 0, - "AllocationCount": 0, - "AllocationBytes": 0, - "UnusedRangeCount": 0 - } - }, - "Type 2": { - "Flags": ["HOST_VISIBLE", "HOST_COHERENT"], - "Stats": { - "BlockCount": 1, - "BlockBytes": 33554432, - "AllocationCount": 2, - "AllocationBytes": 680000, - "UnusedRangeCount": 1, - "AllocationSizeMin": 40000, - "AllocationSizeMax": 640000 - } - }, - "Type 3": { - "Flags": ["HOST_VISIBLE", "HOST_COHERENT", "HOST_CACHED"], - "Stats": { - "BlockCount": 0, - "BlockBytes": 0, - "AllocationCount": 0, - "AllocationBytes": 0, - "UnusedRangeCount": 0 - } - } - } - }, - "Heap 2": { - "Flags": ["DEVICE_LOCAL"], - "Size": 257949696, - "Budget": { - "BudgetBytes": 206359756, - "UsageBytes": 4030464 - }, - "Stats": { - "BlockCount": 1, - "BlockBytes": 4030464, - "AllocationCount": 3, - "AllocationBytes": 192, - "UnusedRangeCount": 1, - "AllocationSizeMin": 64, - "AllocationSizeMax": 64 - }, - "MemoryPools": { - "Type 4": { - "Flags": ["DEVICE_LOCAL", "HOST_VISIBLE", "HOST_COHERENT"], - "Stats": { - "BlockCount": 1, - "BlockBytes": 4030464, - "AllocationCount": 3, - "AllocationBytes": 192, - "UnusedRangeCount": 1, - "AllocationSizeMin": 64, - "AllocationSizeMax": 64 - } - } - } - } - }, - "DefaultPools": { - "Type 0": { - "PreferredBlockSize": 268435456, - "Blocks": { - }, - "DedicatedAllocations": [ - ] - }, - "Type 1": { - "PreferredBlockSize": 268435456, - "Blocks": { - "0": { - "MapRefCount": 0, - "TotalBytes": 33554432, - "UnusedBytes": 33437504, - "Allocations": 10, - "UnusedRanges": 4, - "Suballocations": [ - {"Offset": 0, "Type": "BUFFER", "Size": 128, "Usage": 130, "Name": "__mlx_pixel_put_pipeline_texture_GPU_vertex_buffer"}, - {"Offset": 128, "Type": "BUFFER", "Size": 12, "Usage": 66, "Name": "__mlx_pixel_put_pipeline_texture_GPU_index_buffer"}, - {"Offset": 140, "Type": "FREE", "Size": 4}, - {"Offset": 144, "Type": "BUFFER", "Size": 128, "Usage": 130, "Name": "42_logo.png_GPU_vertex_buffer"}, - {"Offset": 272, "Type": "BUFFER", "Size": 12, "Usage": 66, "Name": "42_logo.png_GPU_index_buffer"}, - {"Offset": 284, "Type": "FREE", "Size": 4}, - {"Offset": 288, "Type": "BUFFER", "Size": 128, "Usage": 130, "Name": "__mlx_unamed_user_texture_GPU_vertex_buffer"}, - {"Offset": 416, "Type": "BUFFER", "Size": 12, "Usage": 66, "Name": "__mlx_unamed_user_texture_GPU_index_buffer"}, - {"Offset": 428, "Type": "BUFFER", "Size": 156, "Usage": 66, "Name": "that's a text_GPU_index_buffer"}, - {"Offset": 584, "Type": "FREE", "Size": 440}, - {"Offset": 1024, "Type": "IMAGE_OPTIMAL", "Size": 57344, "Usage": 7, "Name": "42_logo.png"}, - {"Offset": 58368, "Type": "IMAGE_OPTIMAL", "Size": 57344, "Usage": 7, "Name": "__mlx_unamed_user_texture"}, - {"Offset": 115712, "Type": "BUFFER", "Size": 1664, "Usage": 130, "Name": "that's a text_GPU_vertex_buffer"}, - {"Offset": 117376, "Type": "FREE", "Size": 33437056} - ] - } - }, - "DedicatedAllocations": [ - {"Type": "IMAGE_OPTIMAL", "Size": 819200, "Usage": 7, "Name": "__mlx_pixel_put_pipeline_texture"}, - {"Type": "IMAGE_OPTIMAL", "Size": 1048576, "Usage": 7, "Name": "__mlx_texts_pipeline_texture_atlas"} - ] - }, - "Type 2": { - "PreferredBlockSize": 268435456, - "Blocks": { - "0": { - "MapRefCount": 2, - "TotalBytes": 33554432, - "UnusedBytes": 32874432, - "Allocations": 2, - "UnusedRanges": 1, - "Suballocations": [ - {"Offset": 0, "Type": "BUFFER", "Size": 640000, "Usage": 1, "Name": "__mlx_pixel_put_pipeline_texture_buffer"}, - {"Offset": 640000, "Type": "BUFFER", "Size": 40000, "Usage": 3, "Name": "__mlx_unamed_user_texture_buffer"}, - {"Offset": 680000, "Type": "FREE", "Size": 32874432} - ] - } - }, - "DedicatedAllocations": [ - ] - }, - "Type 3": { - "PreferredBlockSize": 268435456, - "Blocks": { - }, - "DedicatedAllocations": [ - ] - }, - "Type 4": { - "PreferredBlockSize": 32243712, - "Blocks": { - "0": { - "MapRefCount": 3, - "TotalBytes": 4030464, - "UnusedBytes": 4030272, - "Allocations": 3, - "UnusedRanges": 1, - "Suballocations": [ - {"Offset": 0, "Type": "BUFFER", "Size": 64, "Usage": 16, "Name": "__mlx_matrices_uniform_buffer_0_buffer"}, - {"Offset": 64, "Type": "BUFFER", "Size": 64, "Usage": 16, "Name": "__mlx_matrices_uniform_buffer_1_buffer"}, - {"Offset": 128, "Type": "BUFFER", "Size": 64, "Usage": 16, "Name": "__mlx_matrices_uniform_buffer_2_buffer"}, - {"Offset": 192, "Type": "FREE", "Size": 4030272} - ] - } - }, - "DedicatedAllocations": [ - ] - } - }, - "CustomPools": { - } -} \ No newline at end of file diff --git a/test/memory_dump4.json b/test/memory_dump4.json deleted file mode 100644 index 96ea825..0000000 --- a/test/memory_dump4.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "General": { - "API": "Vulkan", - "apiVersion": "1.3.260", - "GPU": "NVIDIA GeForce GTX 1650", - "deviceType": 2, - "maxMemoryAllocationCount": 4294967295, - "bufferImageGranularity": 1024, - "nonCoherentAtomSize": 64, - "memoryHeapCount": 3, - "memoryTypeCount": 5 - }, - "Total": { - "BlockCount": 5, - "BlockBytes": 73007104, - "AllocationCount": 17, - "AllocationBytes": 2664896, - "UnusedRangeCount": 6, - "AllocationSizeMin": 12, - "AllocationSizeMax": 1048576, - "UnusedRangeSizeMin": 4, - "UnusedRangeSizeMax": 33437056 - }, - "MemoryInfo": { - "Heap 0": { - "Flags": ["DEVICE_LOCAL"], - "Size": 4294967296, - "Budget": { - "BudgetBytes": 3435973836, - "UsageBytes": 35422208 - }, - "Stats": { - "BlockCount": 3, - "BlockBytes": 35422208, - "AllocationCount": 12, - "AllocationBytes": 1984704, - "UnusedRangeCount": 4, - "AllocationSizeMin": 12, - "AllocationSizeMax": 1048576, - "UnusedRangeSizeMin": 4, - "UnusedRangeSizeMax": 33437056 - }, - "MemoryPools": { - "Type 1": { - "Flags": ["DEVICE_LOCAL"], - "Stats": { - "BlockCount": 3, - "BlockBytes": 35422208, - "AllocationCount": 12, - "AllocationBytes": 1984704, - "UnusedRangeCount": 4, - "AllocationSizeMin": 12, - "AllocationSizeMax": 1048576, - "UnusedRangeSizeMin": 4, - "UnusedRangeSizeMax": 33437056 - } - } - } - }, - "Heap 1": { - "Flags": [], - "Size": 6071976960, - "Budget": { - "BudgetBytes": 4857581568, - "UsageBytes": 33554432 - }, - "Stats": { - "BlockCount": 1, - "BlockBytes": 33554432, - "AllocationCount": 2, - "AllocationBytes": 680000, - "UnusedRangeCount": 1, - "AllocationSizeMin": 40000, - "AllocationSizeMax": 640000 - }, - "MemoryPools": { - "Type 0": { - "Flags": [], - "Stats": { - "BlockCount": 0, - "BlockBytes": 0, - "AllocationCount": 0, - "AllocationBytes": 0, - "UnusedRangeCount": 0 - } - }, - "Type 2": { - "Flags": ["HOST_VISIBLE", "HOST_COHERENT"], - "Stats": { - "BlockCount": 1, - "BlockBytes": 33554432, - "AllocationCount": 2, - "AllocationBytes": 680000, - "UnusedRangeCount": 1, - "AllocationSizeMin": 40000, - "AllocationSizeMax": 640000 - } - }, - "Type 3": { - "Flags": ["HOST_VISIBLE", "HOST_COHERENT", "HOST_CACHED"], - "Stats": { - "BlockCount": 0, - "BlockBytes": 0, - "AllocationCount": 0, - "AllocationBytes": 0, - "UnusedRangeCount": 0 - } - } - } - }, - "Heap 2": { - "Flags": ["DEVICE_LOCAL"], - "Size": 257949696, - "Budget": { - "BudgetBytes": 206359756, - "UsageBytes": 4030464 - }, - "Stats": { - "BlockCount": 1, - "BlockBytes": 4030464, - "AllocationCount": 3, - "AllocationBytes": 192, - "UnusedRangeCount": 1, - "AllocationSizeMin": 64, - "AllocationSizeMax": 64 - }, - "MemoryPools": { - "Type 4": { - "Flags": ["DEVICE_LOCAL", "HOST_VISIBLE", "HOST_COHERENT"], - "Stats": { - "BlockCount": 1, - "BlockBytes": 4030464, - "AllocationCount": 3, - "AllocationBytes": 192, - "UnusedRangeCount": 1, - "AllocationSizeMin": 64, - "AllocationSizeMax": 64 - } - } - } - } - }, - "DefaultPools": { - "Type 0": { - "PreferredBlockSize": 268435456, - "Blocks": { - }, - "DedicatedAllocations": [ - ] - }, - "Type 1": { - "PreferredBlockSize": 268435456, - "Blocks": { - "0": { - "MapRefCount": 0, - "TotalBytes": 33554432, - "UnusedBytes": 33437504, - "Allocations": 10, - "UnusedRanges": 4, - "Suballocations": [ - {"Offset": 0, "Type": "BUFFER", "Size": 128, "Usage": 130, "Name": "__mlx_pixel_put_pipeline_texture_GPU_vertex_buffer"}, - {"Offset": 128, "Type": "BUFFER", "Size": 12, "Usage": 66, "Name": "__mlx_pixel_put_pipeline_texture_GPU_index_buffer"}, - {"Offset": 140, "Type": "FREE", "Size": 4}, - {"Offset": 144, "Type": "BUFFER", "Size": 128, "Usage": 130, "Name": "42_logo.png_GPU_vertex_buffer"}, - {"Offset": 272, "Type": "BUFFER", "Size": 12, "Usage": 66, "Name": "42_logo.png_GPU_index_buffer"}, - {"Offset": 284, "Type": "FREE", "Size": 4}, - {"Offset": 288, "Type": "BUFFER", "Size": 128, "Usage": 130, "Name": "__mlx_unamed_user_texture_GPU_vertex_buffer"}, - {"Offset": 416, "Type": "BUFFER", "Size": 12, "Usage": 66, "Name": "__mlx_unamed_user_texture_GPU_index_buffer"}, - {"Offset": 428, "Type": "BUFFER", "Size": 156, "Usage": 66, "Name": "that's a text_GPU_index_buffer"}, - {"Offset": 584, "Type": "FREE", "Size": 440}, - {"Offset": 1024, "Type": "IMAGE_OPTIMAL", "Size": 57344, "Usage": 7, "Name": "42_logo.png"}, - {"Offset": 58368, "Type": "IMAGE_OPTIMAL", "Size": 57344, "Usage": 7, "Name": "__mlx_unamed_user_texture"}, - {"Offset": 115712, "Type": "BUFFER", "Size": 1664, "Usage": 130, "Name": "that's a text_GPU_vertex_buffer"}, - {"Offset": 117376, "Type": "FREE", "Size": 33437056} - ] - } - }, - "DedicatedAllocations": [ - {"Type": "IMAGE_OPTIMAL", "Size": 819200, "Usage": 7, "Name": "__mlx_pixel_put_pipeline_texture"}, - {"Type": "IMAGE_OPTIMAL", "Size": 1048576, "Usage": 7, "Name": "__mlx_texts_pipeline_texture_atlas"} - ] - }, - "Type 2": { - "PreferredBlockSize": 268435456, - "Blocks": { - "0": { - "MapRefCount": 2, - "TotalBytes": 33554432, - "UnusedBytes": 32874432, - "Allocations": 2, - "UnusedRanges": 1, - "Suballocations": [ - {"Offset": 0, "Type": "BUFFER", "Size": 640000, "Usage": 1, "Name": "__mlx_pixel_put_pipeline_texture_buffer"}, - {"Offset": 640000, "Type": "BUFFER", "Size": 40000, "Usage": 3, "Name": "__mlx_unamed_user_texture_buffer"}, - {"Offset": 680000, "Type": "FREE", "Size": 32874432} - ] - } - }, - "DedicatedAllocations": [ - ] - }, - "Type 3": { - "PreferredBlockSize": 268435456, - "Blocks": { - }, - "DedicatedAllocations": [ - ] - }, - "Type 4": { - "PreferredBlockSize": 32243712, - "Blocks": { - "0": { - "MapRefCount": 3, - "TotalBytes": 4030464, - "UnusedBytes": 4030272, - "Allocations": 3, - "UnusedRanges": 1, - "Suballocations": [ - {"Offset": 0, "Type": "BUFFER", "Size": 64, "Usage": 16, "Name": "__mlx_matrices_uniform_buffer_0_buffer"}, - {"Offset": 64, "Type": "BUFFER", "Size": 64, "Usage": 16, "Name": "__mlx_matrices_uniform_buffer_1_buffer"}, - {"Offset": 128, "Type": "BUFFER", "Size": 64, "Usage": 16, "Name": "__mlx_matrices_uniform_buffer_2_buffer"}, - {"Offset": 192, "Type": "FREE", "Size": 4030272} - ] - } - }, - "DedicatedAllocations": [ - ] - } - }, - "CustomPools": { - } -} \ No newline at end of file