ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



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 the root user or users with the dtrace_kernel  privilege  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                                    Jun 09, 2005                                  sampleproc(1m)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.