From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d0509019fb0e39b5,start X-Google-Attributes: gidfee84,public From: lueck@gurgi.zk3.dec.com (Greg Lueck Development Environment) Subject: Re: Performance Analysis Date: 1995/10/31 Message-ID: <475mt7$eu6@lead.zk3.dec.com>#1/1 X-Deja-AN: 118292141 distribution: world references: organization: Digital Equipment Corporation reply-to: lueck@zk3.dec.com (Greg Lueck Development Environment) newsgroups: comp.unix.osf.osf1 You could try using some of these performance analysis tools. * Standard PC-sampling. Relink your application with the "-p" switch, and then rerun. When your application exits, it produces a mon.out file. Run the "prof" postprocessor to view a procedure-level profile of your application. This technique uses random sampling to determine which procedures are the most heavily executed. * Read the hardware performance counters -- uprofile. In order to use this tool, you must install the pfm driver into your kernel. The uprofile(1) manpage describes how to do this. You do not need to compile or link you application with any special switches. Run your application under the "uprofile" command like this: % uprofile myapp [switches for myapp] When the process exits, it creates a umon.out file. Run the "prof" postprocessor to view a procedure-level profile of your application. By default uprofile measures CPU time, but you can measure other things like cache misses, etc. See the uprofile(1) and pfm(7) manpages for more details. * Hierarchical PC-sampling -- gprof. This option is only supported on V1.3B and later of the C++ compiler. Recompile and relink your application with the "-pg" switch. Then rerun the application. When it finishes, it produces a gmon.out file. Run the "gprof" postprocessor to view a hierarchical profile of your application. This profile shows the time spent in each procedure as well as the time spent in each parent and each descendent of each procedure. I hope this gives you some more options. -- ------------------------------------------------------------------------------- Greg Lueck Opinions expressed herein are my own. lueck@zk3.dec.com ------------------------------------------------------------------------------- -- ------------------------------------------------------------------------------- Greg Lueck Opinions expressed herein are my own. lueck@zk3.dec.com -------------------------------------------------------------------------------