Using IGP Profiler with IGF

Jul 8, 2012 at 12:45 AM
Edited Jul 8, 2012 at 12:46 AM

I assume the IGP Profiler works with IGF projects?

I followed the steps from the pdf and added to my assemblyinfo file:



assembly: Profiler(GameClass = "MyNamespace.MyApplication")]



 And I add this to my Initialize function in my application class: 

var profilerGameComponent = new ProfilerGameComponent(this, "MyFont");

ProfilingManager.Run = true;



I also added the post build event. But nothing happens when I press ctrl+F12


Am I missing something?



Jul 9, 2012 at 9:43 AM

First, make sure that the GameClass property of the ProfilerAttribute is set to the proper inherited Application class you created.

Then, if it is still not visible, make sure to add an Update and Draw method override to your Application class if not yet set. This is mandatory and since I developed the profiler with Xna in mind, which therefore generally means the developer gets his Game class overriding these methods, I didn't mention it in the docs.

If you still have issues with it, let me know and I'll see what I can do for you.

Jul 10, 2012 at 10:12 AM

Ah yest adding the update and draw mehtods did it thanks!

Jul 10, 2012 at 8:55 PM

You're welcome ;)

Glad it helped.