summaryrefslogtreecommitdiffstats
path: root/usr.bin/procstat/procstat.1
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2014-05-17 03:54:51 +0000
committerjhb <jhb@FreeBSD.org>2014-05-17 03:54:51 +0000
commit6b83e78dffa9b1fde2f98a7f1b2a923eba9622be (patch)
treec312c576f3a1c9b8f30b525da97a166902ead205 /usr.bin/procstat/procstat.1
parentfd274d1e1702a15248b99ac076fde22196817500 (diff)
downloadFreeBSD-src-6b83e78dffa9b1fde2f98a7f1b2a923eba9622be.zip
FreeBSD-src-6b83e78dffa9b1fde2f98a7f1b2a923eba9622be.tar.gz
- Add support for dumping current resource usage for processes via a new -r
flag to procstat. - Add an -H flag to request information about threads rather than processes when dumping statistics. Currently it is only used for -r to display resource usage for individual threads instead of the entire process. Reviewed by: kib (older version without -H) MFC after: 1 month
Diffstat (limited to 'usr.bin/procstat/procstat.1')
-rw-r--r--usr.bin/procstat/procstat.117
1 files changed, 12 insertions, 5 deletions
diff --git a/usr.bin/procstat/procstat.1 b/usr.bin/procstat/procstat.1
index f06b2bc..193e5d3 100644
--- a/usr.bin/procstat/procstat.1
+++ b/usr.bin/procstat/procstat.1
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd February 11, 2014
+.Dd May 16, 2014
.Dt PROCSTAT 1
.Os
.Sh NAME
@@ -33,11 +33,9 @@
.Nd get detailed process information
.Sh SYNOPSIS
.Nm
-.Op Fl h
-.Op Fl n
-.Op Fl C
+.Op Fl CHhn
.Op Fl w Ar interval
-.Op Fl b | c | e | f | i | j | k | l | s | t | v | x
+.Op Fl b | c | e | f | i | j | k | l | r | s | t | v | x
.Op Fl a | Ar pid | Ar core ...
.Sh DESCRIPTION
The
@@ -73,6 +71,8 @@ If the flag is repeated, function offsets as well as function names are
printed.
.It Fl l
Display resource limits for the process.
+.It Fl r
+Display resource usage information for the process.
.It Fl s
Display security credential information for the process.
.It Fl t
@@ -102,6 +102,13 @@ The
flag requests the printing of additional capability information in the file
descriptor view.
.Pp
+The
+.Fl H
+flag may be used to request per-thread statistics rather than per-process
+statistics for some options.
+For those options, the second field in the table will list the thread ID
+to which the row of information corresponds.
+.Pp
Some information, such as VM and file descriptor information, is available
only to the owner of a process or the superuser.
.Ss Binary Information
OpenPOWER on IntegriCloud