Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views


Sign in to follow this  
Staffan E


Added an internal profiler to the project today. I ended up using the Shiny Profiler (found at SourceForge) because it is lightweight, powerful and really simple to set up. It took me 30 minutes to get it to work, compiling included, and then another 30 minutes to get the results I wanted.

It uses some nice preprocessor magic to settle itself in your code so that you only need to call PROFILE_FUNC() at the beginning of each function you want to time. Beyond that you need to call an update function at the end of every frame, or loop or whatever you're measuring over. Finally you call a third function to get a formatted tree like in the pretty picture. There are more advanced options available but those three calls are all you need to get going.

I can really recommend this if you want a simple yet flexible, open-source profiler.

The download says there are no examples but it does include two very simple ones.

Sign in to follow this  

1 Comment

Recommended Comments

I'm really glad you like my profiler! I should probably update it with the even faster one I made for Snow Hard, including output-sorted-by-time and Lua support of course ;)


Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!