Privacy and Security Notice

Archived Messages for EGN_CALCOM_1996@cebaf.gov: where do we spend all of our time in code?

where do we spend all of our time in code?

James Muguira (muguira@CEBAF.GOV)
Fri, 08 Nov 1996 17:58:33 -0500

Jerry Gilfoyle asked me the following question:

How do I see what functions are called.

Jerry needed to be able to see something like a call tree. I tried to
see what the sun debugger would tell me.

1. I had to get recsis (the example I'll be using, u can substitute
c/c++ with ease!) set for debug. I used the -g flag on most of the
source.

2. Then I started the debugger with recsis and started the collector
running (exec menu, bottom - DO NOT CLOSE the collector window once u
set it!!!). EXPLICITLY NAME the output directory and filename for the
experiment!

3. run recsis for a while - u should see the load of the collector libs
1st thing.

4. at some point quit or end your code.

5. run the analyzer and select the experiment u just made.

At this point start clicking buttons to get different views of the
running program. Toward the bottom of the display u should see a button
label display. Choose cumu histo to see where time is being spent. I can
not cut and paste or I would show you the results. At the top of the
display is a button labled Data: choose System Time, or Program Sizes

JAM