Boost logo

Boost :

Subject: Re: [boost] vsix - template_profiler extension
From: Eric Niebler (eric_at_[hidden])
Date: 2012-02-26 14:48:06


On 9/30/2011 12:56 PM, Brandon Kohn wrote:
> Hello,
>
> I've put together a Visual Studio 2010 extension package which
> wraps the functionality of Steven Watanabe and Domagoj Saric's
> template_profiler to create a template profile tool. It also adds a
> command to profile the build time of a project or a single C++
> file. Both functions are accessed from the context menu in the
> solution explorer tree-view. It's still fairly young and could use
> some kicking about. Are there any VC10 users here that would be
> interested in giving it a try?

Hi Brandon, I finally got around to trying out your template profiler.
Looks good, but I'm having trouble using the output. I get:

Profiling Instantiations on main.cpp:

Instrumenting Code...
Running Profile...
Finalizing Data...

Total instantiations: 2894

Call Graph

Location : (count / cum.)
------------------------------------------------------------------------
c:\boost\org\trunk\libs\proto\scratch\main.cpp(37)
                                : (1)
  Parents:
  Children:
    c:\boost\org\trunk\boost\fusion\support\is_segmented.hpp(22) : (1/1)
    c:\boost\org\trunk\boost\fusion\support\is_segmented.hpp(26) : (1/2)
    c:\boost\org\trunk\boost\fusion\support\is_segmented.hpp(46) : (1/2)
<...much more snipped...>

I expected to see the names of templates, ordered by which were
instantiated the most frequently. Is there a way to get that output?

-- 
Eric Niebler
BoostPro Computing
http://www.boostpro.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk