class PmrStatsResource
Defined at line 17 of file ../../src/ui/scenic/lib/utils/pmr_stats_resource.h
A std::pmr::memory_resource wrapper that tracks allocation and deallocation statistics.
It delegates the actual allocation to an upstream memory resource.
Public Methods
void PmrStatsResource (std::pmr::memory_resource * upstream)
Defined at line 19 of file ../../src/ui/scenic/lib/utils/pmr_stats_resource.h
size_t total_allocation_count ()
Defined at line 24 of file ../../src/ui/scenic/lib/utils/pmr_stats_resource.h
size_t total_allocated_bytes ()
Defined at line 25 of file ../../src/ui/scenic/lib/utils/pmr_stats_resource.h
size_t total_deallocation_count ()
Defined at line 26 of file ../../src/ui/scenic/lib/utils/pmr_stats_resource.h
size_t total_deallocated_bytes ()
Defined at line 27 of file ../../src/ui/scenic/lib/utils/pmr_stats_resource.h
size_t outstanding_allocations ()
Defined at line 28 of file ../../src/ui/scenic/lib/utils/pmr_stats_resource.h
size_t outstanding_bytes ()
Defined at line 31 of file ../../src/ui/scenic/lib/utils/pmr_stats_resource.h
void Reset ()
Defined at line 33 of file ../../src/ui/scenic/lib/utils/pmr_stats_resource.h
Protected Methods
void * do_allocate (size_t bytes, size_t alignment)
Defined at line 43 of file ../../src/ui/scenic/lib/utils/pmr_stats_resource.h
void do_deallocate (void *p,size_tbytes,size_talignment)
Defined at line 49 of file ../../src/ui/scenic/lib/utils/pmr_stats_resource.h
bool do_is_equal (const std::pmr::memory_resource & other)
Defined at line 55 of file ../../src/ui/scenic/lib/utils/pmr_stats_resource.h