# Visualisation Tool For memreport

**URL:** <https://forums.unrealengine.com/t/visualisation-tool-for-memreport/394450>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** memory-leak, profiling, Optimization, memory-management, unreal-engine, question\
**Created:** [May 24, 2017, 8:36am UTC](https://forums.unrealengine.com/t/visualisation-tool-for-memreport/394450 "2017-05-24T08:36:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joshua\_NZ](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/joshua_nz/32/918677_2.png) [@Joshua\_NZ](https://forums.unrealengine.com/u/Joshua_NZ)\
**Post date:** [May 24, 2017, 8:36am UTC](https://forums.unrealengine.com/t/visualisation-tool-for-memreport/394450/1 "2017-05-24T08:36:15Z")

</div>

Hi,

I was wondering if there was a Visualisation tool for the output of the command ‘memreport’? Similar to the net profiler.

Cheers

EDIT:

Adding `true` to the Engine\Saved\UnrealBuildTool\BuildConfiguration.xml allowed me to use the mprof commands.

```
<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
	<BuildConfiguration>
	<bUseMallocProfiler>true</bUseMallocProfiler>
	</BuildConfiguration>
</Configuration>
```

---

<div class="post-metadata">

**Author:** ![joeypark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@joeypark](https://forums.unrealengine.com/u/joeypark)\
**Post date:** [May 24, 2017, 9:13am UTC](https://forums.unrealengine.com/t/visualisation-tool-for-memreport/394450/2 "2017-05-24T09:13:09Z")

</div>

you can use mprof start, stop, snapshot commands to dump memory. build and run MomoryProfiler2 to view that dump. for your reference, see FMallocProfiler::HandleMProfCommand function.  
source code path of MemoryProfiler2 is Engine\Source\Programs\MemoryProfiler2.

---

<div class="post-metadata">

**Author:** ![Joshua\_NZ](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/joshua_nz/32/918677_2.png) [@Joshua\_NZ](https://forums.unrealengine.com/u/Joshua_NZ)\
**Post date:** [May 24, 2017, 9:31am UTC](https://forums.unrealengine.com/t/visualisation-tool-for-memreport/394450/3 "2017-05-24T09:31:14Z")

</div>

Thanks for your answer regarding the profiler. I am unable to execute these mprof commands though?

[0105.17][188]Command not recognized: mprof start

---

<div class="post-metadata">

**Author:** ![joeypark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@joeypark](https://forums.unrealengine.com/u/joeypark)\
**Post date:** [May 25, 2017, 1:12am UTC](https://forums.unrealengine.com/t/visualisation-tool-for-memreport/394450/4 "2017-05-25T01:12:10Z")

</div>

sorry, you have to first enable USE\_MALLOC\_PROFILER macro to 1

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_19a902d2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_19a902d2](https://forums.unrealengine.com/u/anonymous_user_19a902d2)\
**Post date:** [May 20, 2019, 5:03pm UTC](https://forums.unrealengine.com/t/visualisation-tool-for-memreport/394450/5 "2019-05-20T17:03:32Z")

</div>

Don’t set the Macro to 1, use bUseMallocProfiler = true; in your game’s Target or you won’t be able to properly build UnrealHeaderTool (at least in the Switch toolchain)
