On Thu, 4 Mar 2021, RVP wrote:
$ gprof a.out gmon.out ... Index by function name [1] main $ No segfault; but, no profiling data either ;)
That should've read "no profiling data _on external calls_". Because, clearly, internal calls in the source are being profiled. Maybe this way of profiling fits the OP's needs? -RVP