← man/system_diagnostics
sampleproc — man sampleproc — 80×24
ugur@toprak:~/man/system_diagnostics$man sampleproc
Bölüm 1 Sistem Tanılama

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 verbose descriptions explaining the output.

Exit

sampleproc will sample until Ctrl-C is hit.

See Also

dtrace(1M)

version 0.70 June 9, 2005 sampleproc(1m)