Hey James,
apologies for the wait, I’ve collected a bit more info from the Insights team.
> What would be your recommended workflow for getting memory usage stats on a per-asset basis in a packaged build?
You can either use the Asset Audit tool in the Editor (it allows loading of an DevelopmentAssetRegistry.bin from a cook), memreport at runtime (which relieas on manually implemented “self-reporting” of most classes) or Memory Insights (which tracks individual allocations and then tries to map those to assets based on metadata/context).
Each solution will give you a slightly different report and we don’t have a nice breakdown view for them (other than the “size map” in editor when right-clicking on assets, but this is editor data, not the actual game values).
Memory Insights is the most actively developed approach, but we’re still missing the asset name metadata for many allocations, as seen in your screenshot.
> I also couldnt find anything in the Unreal Insight documentation related to asset tags, apart from changing the alloc table hierarchy to “Path Breakdown - Asset”. What flags should I launch with, and what do I need to do to display them? I Tried a few different presets as well but none of them seem to show the assets, and I also wasn’t sure which query to use as you can only query allocs, and not “assets that are currently loaded” or something.
You can get basic grouping by asset tags with the following parameters:
-tracefile -trace=memory_light,memtags -llmtagsets=assets,assetclasses
This should allow you to group by package name and yield something like this view in the Allocs Table windows:
[Image Removed]
To get more detailed asset tag instrumentation you’ll need a custom build, since the detailed asset tags are not enabled by default (they have a per thread overhead even if not enabled).
To enable them you’ll need to define LLM_ALLOW_ASSETS_TAGS as 1, either by editing LowLevelMemTracker.h or by adding the define to your Game’s *.target.cs file.
The parameters stay the same, but this will give you the most detail in memory insights, especially by adding per asset metadata to allocations. The UI part here is only released in 5.6 unfortunately so the new view will not be available in Insights for 5.5:
[Image Removed]
All of those have in common that they don’t provide the size map view, but you’ll get lists that you can sort, group and filter in Insights.
Kind Regards,
Sebastian