search for: getk

Displaying 2 results from an estimated 2 matches for "getk".

Did you mean: get
2016 Dec 19
1
Reining in profile instrumentation
...for massively inlined template classes, and it is the instrumentation of these that is creating the real problem. And we do want to profile our own functions in the source file itself. For instance, a simple accessor function such as: // From 'header.h' struct X { int k; int getK() const { return k; } ... }; // In 'source.cpp' #include "header.h" ... X anX; ... int check = anX.getK(); Now the tiny accessor function which is usually trivially eliminated during inlining, is unnecessarily instrumented with the '__cyg_profile_func_enter...
2016 Dec 13
0
Reining in profile instrumentation
> On Dec 13, 2016, at 3:46 AM, Martin J. O'Riordan via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > When either ‘-pg’ or ‘-finstrument-functions’ is used, the compiler inserts the appropriate profiling hooks. This happens prior to inlining, so the hooks remain in place. Have you tried compiling with -fprofile-generate? It enables IR-based profiling instrumentation, which