# How to use the Profiler in FMOD Studio

**URL:** <https://qa.fmod.com/t/how-to-use-the-profiler-in-fmod-studio/11138>\
**Category:** FMOD Studio\
**Created:** [September 17, 2013, 9:39pm UTC](https://qa.fmod.com/t/how-to-use-the-profiler-in-fmod-studio/11138 "2013-09-17T21:39:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ehahn](https://avatars.discourse-cdn.com/v4/letter/e/e9c0ed/32.png) [@ehahn](https://qa.fmod.com/u/ehahn)\
**Post date:** [September 17, 2013, 9:39pm UTC](https://qa.fmod.com/t/how-to-use-the-profiler-in-fmod-studio/11138/1 "2013-09-17T21:39:47Z")

</div>

Hey,

I’m trying to use the profiler in FMOD studio to figure out a slowdown problem I’m having.

I can connect FMOD studio to my game properly, but when I go to the profiler window all of the sections are blank.

On the code side, my system is initialized with these flags:  
studio init flags set to FMOD\_STUDIO\_INIT\_LIVEUPDATE  
fmod Init Flags are FMOD\_INIT\_NORMAL | FMOD\_INIT\_3D\_RIGHTHANDED | FMOD\_INIT\_PROFILE\_ENABLE

If anyone has any advice on how to get the profiler working please let me know. Also, is there any documentation out there on how to use the profiler?

Thanks!

---

<div class="post-metadata">

**Author:** ![mathieu.lavoie](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@mathieu.lavoie](https://qa.fmod.com/u/mathieu.lavoie)\
**Post date:** [October 3, 2013, 5:20pm UTC](https://qa.fmod.com/t/how-to-use-the-profiler-in-fmod-studio/11138/2 "2013-10-03T17:20:34Z")

</div>

I would also like some documentation on how to use the Profiler.

Thanks

---

<div class="post-metadata">

**Author:** ![OneNight](https://avatars.discourse-cdn.com/v4/letter/o/bb73d2/32.png) [@OneNight](https://qa.fmod.com/u/OneNight)\
**Post date:** [October 3, 2013, 9:01pm UTC](https://qa.fmod.com/t/how-to-use-the-profiler-in-fmod-studio/11138/3 "2013-10-03T21:01:42Z")

</div>

What is the IP and port set to when you connect?

Also I believe there is some documentation in the FMOD Programmers API download.

---

<div class="post-metadata">

**Author:** ![Guest1](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@Guest1](https://qa.fmod.com/u/Guest1)\
**Post date:** [October 7, 2013, 9:42pm UTC](https://qa.fmod.com/t/how-to-use-the-profiler-in-fmod-studio/11138/4 "2013-10-07T21:42:04Z")

</div>

If the game is running on the same computer as Studio then you can connect to 127.0.0.1 or just “localhost” (without the quotation marks). If the game is running on a remote device or console then you will have to find the IP address of that device. On windows you can use ipconfig, on OSX you can check preferences -\> networking.

For Android:

[http://android.stackexchange.com/questi ... -phone-has](http://android.stackexchange.com/questions/2984/how-can-i-see-what-ip-address-my-android-phone-has)

For iOS:

[http://www.iclarified.com/entry/index.php?enid=496](http://www.iclarified.com/entry/index.php?enid=496)

---

<div class="post-metadata">

**Author:** ![lpaul](https://avatars.discourse-cdn.com/v4/letter/l/bcef8e/32.png) [@lpaul](https://qa.fmod.com/u/lpaul)\
**Post date:** [October 8, 2013, 8:09am UTC](https://qa.fmod.com/t/how-to-use-the-profiler-in-fmod-studio/11138/5 "2013-10-08T08:09:16Z")

</div>

In code, I was able to get the profiler and live update to work with FMOD Studio 1.2.2 by initializing with:

```auto
fmod_system.initialize(32, FMOD_STUDIO_INIT_LIVEUPDATE, FMOD_INIT_PROFILE_ENABLE, extraDriverData);
```

To do live update, from within FMOD Studio: File-\>Connect to Game… and then select the default loopback of IP “localhost” (127.0.0.1). This allows not only changing mixer setting for channels while the game’s playing but also data switching of sounds already loaded in a bank, trigger range timeline changes, effects changes and more which is pretty cool! This is a pretty amazing functionality for sound artists using FMOD Studio - looking for documentation details when it’s available.

For running the profiler, I just used the start menu:  
FMOD Studio API Windows-\>FMOD Profiler

Then just hit “Connect” with the default values when running on the same machine. There’s a bunch of extra options by clicking on the spanner (ie. wrench) in the bottom window in the top right.

It would be really nice if there was an indication of which sounds were actually playing as it appears to just be grouped by group inputs? As far as I can tell it isn’t possible to tell which sounds are currently playing. Having the option for a time tagged .csv spreadsheet output log of when sound events are triggered with information about CPU usage, voice usage etc… would be nice. Maybe having an example of how to hook up these with an example in the Studio API code examples would be helpful too in conjunction with the full documentation for these functions. It looks like things are currently in flux in this area of FMOD Studio so hopefully things will continue to progress.

---

<div class="post-metadata">

**Author:** ![Guest1](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@Guest1](https://qa.fmod.com/u/Guest1)\
**Post date:** [October 8, 2013, 9:51am UTC](https://qa.fmod.com/t/how-to-use-the-profiler-in-fmod-studio/11138/6 "2013-10-08T09:51:34Z")

</div>

Hi guys,

The FMOD\_STUDIO\_INIT\_LIVEUPDATE flag will activate the profiler so you don’t need the FMOD\_INIT\_PROFILE\_ENABLE flag.

> [@](#):
>
> It would be really nice if there was an indication of which sounds were actually playing as it appears to just be grouped by group inputs? As far as I can tell it isn’t possible to tell which sounds are currently playing. Having the option for a time tagged .csv spreadsheet output log of when sound events are triggered with information about CPU usage, voice usage etc… would be nice. Maybe having an example of how to hook up these with an example in the Studio API code examples would be helpful too in conjunction with the full documentation for these functions. It looks like things are currently in flux in this area of FMOD Studio so hopefully things will continue to progress.

We have plans to expand the profiler to include features such as these, expect to see this in the future.

---

<div class="post-metadata">

**Author:** ![rvangaal](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/rvangaal/32/11_2.png) [@rvangaal](https://qa.fmod.com/u/rvangaal)\
**Post date:** [May 8, 2015, 12:22pm UTC](https://qa.fmod.com/t/how-to-use-the-profiler-in-fmod-studio/11138/7 "2015-05-08T12:22:57Z")

</div>

The original poster did mention that he was able to connect to his game, but got an empty screen. I had the same, and the answer was in the manual (FMod 1.05.14 at least, that manual came with 1.06.00).

You can to right-click the ‘Session’ panel and select ‘New session’. At that point you should get some channels like ‘Master Bus’. Then selecting the Record button, you can record a bit of the audio/events inside your game, which you can play back. Go from there.
