Hi, On Jul 29, 2005, at 5:11 AM, Joseph Koshy wrote: > > > >> Another question, what is the difference of -s versus -S and -p >> versus >> -P, respectively? >> > > -S and -P turn on sampling. -S does 'whole system' sampling. -P is > process specific (i.e., the counters only count when the target > process(es) > are running). > > So: > > # pmcstat -S instructions -O /tmp/foo.out > > will collect samples. > > # pmcstat -g -R /tmp/foo.out > > will convert the sample log to gprof(1) compatible 'gmon.out' files. > > Sampling on the AMD64 requires a patch to current [I'll commit it > shortly]. Is sampling supposed to work on i386? Because it doesn't seem to collect anything. Counting works fine, on the other hand. # pmcstat -P instructions -O sample.out -d fsck_ffs /usr > /dev/null & [1] + done pmcstat -P instructions -O sample.out -d fsck_ffs / usr > /dev/null # pmcstat -R sample.out -g # ls k7-retired-instructions # -- Suleiman Souhlal | ssouhlal_at_vt.edu The FreeBSD Project | ssouhlal_at_FreeBSD.orgReceived on Fri Jul 29 2005 - 08:04:02 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:40 UTC