On Friday 29 May 2009, Nicholas Nethercote wrote: > On Fri, May 29, 2009 at 7:16 AM, Brian J. Miller <miller...@llnl.gov> wrote: > > > > I'm using 3.4.1 and am wondering if the location of the > > annotation indicates whether the compiler actually inlined > > a function declared inline. I have some inline functions > > whose annotated cache data appears in the .hh file while > > other inline functions of the same class have their annotated > > data appear in the source file where they are called. > > > > Does this mean that the latter function was inlined while > > the former was not? > > It's possible. Cachegrind relies entirely on the debug info to > annotate the code, but it's possible that the debug info is flawed. > > In order to truly tell if inlining has occurred I'd recommend looking > at the assembly code.
Callgrind/KCachegrind can tell. If the function is inlined, there will be no call at the expected call site; instead, an annotation of the inlined source lines will appear as part of the source annotation of the caller. Josef ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users