Add iopshell command for showing memory usage

This commit is contained in:
Maschell
2026-02-15 12:39:18 +01:00
parent ae25d0736c
commit 74a3b02a7e
6 changed files with 201 additions and 2 deletions

View File

@@ -171,4 +171,11 @@ const IPluginHeapMemoryAllocator &PluginContainer::getMemoryAllocator() const {
return *mTrackingHeapAllocatorOpt;
}
return DefaultPluginHeapMemoryAllocator::gDefaultPluginHeapMemoryAllocator;
}
}
const TrackingPluginHeapMemoryAllocator *PluginContainer::getTrackingMemoryAllocator() const {
if (mTrackingHeapAllocatorOpt) {
return &(mTrackingHeapAllocatorOpt.value());
}
return nullptr;
}

View File

@@ -79,6 +79,8 @@ public:
[[nodiscard]] const IPluginHeapMemoryAllocator &getMemoryAllocator() const;
[[nodiscard]] const TrackingPluginHeapMemoryAllocator *getTrackingMemoryAllocator() const;
private:
PluginMetaInformation mMetaInformation;
PluginLinkInformation mPluginLinkInformation;