Is there a way to -in the background- collect cumulative cpu time stats per shared library? Without modifying applications or libraries? Ideally a solution that'll (also) work on arm (Jetson / Pi).
There's /proc/{process_id}/stat to do something at a process level, but is it also possible at object / library file level?