On Fri, May 29, 2009 at 7:16 AM, Brian J. Miller <[email protected]> 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.

Nick

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to