DTrace is a remarkable profiling tool, with an impressive array of features for diagnosing system issues. It may also
be used to run pre-written scripts to take advantage of its capabilities. Users can author their own utilities using the
DTrace D Language, allowing them to customize their profiling based on specific needs.
Years ago I read that DTrace was available for FreeBSD and it got a lot of praise. https://docs.freebsd.org/en/books/handbook/dtrace
Didn’t know it is available for Linux now :)