Reputation: 1088
Option "-pg" for gcc instruments all the functions in the compiled units, which impose too much overhead for large projects. Is it possible to only instrument a subset of functions based on function name pattern for example? There are suggestions like hooking all functions, but filtering passed-in function address and use addr2line to find out the function name. This is theoretically possible, but doesn't seem to be scalable.
Upvotes: 1
Views: 175