Boost logo

Boost :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-05-08 20:27:55


Simonson, Lucanus J wrote:
> 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.

Actually it only generates warnings. Otherwise, the compiler is liable
to stop before it finishes compiling everything.

> 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.

Ok. It would be great if compilers supported this directly.

In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at