Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sampleproc(1m) [mojave man page]

sampleproc(1m)							   USER COMMANDS						    sampleproc(1m)

NAME
sampleproc - sample processes on the CPUs. Uses DTrace. SYNOPSIS
sampleproc [hertz] DESCRIPTION
This program samples which process is on each CPU, at a particular configurable rate. This can be used as an estimate for which process is consuming the most CPU time. Since this uses DTrace, only users with root privileges can run this command. EXAMPLES
Sample at 100 hertz, # sampleproc Sample at 400 hertz, # sampleproc 400 FIELDS
PID process ID COMMAND command name COUNT number of samples PERCENT percent of CPU usage BASED ON
/usr/demo/dtrace/prof.d DOCUMENTATION
DTrace Guide "profile Provider" chapter (docs.sun.com) See the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs may include full worked examples with ver- bose descriptions explaining the output. EXIT
sampleproc will sample until Ctrl-C is hit. SEE ALSO
dtrace(1M) version 0.70 Jun 09, 2005 sampleproc(1m)

Check Out this Related Man Page

sigdist.d(1m)							   USER COMMANDS						     sigdist.d(1m)

NAME
sigdist.d - signal distribution by process. Uses DTrace. SYNOPSIS
sigdist.d DESCRIPTION
This is a simple DTrace script that prints the number of signals recieved by process and signal number. This script is also available as /usr/demo/dtrace/sig.d, where it originates. Since this uses DTrace, only users with root privileges can run this command. EXAMPLES
This samples until Ctrl-C is hit. # sigdist.d FIELDS
SENDER process name of sender RECIPIENT process name of target SIG signal number, see signal(3head) COUNT number of signals sent BASED ON
/usr/demo/dtrace/sig.d DOCUMENTATION
DTrace Guide "proc Provider" chapter (docs.sun.com) See the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs may include full worked examples with ver- bose descriptions explaining the output. EXIT
sigdist.d will sample until Ctrl-C is hit. SEE ALSO
kill.d(1M), dtrace(1M) version 1.00 Jun 09, 2005 sigdist.d(1m)
Man Page