Prism User's Guide - CSAIL People - MIT
Prism User's Guide - CSAIL People - MIT
Prism User's Guide - CSAIL People - MIT
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Chapter 6. Obtaining Performance Data 111<br />
Chaptr 6. btainng Peformace Daa 11<br />
Resource: Node cpu (system)<br />
MAIN I 150.1 x<br />
loop 1 150.0 X<br />
results<br />
Figure 34. A call-graph display.<br />
In call-graph mode, you see which procedures call which other procedures, and<br />
the use of the selected resource or subsystem for each individual call. This gives<br />
a more detailed picture of the program's behavior. Figure 34 shows the callgraph<br />
display for the data shown in the Procedures pane in Figure 33. Note in<br />
Figure 34 that the time allocated to the MAIN routine includes the time spent in<br />
loop, which it calls.<br />
To navigate down through the call graph, click anywhere on the line that lists a<br />
procedure (other than the procedure at the top); the display changes to show this<br />
procedure at the top, with the procedures it calls below it. Thus, in call-graph<br />
mode, the Procedures pane at any one time shows two levels of the call graph.<br />
To move up through the call graph, click on the top procedure in the display; the<br />
display changes to show the caller of this procedure at the top, with the procedures<br />
it calls beneath it.<br />
As with the Resources pane, you can use the Sort By selection from the Options<br />
menu to arrange the procedures in the Procedures pane.<br />
· Choose Time (the default) to list procedures according to their use of the<br />
resource or subsystem, from most to least.<br />
* Choose Name to arrange the procedures in alphabetical order.<br />
In call-graph mode, the sorting applies only to the children of the calling procedure;<br />
the calling procedure is always at the top of the display.<br />
If a routine is not compiled with the -cmprof ile option, <strong>Prism</strong> will display data<br />
only for serial-subsystem resources or for the not profiled parallel-subsystem<br />
Version 1.2, March 1993<br />
Copyright © 1993 Thinking Machines Corporation