Navigation
API > API/Plugins > API/Plugins/MemoryUsageQueries
“MemQuery Collection” will list memory consumption based on assets discovered that have a path matching the one described in the ini file. Matching supports Wildcards. e.g. /Game/* This will match assets such as /SomePath/Game/SomeLevelAsset
Define these in DefaultMemoryUsageQueries.ini in your project – you have to provide preset name and UClass.
e.g. Include all Characters and Pawns but exclude anything with Item in the path. Demonstrates wildcard usage. [/Script/MemoryUsageQueries.MemoryUsageQueriesConfig] +Collections = (Name="Pawns", Includes=("*/Character*/*", "/Pawn/"), Excludes=("*/Item*/*"))
A budget can be defined which will compare the total memory against the budget e.g. [/Script/MemoryUsageQueries.MemoryUsageQueriesConfig] +Collections = (Name="Pawns", Includes=("/Character/", "/Pawn/"), BudgetMB=2.0)
"MemQuery Savings" command will list all derived classes with potential savings for the specified preset.
e.g. [/Script/MemoryUsageQueries.MemoryUsageQueriesConfig] +SavingsPresets = (("Pawns", "/Script/OurProject.OurCharacter"))
| Name | FCollectionInfo |
| Type | struct |
| Header File | /Engine/Plugins/MemoryUsageQueries/Source/MemoryUsageQueries/Public/MemoryUsageQueriesConfig.h |
| Include Path | #include "MemoryUsageQueriesConfig.h" |
Syntax
USTRUCT ()
struct FCollectionInfo
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCollectionInfo() |
MemoryUsageQueriesConfig.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BudgetMB | float | Budget in MB. | MemoryUsageQueriesConfig.h | |
| Excludes | TArray< FString > | Paths of asset package paths to exclude from the results. | MemoryUsageQueriesConfig.h | |
| Includes | TArray< FString > | Collection of substrings to include whne matching against asset package paths. | MemoryUsageQueriesConfig.h | |
| Name | FString | Name of the collection. | MemoryUsageQueriesConfig.h |