sysprof - profiling tool of the entire Linux system

https://developer.gnome.org/documentation/tools/sysprof.html

Sysprof is a system-wide statistical profiler for
Linux. You can use Sysprof to measure how much
time is spent in each function of your application,
down to the system calls into the Linux kernel.