Share via


IDkmPerformanceMeasurement140.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.

public:
 void QueryPerformanceCounters(Microsoft::VisualStudio::Debugger::DkmProcess ^ process, Microsoft::VisualStudio::Debugger::DkmWorkList ^ workList, Microsoft::VisualStudio::Debugger::DkmCompletionRoutine<Microsoft::VisualStudio::Debugger::DkmPerformanceCountersAsyncResult> ^ completionRoutine);
public void QueryPerformanceCounters (Microsoft.VisualStudio.Debugger.DkmProcess process, Microsoft.VisualStudio.Debugger.DkmWorkList workList, Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.DkmPerformanceCountersAsyncResult> completionRoutine);
abstract member QueryPerformanceCounters : Microsoft.VisualStudio.Debugger.DkmProcess * Microsoft.VisualStudio.Debugger.DkmWorkList * Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.DkmPerformanceCountersAsyncResult> -> unit
Public Sub QueryPerformanceCounters (process As DkmProcess, workList As DkmWorkList, completionRoutine As DkmCompletionRoutine(Of DkmPerformanceCountersAsyncResult))

Parameters

process
DkmProcess

[In] DkmProcess represents a target process which is being debugged. The debugger debugs processes, so this is the basic unit of debugging. A DkmProcess can represent a system process or a virtual process such as minidumps.

workList
DkmWorkList

WorkList which is currently being processed. This value can be used to check for cancelation or to append additional work. New work items will not begin executing until after this function returns.

completionRoutine
DkmCompletionRoutine<DkmPerformanceCountersAsyncResult>

Routine to fire when the request is complete. This will be implicitly fired if the implementation returns failure from this interface method. The implementation must fire this method in all other scenarios.

Applies to