Go to main content
Oracle® Developer Studio 12.5: Performance Analyzer

Exit Print View

Updated: June 2016
 
 

Commands That Control the Callers-Callees List

The following commands control how the caller and callee information is displayed.

callers-callees

Print the callers-callees panel for each of the functions, in the order specified by the function sort metric (sort).

Within each caller-callee report, the callers and callees are sorted by the caller-callee sort metrics (csort). You can limit the number of panels written by using the limit command (see Commands That Control Output). The selected (center) function is marked with an asterisk, as shown in the following example.

Attr.       Name
User CPU  
 sec.      
4.440          commandline
0.            *gpf
4.080          gpf_b
0.360          gpf_a

In this example, gpf is the selected function; it is called by commandline, and it calls gpf_a and gpf_b.

Caller-callees can slow data for a stack fragment, not just a single function. Fragments can be controlled with the cprepend, cappend, crmfirst, and crmlast commands.

csingle function-name [N]

Write the callers-callees panel for the named function. The optional parameter N is needed for those cases where several functions have the same name. The callers-callees panel is written for the Nth function with the given function name. When the command is given on the command line, N is required; if it is not needed, it is ignored. When the command is given interactively without N but N is required, a list of functions with the corresponding N value is printed.

cprepend function-name [N | ADDR]

When building a call stack, prepend the named function to the current call stack fragment. The optional parameter is needed where the function name is ambiguous; see source|src { filename | function-name } [ N] for more information about specifying the parameter.

cappend function-name [N | ADDR]

When building a call stack, append the named function to the current call stack fragment. The optional parameter is needed where the function name is ambiguous; see source|src { filename | function-name } [ N] for more information about specifying the parameter.

crmfirst

When building a call stack, remove the top frame from the call stack segment.

crmlast

When building a call stack, remove the bottom frame from the call stack segment.