DkmProcess.QueryPerformanceCounters Method

Definition

Asynchronous Method to obtain the timing data from the IDkmPerformanceMeasurementDispatcherService gathered from events emitted by the runtimes in the process. This is called asynchronously because obtaining the debugger overhead can be very expensive.

This method will append a new work item to the specified work list, and return once the work item has been appended. The actual processing of the work item is asynchronous. The caller will be notified that the request is complete through the completion routine.

This API was introduced in Visual Studio 14 RTM (DkmApiVersion.VS14RTM).

public:
 void QueryPerformanceCounters(Microsoft::VisualStudio::Debugger::DkmWorkList ^ WorkList, Microsoft::VisualStudio::Debugger::DkmCompletionRoutine<Microsoft::VisualStudio::Debugger::DkmPerformanceCountersAsyncResult> ^ CompletionRoutine);
public void QueryPerformanceCounters (Microsoft.VisualStudio.Debugger.DkmWorkList WorkList, Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.DkmPerformanceCountersAsyncResult> CompletionRoutine);
member this.QueryPerformanceCounters : Microsoft.VisualStudio.Debugger.DkmWorkList * Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.DkmPerformanceCountersAsyncResult> -> unit
Public Sub QueryPerformanceCounters (WorkList As DkmWorkList, CompletionRoutine As DkmCompletionRoutine(Of DkmPerformanceCountersAsyncResult))

Parameters

WorkList
DkmWorkList

WorkList to append the new work item to.

CompletionRoutine
DkmCompletionRoutine<DkmPerformanceCountersAsyncResult>

Routine to fire when the request is complete. If the request is successfully appended to the work list, this will always fire (including when the operation is canceled). This will never fire if appending the work item fails.

Applies to