Displaying Annotated Source and Disassembly Code for a Function
Related Topics:
To display annotated source code for a function:
- 1. Click on the function in the right Function List display pane to select it.
- 2. Click Source... in the lower tool bar of the Analyzer window.
- Your text editor opens, showing the code for the selected function, with performance metrics for each line of source code displayed to the left of the code.
To generate annotated disassembly code:
- 1. Click on the function in the right Function List display pane to select it.
- 2. Click Disassembly... in the lower tool bar of the Analyzer window.
- Your text editor opens, displaying the disassembly code for the selected function, with performance metrics for each instruction displayed to the left, and the source code interleaved with the disassembly code, if it is available.
The metrics displayed in the annotation are those in the Function List display at the time you invoke the source or disassembly code. To change the metrics you must change the Function List metrics, then re-invoke the source or disassembly code. See Choosing the Metrics Displayed and the Sort Order for more information.
Note - You cannot display source or disassembly code for pseudofunctions like <Total> or <Unknown>.