# Monitoring FMOD Studio Performance on UE4

**URL:** <https://qa.fmod.com/t/monitoring-fmod-studio-performance-on-ue4/12908>\
**Category:** Unreal Engine\
**Created:** [January 5, 2017, 10:51am UTC](https://qa.fmod.com/t/monitoring-fmod-studio-performance-on-ue4/12908 "2017-01-05T10:51:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yihoe1](https://avatars.discourse-cdn.com/v4/letter/y/76d3ee/32.png) [@yihoe1](https://qa.fmod.com/u/yihoe1)\
**Post date:** [January 5, 2017, 10:51am UTC](https://qa.fmod.com/t/monitoring-fmod-studio-performance-on-ue4/12908/1 "2017-01-05T10:51:24Z")

</div>

Hi,

I want to monitor FMOD Performance values, such as ‘how many channels are active’, ‘how many channels are virtualized’, ‘how much memory occupied by FMODStudio’, ‘How many streaming channels are playing’, ‘Buffer size’ and so on…

However, there’s only one stat command ‘STAT FMOD’, and I can’t understand what means ‘CPU Mixer’ and ‘CPU Studio’.

As for Unreal original audio system, there are some stats like below,  
Stat AUDIO  
Stat AudioThread Command  
Stat Soundwaves  
Stat Sounds  
Stat Soundmixes  
of course, Using FMODStudio, these stats are meaningless.

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [January 9, 2017, 2:22am UTC](https://qa.fmod.com/t/monitoring-fmod-studio-performance-on-ue4/12908/2 "2017-01-09T02:22:10Z")

</div>

There a few things that are easily accessible, similar to what is displayed in our Unity integration.

```
 FMOD_STUDIO_CPU_USAGE cpuUsage;
 studioSystem->getCPUUsage(&cpuUsage);
 
 int currentAlloc, maxAlloc;
 result = FMOD_Memory_GetStats(&currentAlloc, &maxAlloc, false);
 
 int realchannels, channels;
 lowlevel->getChannelsPlaying(&channels, &realchannels);

 FMOD_DSP_METERING_INFO metering;
 // attached to metering FMOD::DSP* (created around init)
 meteringDSP->getMeteringInfo(NULL, &metering);

```

We will look at adding this to the UE4 integration in the future.

---

<div class="post-metadata">

**Author:** ![yihoe1](https://avatars.discourse-cdn.com/v4/letter/y/76d3ee/32.png) [@yihoe1](https://qa.fmod.com/u/yihoe1)\
**Post date:** [January 11, 2017, 4:08am UTC](https://qa.fmod.com/t/monitoring-fmod-studio-performance-on-ue4/12908/3 "2017-01-11T04:08:24Z")

</div>

> [@](#):
>
> There a few things that are easily accessible, similar to what is displayed in our Unity integration.
> 
> ```
> FMOD_STUDIO_CPU_USAGE cpuUsage;
> studioSystem->getCPUUsage(&cpuUsage);
>  
> int currentAlloc, maxAlloc;
> result = FMOD_Memory_GetStats(&currentAlloc, &maxAlloc, false);
>  
> int realchannels, channels;
> lowlevel->getChannelsPlaying(&channels, &realchannels);
> 
> FMOD_DSP_METERING_INFO metering;
> // attached to metering FMOD::DSP* (created around init)
> meteringDSP->getMeteringInfo(NULL, &metering);
> 
> ```
> 
> We will look at adding this to the UE4 integration in the future.

Thanks and I hope you add those to the UE4 integration soon.  
By the way, what means ‘CPU Studio’ And ‘CPU Mixer’ on STAT FMOD ?  
Their average and max values are percentage or not?

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [January 11, 2017, 5:40am UTC](https://qa.fmod.com/t/monitoring-fmod-studio-performance-on-ue4/12908/4 "2017-01-11T05:40:21Z")

</div>

Yes they are percentage of CPU time.  
CPU Studio is only from the studio thread and CPU Mixer is for the low level mixer thread.
