Partager via


Msft_WmiProvider_Counters class

The MSFT_WmiProvider_Counters singleton troubleshooting class exposes approximate counts of WMI internal operation calls across all providers. An example of an internal operation call is creating an instance enumeration asynchronously.

Syntax

[Dynamic, Provider("Msft_ProviderSubSystem"), Singleton, AMENDMENT]
class Msft_WmiProvider_Counters
{
  Uint64 ProviderOperation_GetObjectAsync;
  Uint64 ProviderOperation_PutClassAsync;
  Uint64 ProviderOperation_DeleteClassAsync;
  Uint64 ProviderOperation_CreateClassEnumAsync;
  Uint64 ProviderOperation_PutInstanceAsync;
  Uint64 ProviderOperation_DeleteInstanceAsync;
  Uint64 ProviderOperation_CreateInstanceEnumAsync;
  Uint64 ProviderOperation_ExecQueryAsync;
  Uint64 ProviderOperation_ExecMethodAsync;
  Uint64 ProviderOperation_QueryInstances;
  Uint64 ProviderOperation_CreateRefresher;
  Uint64 ProviderOperation_CreateRefreshableObject;
  Uint64 ProviderOperation_StopRefreshing;
  Uint64 ProviderOperation_CreateRefreshableEnum;
  Uint64 ProviderOperation_GetObjects;
  Uint64 ProviderOperation_GetProperty;
  Uint64 ProviderOperation_PutProperty;
  Uint64 ProviderOperation_ProvideEvents;
  Uint64 ProviderOperation_NewQuery;
  Uint64 ProviderOperation_CancelQuery;
  Uint64 ProviderOperation_AccessCheck;
  Uint64 ProviderOperation_SetRegistrationObject;
  Uint64 ProviderOperation_FindConsumer;
  Uint64 ProviderOperation_ValidateSubscription;
};

Members

The Msft_WmiProvider_Counters class has these types of members:

Properties

The Msft_WmiProvider_Counters class has these properties.

ProviderOperation_AccessCheck

Data type: Uint64

Access type: Read-only

The number of calls to IWbemEventProviderSecurity::AccessCheck.

ProviderOperation_CancelQuery

Data type: Uint64

Access type: Read-only

The number of calls to IWbemEventProviderQuerySink::CancelQuery.

ProviderOperation_CreateClassEnumAsync

Data type: Uint64

Access type: Read-only

The number of calls to IWbemServices::CreateClassEnumAsync.

ProviderOperation_CreateInstanceEnumAsync

Data type: Uint64

Access type: Read-only

The number of calls to IWbemServices::CreateInstanceEnumAsync.

ProviderOperation_CreateRefreshableEnum

Data type: Uint64

Access type: Read-only

The number of calls to IWbemHiPerfProvider::CreateRefreshableEnum.

ProviderOperation_CreateRefreshableObject

Data type: Uint64

Access type: Read-only

The number of calls to IWbemHiPerfProvider::CreateRefreshableObject.

ProviderOperation_CreateRefresher

Data type: Uint64

Access type: Read-only

The number of calls to IWbemHiPerfProvider::CreateRefresher.

ProviderOperation_DeleteClassAsync

Data type: Uint64

Access type: Read-only

The number of calls to IWbemServices::DeleteClassAsync.

ProviderOperation_DeleteInstanceAsync

Data type: Uint64

Access type: Read-only

The number of calls to IWbemServices::DeleteInstanceAsync.

ProviderOperation_ExecMethodAsync

Data type: Uint64

Access type: Read-only

The number of calls to IWbemServices::ExecMethodAsync.

ProviderOperation_ExecQueryAsync

Data type: Uint64

Access type: Read-only

The number of calls to IWbemServices::ExecQueryAsync.

ProviderOperation_FindConsumer

Data type: Uint64

Access type: Read-only

The number of calls to IWbemEventConsumerProvider::FindConsumer.

ProviderOperation_GetObjectAsync

Data type: Uint64

Access type: Read-only

The number of calls to IWbemServices::GetObjectAsync.

ProviderOperation_GetObjects

Data type: Uint64

Access type: Read-only

The number of calls to IWbemHiPerfProvider::GetObjects.

ProviderOperation_GetProperty

Data type: Uint64

Access type: Read-only

The number of calls to IWbemPropertyProvider::GetProperty.

ProviderOperation_NewQuery

Data type: Uint64

Access type: Read-only

The number of calls to IWbemEventProviderQuerySink::NewQuery.

ProviderOperation_ProvideEvents

Data type: Uint64

Access type: Read-only

The number of calls to IWbemEventProvider::ProvideEvents.

ProviderOperation_PutClassAsync

Data type: Uint64

Access type: Read-only

The number of calls to IWbemServices::PutClassAsync.

ProviderOperation_PutInstanceAsync

Data type: Uint64

Access type: Read-only

The number of calls to IWbemServices::PutInstanceAsync.

ProviderOperation_PutProperty

Data type: Uint64

Access type: Read-only

The number of calls to IWbemPropertyProvider::PutProperty.

ProviderOperation_QueryInstances

Data type: Uint64

Access type: Read-only

The number of calls to IWbemHiPerfProvider::QueryInstances.

ProviderOperation_SetRegistrationObject

Data type: Uint64

Access type: Read-only

The ProviderOperation_SetRegistrationObject is not implemented.

ProviderOperation_StopRefreshing

Data type: Uint64

Access type: Read-only

The number of calls to IWbemHiPerfProvider::StopRefreshing.

ProviderOperation_ValidateSubscription

Data type: Uint64

Access type: Read-only

The number of calls to IWbemEventConsumerProviderEx::ValidateSubscription.

Examples

The following VBScript code example shows how to use MSFT_WmiProvider_Counters to obtain data about usage of asynchronous calls.

On Error Resume Next 
strComputer = "." 
Set objWMIService = GetObject("winmgmts:\\" _
    & strComputer & "\root\CIMV2") 
Set colItems = objWMIService.ExecQuery( _
    "SELECT * FROM Msft_WmiProvider_Counters",,48) 
For Each objItem in colItems 

    Wscript.Echo "Msft_WmiProvider_Counters instance"
    Wscript.Echo _
        "ProviderOperation_CreateClassEnumAsync: " _
             & objItem.ProviderOperation_CreateClassEnumAsync  _
             & VBNewLine _ 
             &"ProviderOperation_CreateInstanceEnumAsync: " _
             & objItem.ProviderOperation_CreateInstanceEnumAsync _
         & VBNewLine & "ProviderOperation_DeleteClassAsync: " _
             & objItem.ProviderOperation_DeleteClassAsync _
         & VBNewLine & "ProviderOperation_DeleteInstanceAsync: " _
             & objItem.ProviderOperation_DeleteInstanceAsync _
         & VBNewLine & "ProviderOperation_ExecMethodAsync: " _
             & objItem.ProviderOperation_ExecMethodAsync _
         & VBNewLine & "ProviderOperation_ExecQueryAsync: " _
             & objItem.ProviderOperation_ExecQueryAsync _
         & VBNewLine & "ProviderOperation_GetObjectAsync: " _
             & objItem.ProviderOperation_GetObjectAsync _
         & VBNewLine & "ProviderOperation_PutClassAsync: " _
             & objItem.ProviderOperation_PutClassAsync  _
         & VBNewLine & "ProviderOperation_PutInstanceAsync: " _
             & objItem.ProviderOperation_PutInstanceAsync
Next

Requirements

Namespace
Root\CIMV2
MOF
System.mof
DLL
WmiPrvSD.dll

See also

WMI Troubleshooting Classes