FEXCore/fexl: Support a named monotonic_buffer_resource

Lets us track our memory usage of our block links.
This commit is contained in:
Ryan Houdek committed 2025-10-08 16:43:28 -07:00
1 parent 8647033029
commit 282f091e85
3 files changed
+88 -2

No files matched your search

@@ -15,7 +15,7 @@ $end_info$
namespace FEXCore {
GuestToHostMap::GuestToHostMap()
: BlockLinks_mbr {fextl::pmr::get_default_resource()} {
: BlockLinks_mbr {"FEXMem_BlockLinks"} {
BlockLinks_pma = fextl::make_unique<std::pmr::polymorphic_allocator<std::byte>>(&BlockLinks_mbr);
// Setup our PMR map.
BlockLinks = BlockLinks_pma->new_object<BlockLinksMapType>();