Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

vbisme

How to do profiling?

This topic is 6183 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do I get information on where most of the processing cycles takes place and such like that?

Share this post


Link to post
Share on other sites
Advertisement
There are several tools shipping with the development tools. There is some analyzer with Borland C Builder 5.0 Enterprise Edition. I''m sure there''s some kind of tool also included with Microsoft Visual Studio, but don''t ask me about its name.
Although, you could check out a tutorial - which is available here - about ''knowing the tools''. Look it up somewhere in the tutorial section. I couldn''t find it, but maybe somebody else knows where to find it.

Share this post


Link to post
Share on other sites
It''s called Microsoft Profiler, and it''s perfect for looking for how slowly a function runs. Only problem is, it can actually slow down your program just by being there. So if you''re on a commercial project or otherwise have a good chunk of money you can invest in VTune by Intel, which is an excellent profiler. If you''re on a budget using a combo of MS Profiler and your own timing code should work fine.

If you''re using VB or a similar thing then you shouldn''t worry about cycles, the main bottleneck is the runtime.

Share this post


Link to post
Share on other sites
One problem I encountered with the MS profiler is that if you run it from the IDE (not from a custom batch file), it does not count functions from any dll''s which might be in your workspace. Only functions from the main exe are reported; to avoid that, use a custom batch file to run it.

Share this post


Link to post
Share on other sites

  • 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!