From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <31CAD500@smtpgate.eagan.ncs.com> Date: Fri, 21 Jun 96 11:00:00 PDT From: Sakovich, Aaron Subject: RE: CPUtime benchmarking owner-alphant wrote: >Thanks for all of the replies with suggestions on how to time program >execution, but it seems that an equivalent to the (ugh!) unix time or timex >does not exist on winNT. I don't have the reskit timethis, but it >apparently measures elapsed time (i.e. wall clock time), which I don't want. >I've found a way of using PerformanceMonitor to get an accurate measurement >of a specific process's CPU time, but it's very awkward. Essentially, I >want to time the CPU seconds required to run a program called BM5. PerfMon >provides %processor time for a > >specific process (BM5), but the process has to be running for you to pick it >from the Edit/Add_to_chart/(object)Process (instance) menu. Since this >program only takes about 6 seconds to execute on my alpha404/233 (was 300 >seconds on a DEC20/60), it is difficult to pick it up. The solution was to >do a dummy run of BM5 with the purpose of picking the process name BM5 (no >fumble fingers), and save the setup. Later, you can run PerfMon with this >setup, and sure enough, it logs the BM5 process when it appears : : >Jim Colwell, Ship Dynamics Group, DREA .........alphaNT rules ! Alternatively, you can set PerfMon up to log everything relating to process execution, then go back, set some bookmarks, and examine your actual run. The report option should show you more detail about a specific execution. From the looks of it, you'll need to have the process running when you start the logging -- I just tried it without the process running when I started the log, and it didn't show up, but when I already had it running, it stayed there. Since you're only concerned about CPU, it won't matter that the process is probably in cache. Be sure to specify that your "Options, Data From" is your log file. When you go back to analyze the data, look at the chart and select "Edit, Time Window". Move the handles to frame the data you're interested in looking at, then go to the Report. Add the % Processor time to your report, get a number for the amount of time spent processing during that period and multiply it by the total duration of your period (your Time Window). Voila, CPU time. Not as easy as a SHOW PROCESS/ACCOUNTING, but hey, it works. Aaron -- Aaron Sakovich ---------------------------------------- aaron@garply.com Alpha NT mail list ------------------------------- Alpha NT file archive alphant@garply.com http://www.garply.com/tech/comp/sw/pc/nt/alpha.html - (The above mail message was from "Sakovich, Aaron" , to alphant) To subscribe to this list: To: majordomo@garply.com, Text: SUBSCRIBE ALPHANT To unsubscribe: To: majordomo@garply.com, Text: UNSUBSCRIBE ALPHANT Alpha NT FAQ: http://www.garply.com/tech/comp/sw/pc/nt/ant_faq.html