|
NAME
DESCRIPTIONThe ProbesThe
The Rate and Time UnitsThe The default unit is
Probe ArgumentsThe arguments of the
Use arguments arg0 and
arg1 to tell if the IMPLEMENTATION NOTESThe
sysctl(8) variable
kern.dtrace.profile.aframes controls the number of
skipped artificial frames for the EXAMPLESExample 1: Profiling On-CPU Kernel Stack TracesThe following DTrace one-liner uses the
dtrace -x stackframes=100 -n 'profile-197 /arg0/ {@[stack()] = count();} tick-60s {exit(0);}
The system is profiled at the 197 Hz to avoid sampling in lockstep with other periodic activities. This unnatural frequency minimizes the chance of overlapping with other events. Option Checking if arg0 is not zero makes sure that profiling happens when the program is in the kernel context. Refer to https://www.brendangregg.com/flamegraphs.html to learn about generating flame graphs from the obtained stack traces. SEE ALSOThe illumos Dynamic Tracing Guide, https://www.illumos.org/books/dtrace/chp-profile.html, 2008, Chapter profile Provider. Brendan Gregg and Jim Mauro, DTrace: Dynamic Tracing in Oracle Solaris, Mac OS X and FreeBSD, Prentice Hall, https://www.brendangregg.com/dtracebook/, pp. 24–25, 2011. AUTHORSThis manual page was written by Mateusz Piotrowski <0mp@FreeBSD.org>.
|