|
Boost : |
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-05-08 19:46:27
AMDG
Over the last few days, I've been working on a tool that counts the number
of class template instantiations in a translation unit.
To use it from a jamfile
import profile_templates : : directory of the tool ;
template-profile result : some_file.cpp : <include>some_directories ;
If everything works, this will create a file with the extension .tp which
will contain the number of times each class template was instantiated,
with the most common templates at the top.
I've put a zip of a rough version in the vault.
Caveats:
I've only tested with Visual C++ 9.0 and gcc 3.4.4 on cygwin so far.
Other compilers won't work, yet. Other versions of these compilers may
or may not work.
It may be necessary to add link=static to the bjam command line.
In Christ,
Steven Watanabe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk