# MemoryProfiler2

**URL:** <https://forums.unrealengine.com/t/memoryprofiler2/475975>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** memory-leak, profiling, memory-usage, unreal-engine, memory, question\
**Created:** [December 16, 2020, 1:36am UTC](https://forums.unrealengine.com/t/memoryprofiler2/475975 "2020-12-16T01:36:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_8e61df6c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8e61df6c](https://forums.unrealengine.com/u/anonymous_user_8e61df6c)\
**Post date:** [December 16, 2020, 1:36am UTC](https://forums.unrealengine.com/t/memoryprofiler2/475975/1 "2020-12-16T01:36:14Z")

</div>

Hi, I wanted to check whether MemoryProfiler2 is still supported or in a working state. I cannot get any callstacks out of the captured .mprof files. I rebuilt the MemoryProfiler2 solution as well to make sure.

Thanks!

---

<div class="post-metadata">

**Author:** ![ZephyrJoey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZephyrJoey](https://forums.unrealengine.com/u/ZephyrJoey)\
**Post date:** [June 9, 2021, 10:43am UTC](https://forums.unrealengine.com/t/memoryprofiler2/475975/2 "2021-06-09T10:43:04Z")

</div>

Hi

Though my own experience, MemoryProfiler2 is still valid for UE 4.25.  
To enable profiling, find **/Engine/Saved/UnrealBuildTool/BuildConfigurations.xml**  
and add

`

```
<BuildConfiguration>
    <bUseMallocProfiler>true</bUseMallocProfiler>
</BuildConfiguration>

```

`

Then rebuild your engine from source.

Once successfully rebuilt, your game project will have memory profiling functions running since your editor is launched.  
You could either type `mprof stop` in the editor console (cmd) if you want to stop the profiling, or simple close the editor as normal.

The profiling file will be output to **YourGameProject\Saved\Profiling\xxx.mprof** , if you stop the profiling through `mprof` command, the output window will also tell you where the output file locates.

To analyze this file, change the launching project to MemoryProfiler2 in your IDE (e.g. Visual Stuido), and then you’ll see a program with blue Unreal icon starts, you may import the file, and then click the green “Go” button in the program, which will provide you with the analysis and visualization.
