Compartir a través de


Understanding Resource Contention Data Values

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Resource contention profiling collects detailed call stack information each time competing threads in an application are forced to wait for access to a shared resource.

Requirements

  • Visual Studio Ultimate, Visual Studio Premium, Visual Studio Professional

    Resource contention reports display the total number of contentions and the total time that was spent waiting for a resource for the modules, functions, source code lines, and instructions in which the waiting occurred.

  • Inclusive values display the total number of contentions that forced a function to wait by resource contentions and the total time that the function waited. Contentions that were caused by child functions that were called by the function are included in inclusive values.

  • Exclusive values display only the number of contentions that forced a function to wait and that were caused by code in the body of the function. Contentions caused by child functions are not included. The exclusive time for the function also includes only the wait times that were caused by statements in the function body.

    Resource contention report views also include timeline graphs that show the individual contention events over time and show the call stacks that created the particular event. For more information, see one of the following topics:

  • Thread Details View

  • Resource Details View

    For more information about the second mode of concurrency profiling, see Concurrency Visualizer.