mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2026-08-28 05:45:30 -05:00
Add iopshell command for showing memory usage
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -79,6 +79,8 @@ public:
|
||||
|
||||
[[nodiscard]] const IPluginHeapMemoryAllocator &getMemoryAllocator() const;
|
||||
|
||||
[[nodiscard]] const TrackingPluginHeapMemoryAllocator *getTrackingMemoryAllocator() const;
|
||||
|
||||
private:
|
||||
PluginMetaInformation mMetaInformation;
|
||||
PluginLinkInformation mPluginLinkInformation;
|
||||
|
||||
Reference in New Issue
Block a user