Bottom-up profiling support

Closed Ben Gamari requested to merge wip/T18566 into master

This introduces the -fprof-callers=<name> flag, which allows the user to request that the compiler add cost-centres to all call-sites of the named function. This is useful for a profiling workflow that I call "bottom-up" profiling, where one starts from the "bottom" of the call-graph and incrementally works upwards towards the callers. See #18566 (closed).

Edited by Ben Gamari

Merge request reports