Traverse-Research / gpu-allocator

🦀 GPU memory allocator for Vulkan, DirectX 12 and Metal. Written in pure Rust
https://traverse.nl/
Apache License 2.0
380 stars 50 forks source link

Use formatter precision to limit number of lines printed in the allocator breakdown #133

Closed EmilioLaiso closed 2 years ago

EmilioLaiso commented 2 years ago

A handy way to limit the number of lines printed by the allocator breakdown using the precision syntax in the calling code. I.E.: println!("{:.20?}", alloc);