Profiler instrumentation of C++ classes

Can someone point to the documentation describing.
Specifically I need to explicitly include member functions of some template classes.
The command line says:
/INCLUDE:funcspec+
Simple functions work fine, but I can't find the way to supply template functions
(e.g. map<string, double>::find)

Also, it there a way to supply response file (configuration file) rather than spelling out everything on command line?

[448 byte] By [dimkaz] at [2008-2-19]
# 1
Yes, command line tools can take response files, though this isn't exposed in the help for some reason.

VSInstr @responsefile.txt

Your response file should have one command line option per line. Do not use quotes.

As to the /include option: Try running "VSInstr -DUMPFUNCS foo.exe" to see how the symbol engine thinks you should be spelling your template function name. Remember, 'string' is a typedef from basic_string<char>, and it might require a namespace, so the function probably looks something like std::map<std::basic_string<char>, double>::find or something nasty like that.

AngryRichardMSFT at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Visual Studio Performance Tools (Profiler)...
# 2
Thanks for reply.
I used /VERBOSE mode to list all the functions.
But when I supply full template function name, like you said it's quite long and ugly (and I allocator<> etc) the system would just stop building all together.

Are there any wild cards.
i.e. all functions in the class or all functions in namespace etc.

dimkaz at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Visual Studio Performance Tools (Profiler)...
# 3

You are allowed to use a wildcard character (*) after any separator. So you should be able to do something like /include:std::* or /include:std::map::*

Sorry that it doesn't get any better than that.

AngryRichardMSFT at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Visual Studio Performance Tools (Profiler)...
# 4
Thanks.
Supplying individual template functions, worked for me only in response file.
I also realized I can use multiple /INCLUDE switches.
dimkaz at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Visual Studio Performance Tools (Profiler)...

Visual Studio Team System

Site Classified