Intel® VTune™ Amplifier

SGX Hotspots Analysis

SGX Hotspots analysis type uses event-based sampling collection and is targeted for systems with Intel Software Guard Extensions (Intel SGX) feature enabled.

This analysis type uses the the INST_RETIRED.PREC_DIST hardware event that emulates precise clockticks and helps identify performance-critical program units inside security enclaves. Using the precise event is mandatory for the analysis on the systems with the Intel SGX enabled because regular non-precise events do not provide a correct instruction pointer and therefore cannot be attributed to correct modules.

To use the SGX Hotspots analysis type, explore:

Configuration Options

To configure options for the TSX Hotspots analysis:

  1. Click the New Analysis toolbar button.

    The Analysis Type window opens.

  2. From the left pane, select Microarchitecture Analysis > SGX Hotspots.

    The SGX Hotspots configuration pane opens on the right.

  3. Configure the following options:

    Collect stacks check box

    Enable hardware event-based stack sampling collection to analyze execution paths based on performance, parallelism, and power consumption metrics.

    Analyze user tasks, events, and counters check box

    Analyze tasks, events, and counters specified in your code via the ITT API. This option causes a higher overhead and increases the result size.

    Details button

    Expand/collapse the Details section to explore the default non-editable settings and hardware events used by the SGX Hotspots analysis for your system.

    Note

    If you want to modify these settings, click the Copy button in the upper right corner. VTune Amplifier creates an editable copy of the custom hardware event-based sampling analysis type configuration and locates it under the Custom Analysis branch in the analysis tree.

  4. Click Start to launch the analysis.

Viewpoints

You can choose to view SGX Hotspots analysis results in the Hotspots viewpoint that includes the following windows:

Analyze the Precise Clockticks metric values to identify the most time-consuming program units inside transactions.

See Also