JPL Spatial
Sound spatialization and propagation library
Loading...
Searching...
No Matches
JPL::CountingResource Class Reference

#include <JPLSpatial/Memory/Memory.h>

Inheritance diagram for JPL::CountingResource:

Public Member Functions

 CountingResource (std::pmr::memory_resource *upstream)
 

Public Attributes

std::pmr::memory_resource * Upstream
 
std::size_t InUse = 0
 
std::size_t MaxUsage = 0
 

Detailed Description

Simple std::memory_resource wrapper that counts memory usage. Can be used for debugging and for dynamic memory resources adjustment based on the usage.

Constructor & Destructor Documentation

◆ CountingResource()

JPL::CountingResource::CountingResource ( std::pmr::memory_resource *  upstream)
inlineexplicit

Member Data Documentation

◆ InUse

std::size_t JPL::CountingResource::InUse = 0

◆ MaxUsage

std::size_t JPL::CountingResource::MaxUsage = 0

◆ Upstream

std::pmr::memory_resource* JPL::CountingResource::Upstream

The documentation for this class was generated from the following file: