Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Atom/gprof/hiprof/pixie
@ 1999-01-18  5:00 cdp2
  1999-01-20  5:00 ` Atom/gprof/hiprof/pixie Monty Brandenberg
  1999-01-20  5:00 ` Atom/gprof/hiprof/pixie John P Williams
  0 siblings, 2 replies; 4+ messages in thread
From: cdp2 @ 1999-01-18  5:00 UTC (permalink / raw)


  I've got a multi-threaded (pthreads not DEC threads)application that makes
extensive CORBA calls on adatabase to another box.  I've been trying to
profile the client programusing atom/gprof/pixie but they all seem to record
processor time, and notreal time.  For example, if a thread on the client
makes a CORBA call, It sleeps until the server sends sends a reply. However,
no CPU cycles are spent on this function but (to my guess) there is much time
waiting for the call to return.  What I'm trying to find out is where the
program is spending the most "time" as opposed to the most "cpu cycles" or
the number of times a function was called.  Is there a profiling tool/option
that basically does:

time (&this_function_starttime)
   do_this_function()
time (&this_function_stoptime)
record_statistics_for_this_function()
etc ....



   Thanks


-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Atom/gprof/hiprof/pixie
  1999-01-18  5:00 Atom/gprof/hiprof/pixie cdp2
  1999-01-20  5:00 ` Atom/gprof/hiprof/pixie Monty Brandenberg
@ 1999-01-20  5:00 ` John P Williams
  1999-01-25  5:00   ` Atom/gprof/hiprof/pixie Dave Butenhof
  1 sibling, 1 reply; 4+ messages in thread
From: John P Williams @ 1999-01-20  5:00 UTC (permalink / raw)
  To: cdp2

Hi,

There is no tool or option in the DIGITAL UNIX Developers' Toolkit (or the
other UNIX programming tools offered by Compaq) that profiles real time,
at least not yet. You can manually insert calls to gettimeofday(), or you
can write your own atom tool to call it at every procedure call or return,
being careful not to instrument the system libraries and to write
thread-safe code.

Also note that multi-threaded programs are supported by the tools you mention 
only if those programs are linked with libpthread; that is, if they use
either the CMA or POSIX (pthread) interfaces to libpthread. Other 
implementations of pthreads are not supported by these tools.

	John P Williams

cdp2@engr.uark.edu wrote:
> 
>   I've got a multi-threaded (pthreads not DEC threads)application that makes
> extensive CORBA calls on adatabase to another box.  I've been trying to
> profile the client programusing atom/gprof/pixie but they all seem to record
> processor time, and notreal time. ...



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Atom/gprof/hiprof/pixie
  1999-01-18  5:00 Atom/gprof/hiprof/pixie cdp2
@ 1999-01-20  5:00 ` Monty Brandenberg
  1999-01-20  5:00 ` Atom/gprof/hiprof/pixie John P Williams
  1 sibling, 0 replies; 4+ messages in thread
From: Monty Brandenberg @ 1999-01-20  5:00 UTC (permalink / raw)


cdp2@engr.uark.edu wrote:
> 
> What I'm trying to find out is where the
> program is spending the most "time" as opposed to the most "cpu cycles" or
> the number of times a function was called.

Take a look at the following which may do what you want:

http://www.research.digital.com/SRC/dcpi/

-- 
Monty Brandenberg, Software Consultant                    MCB, Inc.
mcbinc@ne.mediaone.net                                    P.O. Box 426188
mcbinc@world.std.com                                      Cambridge, MA  02142
617.864.6907



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Atom/gprof/hiprof/pixie
  1999-01-20  5:00 ` Atom/gprof/hiprof/pixie John P Williams
@ 1999-01-25  5:00   ` Dave Butenhof
  0 siblings, 0 replies; 4+ messages in thread
From: Dave Butenhof @ 1999-01-25  5:00 UTC (permalink / raw)


John P Williams wrote:

> Also note that multi-threaded programs are supported by the tools you mention
> only if those programs are linked with libpthread; that is, if they use
> either the CMA or POSIX (pthread) interfaces to libpthread. Other
> implementations of pthreads are not supported by these tools.
>
> cdp2@engr.uark.edu wrote:
> >
> >   I've got a multi-threaded (pthreads not DEC threads)

Just to correct a few thread misconceptions in the question and reply:

  1. Only the POSIX interface existing in libpthread. The "legacy" interfaces
     (CMA and the two DCE thread interfaces) are in libpthreads (note the "s"),
     which lays "on top of" libpthread.
  2. "DECthreads" (not "DEC threads") is the name of the thread implementation
     common to Compaq's "Digital UNIX" and OpenVMS. DECthreads supports a number
     of interfaces. POSIX 1003.1c-1995 is the primary DECthreads interface, but
     CMA and the two DCE thread interfaces are also part of DECthreads.

Trivial distinctions, perhaps, but technical communication without common terms
is futile.

/---------------------------[ Dave Butenhof ]--------------------------\
| Compaq Computer Corporation                     butenhof@zko.dec.com |
| 110 Spit Brook Rd ZKO2-3/Q18       http://members.aol.com/drbutenhof |
| Nashua NH 03062-2698  http://www.awl.com/cseng/titles/0-201-63392-2/ |
\-----------------[ Better Living Through Concurrency ]----------------/




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-01-25  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-18  5:00 Atom/gprof/hiprof/pixie cdp2
1999-01-20  5:00 ` Atom/gprof/hiprof/pixie Monty Brandenberg
1999-01-20  5:00 ` Atom/gprof/hiprof/pixie John P Williams
1999-01-25  5:00   ` Atom/gprof/hiprof/pixie Dave Butenhof

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox