Quantcast
Channel: C#
Viewing all articles
Browse latest Browse all 1853

Managing Call Stacks

$
0
0

Intel VTune Amplifier provides call stack information in the Call Stack pane, Bottom-up pane and Top-down Tree pane.

Navigate and configure the stack information in the Call Stack pane as follows:

To Do This

Do This

Navigate between different stacks

Click the next/previous arrows to view stacks for the selected program unit, estimate stack contribution, and identify the most performance-critical stack.

View information on several stacks or program units

Ctrl-click to select these stacks or program units in the Bottom-up or Top-down Tree pane.

Outcome: The Call Stack pane shows the highest contributing stack from all the selected stacks, with the contribution calculated based on the sum of all selected stacks. All the stacks related to the selection are added to the tab and you can navigate to them using the next/previous arrows.

Open the related source file

Double-click a row in the Call Stack pane.

Outcome: The source file opens in the Source/Assembly window, on the code that generates the item in the selected row.

For example, in a Locks and Waits analysis result, if you double-click the topmost item of the Object Creation stack, the related source file opens on the source lines that created the corresponding synchronization object.

If the source code is not found, you can either locate it manually, or open the Assembly pane for this program unit.

If you select a system function, the Source/Assembly window opens the source file of the system function if it is available. If not, it shows the disassembly for the binary file containing this system function.

View data for different stack types

Use the drop-down list , to choose the stack type for the selected program unit.

For example, when a synchronization object is selected in the Locks and Waits analysis result, you can set the Call Stack pane to show the stacks where that object was created, closed, signaled or waited for.

View kernel stacks

Select the User/system functions call stack mode on the filter toolbar to view kernel stacks in the user functions stacks:

To locate the call of the kernel function in the assembly code, double click the function in the Call Stack pane:

Manage stack data in the grid (Bottom-up or Top-down Tree pane) as follows:

To Do This

Do This

Change the stack layout for the Call Stack grouping level

Click the View Stack as a Chain button to switch between call stack layouts.

Chain layouts are typically more useful for the bottom-up view:

While tree layouts are more natural for the top-down view:

Note

Chain layouts in the Top-down Tree pane is possible only if there is no branching AND when all values of data columns are the same for the parent and for the child.

See Also


Supplemental documentation specific to a particular Intel Studio may be available at <install-dir>\<studio>\documentation\ .

Inglese

Viewing all articles
Browse latest Browse all 1853

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>