From: lueck@gurgi.zk3.dec.com (Greg Lueck Development Environment)
Subject: Re: Performance Analysis
Date: 1995/10/31 [thread overview]
Message-ID: <475mt7$eu6@lead.zk3.dec.com> (raw)
In-Reply-To: ADN.95Oct30085359@houblon.matra-dtv.fr
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
-------------------------------------------------------------------------------
parent reply other threads:[~1995-10-31 5:00 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <ADN.95Oct30085359@houblon.matra-dtv.fr>]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox