Jump to content
  • Advertisement
Sign in to follow this  
wolverine

profiling c++ templates

This topic is 4830 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

Hi all. I've been playing arround with the DevPartner profiler to profile some code and i can't seem to make it work with class templates. I'm using Visual C++ .Net and the profiler just skips the class templates, not showing any information about it whatsoever. Other functions and normal classes (.h and .cpp) appear. I guess the problem lies in the fact that i have the class templates programmed in .h files and the compiler (i think) just inlines this and skips any calls to any such funcions/methods. Is there some way arround this? I mean... there must be a way to profile class templates, right? Note: I've been using DevPartner instead of VTune because it's free! Does VTune handles this better? Thxs in advance.

Share this post


Link to post
Share on other sites
Advertisement
I can't say for certain, but you might want to try disabling inlining. You can find that under the project options, C/C++ options, optimizations.

Share this post


Link to post
Share on other sites
Thxs for the suggestion Extrarius, but it didn't work..
I've added /Ob0 to the compiler options (which disables inline expansion) and i have the same result :(

Share this post


Link to post
Share on other sites
I guess i'll try that... Last night i tried to profile in Visual Studio 6.0 (the profiler that camed with the compiler), and the templated functions/classes appeared with no problems. My guess is that the DevPartner partner profiler can't handle those things (and if it can, i don't know how).

thxs to both of you.

Share this post


Link to post
Share on other sites
Quote:
I honestly couldn't tell you, but it'd be worth a try, since they are both x86 architectures.

VTune 7 doesn't work on AMD because Intel has again built in a totally unnecessary "G-check". Grrr

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!