From: Simonson, Lucanus J (lucanus.j.simonson_at_[hidden])
Date: 2008-05-08 20:20:47
>Over the last few days, I've been working on a tool that counts the
>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