Commit d9aeb9e28e74
tarball1 file changed+10-2
@@ -1,6 +1,6 @@
11
use crate::Error;22
use ash::vk;3
-use gpu_allocator::AllocationSizes;3
+use gpu_allocator::{AllocationSizes, AllocatorDebugSettings};44
use gpu_allocator::vulkan::{Allocator, AllocatorCreateDesc};55
use std::mem::ManuallyDrop;66
use std::sync::Mutex;@@ -196,7 +196,15 @@ impl Shared {
196196
instance: instance.clone(),197197
device: device.clone(),198198
physical_device: physical,199
- debug_settings: Default::default(),199
+ // The live compositor is non-dumpable, so with200
+ // RUST_LOG=gpu_allocator=debug its log is the only way to see201
+ // what fills the memory it maps.202
+ debug_settings: AllocatorDebugSettings {203
+ log_memory_information: true,204
+ log_allocations: true,205
+ log_frees: true,206
+ ..Default::default()207
+ },200208
buffer_device_address: false,201209
// Host blocks are pinned system RAM that stays resident while any202210
// allocation lives in them, and the default 64 MB block is mostly idle.