Intel® VTune™ Amplifier

Viewing Source Code for a Program Unit

When you analyzed the data provided in the Bottom-up/Top-down Tree windows and identified a hotspot in your application, you may open source for the hotspot from the following panes:

To access the source code from this pane:

Do this:

Bottom-up pane

Choose a required grouping level (function, call stack) and double-click it to view source. Alternatively, you can right-click and select View Source from the context menu. The outcome depends on the selected grouping level:

  • When you click a function, the Intel® VTune™ Amplifier opens the source at hottest (with the highest metric value) line of this function in the Source/Assembly pane. Use the hotspot navigation buttons to navigate between performance-critical lines/instructions of this function for the current Data of Interest.
  • When you click a call stack, the VTune Amplifier opens the source highlighting the call site (location where a function call is made) at the top of the call stack. The call site is marked with the yellow arrow .

Top-down Tree pane

Double-click the upper-level call tree node, or right-click it and select View Source from the context menu. VTune Amplifier opens the function code highlighting the call site. For the call tree leaf nodes, it highlights the hottest code line.

Caller/Callee window

Double-click a function in the Functions pane or right-click it and select View Source from the context menu. To access the source view from the Caller or Callee pane, use the context menu.

Call Stack pane

Double-click a call site or right-click it and select View Source from the context menu. VTune Amplifier opens the function source code and highlights this call site with the yellow arrow .

Timeline pane

Double-click a wait or right-click it and select View Source from the context menu. VTune Amplifier opens the wait function highlighting the waiting call site. If you double-click a transition, it highlights the signaling call site.

Note

If the function symbol information is not available, only the Assembly pane is enabled.

See Also