Re: Profiling applications

From: Paul Floyd <paulf2718_at_gmail.com>
Date: Sat, 03 Feb 2024 07:27:50 UTC

On 03-02-24 08:14, Cy Schubert wrote:

> Try DTrace. The DTrace book (if you can get your hands on it) is a good
> source of information about profiling. Oracle (formerly Sun) has some
> good resources. https://ekamperi.github.io/Geant4/dtrace.html may
> provide some pointers. Brendan Gregg's (Brendan wrote DTrace) flame
> FlameGraph is another option, though it displays hot PIDs, probably not
> what you're looking for.
> 
> The DTrace Tookit is in ports. There are some DTrace code samples there.
> 
> Once you know where your app is spending its time you can add USDT
> probes to allow you to capture snapshots of data structures at points
> in time.

DTrace is mostly a kernel profiling tool. Unless your code is already 
instrumented with USDTs it won't tell you much about your application, 
especially if it is CPU bound in userland.

A+
Paul