From 7b7904fe0cb75ea64eed08f11b44ffad6bcb87eb Mon Sep 17 00:00:00 2001 From: jkoshy Date: Fri, 19 Sep 2008 13:17:22 +0000 Subject: Add an example illustrating the use sleep(1) for performing timed measurements. --- usr.sbin/pmcstat/pmcstat.8 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/pmcstat/pmcstat.8 b/usr.sbin/pmcstat/pmcstat.8 index 1c48dc6..7361ceb 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" -- cgit v1.1