* Re: Profiler for OSF
1998-04-21 4:00 Profiler for OSF Marco Alberoni
@ 1998-04-21 4:00 ` Joel K. Gallun
1998-04-21 4:00 ` Dirk Grunwald
1998-04-22 4:00 ` Jeff Donsbach
1998-04-24 4:00 ` John P Williams
2 siblings, 1 reply; 6+ messages in thread
From: Joel K. Gallun @ 1998-04-21 4:00 UTC (permalink / raw)
Marco Alberoni <alberoni@sasib18.sasibrlw.bo.nettuno.it> writes:
> I work on a digital workstation. Tools on the machine like
> prof or gprof don't permit to profile such kind of processes.
> Which kind of tool (if existing) can I use?
man atom
Both pixie and hiprof should be able to do what you want. If you don't
have atom installed you can get it from:
gatekeeper.dec.com:/pub/DEC/WRL/lueck/
ATM350.tar.* is for 3.2x, ATM400.tar.* is for 4.0x.
HTH,
Joel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Profiler for OSF
1998-04-21 4:00 ` Joel K. Gallun
@ 1998-04-21 4:00 ` Dirk Grunwald
0 siblings, 0 replies; 6+ messages in thread
From: Dirk Grunwald @ 1998-04-21 4:00 UTC (permalink / raw)
snake@severn.office.aol.com (Joel K. Gallun) writes:
>
> Marco Alberoni <alberoni@sasib18.sasibrlw.bo.nettuno.it> writes:
>
> > I work on a digital workstation. Tools on the machine like
> > prof or gprof don't permit to profile such kind of processes.
> > Which kind of tool (if existing) can I use?
>
> man atom
--
ATOM won't do it - he's dynamically loading the modules.
Atom can handles shared libraries, but not 'dlopen' modules.
You might be able to use DCPI - I think the latest version supports
dlopen-loaded code. Do a search for 'DCPI' or go to the research
sub-pages of www.digital.com, and go to DEC-WRL or DEC-SRC web pages.
--
Dirk Grunwald Assoc. Prof, Univ. of Colorado at Boulder
^ permalink raw reply [flat|nested] 6+ messages in thread
* Profiler for OSF
@ 1998-04-21 4:00 Marco Alberoni
1998-04-21 4:00 ` Joel K. Gallun
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Marco Alberoni @ 1998-04-21 4:00 UTC (permalink / raw)
I need to profile some processes which link shared libraries
at run time (procedures belonging to these libraries are loaded
using "dl_open" calls).
I work on a digital workstation. Tools on the machine like
prof or gprof don't permit to profile such kind of processes.
Which kind of tool (if existing) can I use?
Yours sincerely,
Marco Alberoni
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Profiler for OSF
1998-04-21 4:00 Profiler for OSF Marco Alberoni
1998-04-21 4:00 ` Joel K. Gallun
@ 1998-04-22 4:00 ` Jeff Donsbach
1998-04-24 4:00 ` John P Williams
2 siblings, 0 replies; 6+ messages in thread
From: Jeff Donsbach @ 1998-04-22 4:00 UTC (permalink / raw)
The Atom tool set can do what you need to do.
See "man atom", "man hiprof" and "man pixie".
Atom is part of the developers subset for Digital Unix 4.0 and later.
-Jeff D
--
=========================
Jeff Donsbach Digital Equipment Corporation, Software Partners Engineering
200 Forest St., MRO1-3/F26, Marlborough, MA 01752-3011
Email: Jeff.Donsbach@digital.com "10 bucks is 10 bucks" - Geddy Lee
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Profiler for OSF
1998-04-21 4:00 Profiler for OSF Marco Alberoni
1998-04-21 4:00 ` Joel K. Gallun
1998-04-22 4:00 ` Jeff Donsbach
@ 1998-04-24 4:00 ` John P Williams
1998-04-24 4:00 ` Dirk Grunwald
2 siblings, 1 reply; 6+ messages in thread
From: John P Williams @ 1998-04-24 4:00 UTC (permalink / raw)
To: Marco Alberoni
> I need to profile some processes which link shared libraries
> at run time (procedures belonging to these libraries are loaded
> using "dl_open" calls).
> I work on a digital workstation. Tools on the machine like
> prof or gprof don't permit to profile such kind of processes.
> Which kind of tool (if existing) can I use?
If your workstation is an Alpha running Digital UNIX V4.0 or later,
and if you are actually calling the dlopen(3) runtime library routine,
there are a few options you can use. I do not understand Dirk Grunwald's
distinction between "shared libraries" and "modules". As far as I have
been able to find out, dlopen(3) only loads shared libraries, and
atom(1) is able to instrument shared libraries that are loaded with
dlopen(3) - you just need to name the libraries in the atom command.
However, I will be happy to be corrected.
1) Compiling the program with the -p flag (as I guess you did), you can:
setenv PROFFLAGS -all
setenv _RLD_LIST DEFAULT:lib1.so:lib2.so
as described in the prof(1) and loader(5) man-pages.
Setting PROFFLAGS to -all requests profiling of all shared libraries.
Setting _RLD_LIST to DEFAULT plus a list of the application's
libraries that are dynamically opened with dlopen(3) tells the
loader to load the shared libraries as if they had been linked
into the program with ld(1). So, if the application can tolerate
this change in when the libraries are loaded, this should help.
2) A command like
atom -tool hiprof -incobj lib1.so -incobj lib2.so app
or
atom -tool pixie -incobj lib1.so -incobj lib2.so app
should let you use hiprof with gprof to print a call-graph profile
or to use pixie with prof to print various instruction-count
profiles. The -incobj flags tell atom(1) to instrument the
specified shared libraries even if they are loaded with dlopen.
If the program does not use threads, the hiprof profile can be
enhanced with the atom -toolargs=-cputime option, which gives a
non-sampled profile in terms of CPU cycles used, instead of
instructions executed.
The atom command and its hiprof and pixie tools (etc) are in
the optional software development subsets in the Digital UNIX kit.
If you would like to use the latest versions of these tools on
Digital UNIX V4.0 or later, please send me email for information
on our field-test quality Advance Developer's Kit.
3) The Digital Continuous Profiling Infrastructure (DCPI) is currently
available as a free but licensed advance development distribution:
http://www.research.digital.com/SRC/dcpi/
It uses the Alpha processor's hardware performance counters to
profile a whole system at very low overhead and then analyze the
results off-line. Its profiles use a higher sampling rate than
does compiling with -p. It profiles all applications' uses of
each shared library, so you may need to ensure that only your
application is running while the profile is being collected.
Please send me email if you would like more information.
John P Williams, Digital UNIX Development Environment Group
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Profiler for OSF
1998-04-24 4:00 ` John P Williams
@ 1998-04-24 4:00 ` Dirk Grunwald
0 siblings, 0 replies; 6+ messages in thread
From: Dirk Grunwald @ 1998-04-24 4:00 UTC (permalink / raw)
John P Williams <jpw@zk3.dec.com> writes:
> 2) A command like
> atom -tool hiprof -incobj lib1.so -incobj lib2.so app
> or
> atom -tool pixie -incobj lib1.so -incobj lib2.so app
> should let you use hiprof with gprof to print a call-graph profile
--
Ack - you're right, I had forgotten about the -incobj flag. The
problem I thought he'd be faced with was that ATOM wouldn't know what
.so files to load.
That's the problem with using a tool (atom) for so long -- you forget
about new options that get added after you've read the manual.
--
Dirk Grunwald Assoc. Prof, Univ. of Colorado at Boulder
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1998-04-24 4:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-04-21 4:00 Profiler for OSF Marco Alberoni
1998-04-21 4:00 ` Joel K. Gallun
1998-04-21 4:00 ` Dirk Grunwald
1998-04-22 4:00 ` Jeff Donsbach
1998-04-24 4:00 ` John P Williams
1998-04-24 4:00 ` Dirk Grunwald
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox