
9 May
2008
9 May
'08
12:20 a.m.
Steven wrote:
Over the last few days, I've been working on a tool that counts the number of class template instantiations in a translation unit.
Ingenious, you are automatically inserting a compile time error into every basic block of the template code to be profiled, compiling the translation unit and counting how many error are generated for each template to get a count of how many times the compiler tries (and fails) to instantiate the template. There may be a more direct way to extract this information with VTune related profiling features provided in icc. I'll follow up and let you know. Luke