diff options
author | Joseph Koshy <jkoshy@FreeBSD.org> | 2008-09-19 13:17:22 +0000 |
---|---|---|
committer | Joseph Koshy <jkoshy@FreeBSD.org> | 2008-09-19 13:17:22 +0000 |
commit | 2c79db510742ddb075791436645a9b2cb98fd3a3 (patch) | |
tree | 8ab2d8c9d1bbf549cc88c15f5a03f7dd9b208c9d /usr.sbin/pmcstat/pmcstat.8 | |
parent | 049307ba00529cae1734ff2861201568b2afda14 (diff) | |
download | src-2c79db510742ddb075791436645a9b2cb98fd3a3.tar.gz src-2c79db510742ddb075791436645a9b2cb98fd3a3.zip |
Add an example illustrating the use sleep(1) for performing timed
measurements.
Notes
Notes:
svn path=/head/; revision=183183
Diffstat (limited to 'usr.sbin/pmcstat/pmcstat.8')
-rw-r--r-- | usr.sbin/pmcstat/pmcstat.8 | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/pmcstat/pmcstat.8 b/usr.sbin/pmcstat/pmcstat.8 index 1c48dc6c6270..7361ceb72bed 100644 --- a/usr.sbin/pmcstat/pmcstat.8 +++ b/usr.sbin/pmcstat/pmcstat.8 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd June 29, 2008 +.Dd September 19, 2008 .Os .Dt PMCSTAT 8 .Sh NAME @@ -303,11 +303,16 @@ and measure the number of data cache misses suffered by it and its children every 12 seconds on an AMD Athlon, use: .Dl "pmcstat -d -w 12 -p k7-dc-misses mozilla" .Pp -To measure processor instructions retired for all processes named +To measure instructions retired for all processes named .Dq emacs use: .Dl "pmcstat -t '^emacs$' -p instructions" .Pp +To measure instructions retired for processes named +.Dq emacs +for a period of 10 seconds use: +.Dl "pmcstat -t '^emacs$' -p instructions sleep 10" +.Pp To count instruction tlb-misses on CPUs 0 and 2 on a Intel Pentium Pro/Pentium III SMP system use: .Dl "pmcstat -c 0,2 -s p6-itlb-miss" |