UE5 Profile memory

UE5 provides a variety of Profile memory (Memory) methods.

memreport -full

Enter memreport -full on the cmd command line 

The memory report file will be output to Saved\Profiling\MemReports\XXX.memreport

Open XXX.memreport with text file

Physical memory and virtual memory related information

Process Physical Memory Process Virtual Memory Physical Memory Virtual Memory
Process physical memory process virtual memory physical memory Virtual Memory

Tag memory usage

UE Allocator marks the allocated memory with special marks, such as TEXTUREGROUP_Lightmap, TEXTUREGROUP_UI, etc.

 

Number of UObject objects and memory statistics 

 The last line calculates the total memory of Objects

Class Count NumKB MaxKB ResExcKB ResExcDedSysKB ResExcShrSysKB ResExcUnkKB
Class of UObject quantity

use

Memory

Maximum memory usage

Sum of other ResExc

Number of bytes allocated in dedicated system memory Number of bytes allocated in shared system memory Number of bytes allocated in location memory
ResExcDedVid ResExcShrVidKB
Number of bytes allocated in dedicated video memory (VRAM) Number of bytes allocated in shared video memory (VRAM)

RHI memory

RHI resource memory ( more specific than RHI memory )

 The number of resource Object objects and memory statistics of SkeletalMesh 

 Number of resource Object objects and memory statistics of StaticMesh

 Specific texture object memory usage (non-VirtualTexture)

Particle system takes up memory 

.ini configuration files occupy memory

RT pool takes up memory 

Specific texture object memory usage

 StaticMeshCompoent occupies memory Object object statistics

Unreal Insights--Memory Insights

Documentation in:  Memory Insights in Unreal Engine | Unreal Engine 5.2 Documentation (unrealengine.com)

Open Unreal Insights

UnrealInsights.exe is an independent Profile program, located in Engine\Binaries\Win64

 If the UnrealInsights.exe executable program does not exist in the directory, it must be built in the project

 Open display: Live represents running processes

Add execution command parameters to start Editor or project

 Trace analysis

Click OpenTrace of UnrealInsight above to open the capture information

 LLM Tags

You can list the object classes in the list that you want to view in the view on the left.

 Investigation

Memory investigation system, you can use rules (greater than a certain time point, less than a certain time point, between certain two time points) to display the memory allocated but not released over a period of time. The following is a view from 10 seconds to 20s Memory changes (memory statistics allocated after 10s and not released by 20s

 

 Here, click on the left side of each alloc name in Hierarchy to view the allocation program stack, memory size, source files, etc.:

 After looking at it, I feel that the shortcoming is that there is a lack of information. For example, the Memort -full command can point out the specific name and map path of an object.

Guess you like

Origin blog.csdn.net/qq_29523119/article/details/131628733