GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
* Sign Up! *

Support
Customer Portal
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
sampleproc(1m) sampleproc(1m)

sampleproc - sample processes on the CPUs. Uses DTrace.

sampleproc [hertz]

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.

Solaris

unstable - uses the ncpus_online kernel symbol.

# sampleproc
# sampleproc 400

process ID
command name
number of samples
percent of CPU usage

/usr/demo/dtrace/prof.d

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.

sampleproc will sample until Ctrl-C is hit.

dtrace(1M)

$Date:: 2007-08-05 #$ USER COMMANDS

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.