Add an example illustrating the use sleep(1) for performing timed

measurements.
This commit is contained in:
Joseph Koshy 2008-09-19 13:17:22 +00:00
parent 049307ba00
commit 2c79db5107

View file

@ -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"