Suppose i have function foo
void foo()
{
//do something
}
Now this fn foo is now called by other function defined in other files. if gprof is enabled it would do profiling activity and subroutines for this function as well when called, which i want to avoid. Is this possible?
Please note i am not asking how to exclude the function from results. I want to avoid profiling activity by gprof which happens when fn/fns are called.