Interop ETW Events

Interop events capture information about Microsoft intermediate language (MSIL) stub generation and caching.

This category consists of the following events:

  • ILStubGenerated Event

  • ILStubCacheHit Event

ILStubGenerated Event

The following table shows the keyword and level. (For more information, see CLR ETW Keywords and Levels.)

Keyword for raising the event

Level

InteropKeyword (0x2000)

Informational(4)

The following table shows the event information.

Event

Event ID

Raised when

ILStubGenerated

88

The MSIL stub has been generated.

The following table shows the event data.

Field name

Data type

Description

ModuleID

win:UInt16

The module identifier.

StubMethodID

win:UInt64

The stub method identifier.

StubFlags

win:UInt64

The flags for the stub:

0x1 - Reverse interop.

0x2 - COM interop.

0x4 - Stub generated by NGen.exe.

0x8 - Delegate.

0x10 - Variable arrgument.

0x20 - Unmanaged callee.

ManagedInteropMethodToken

win:UInt32

The token for the managed interop method.

ManagedInteropMethodNameSpace

win:UnicodeString

The namespace of the managed interop method.

ManagedInteropMethodName

win:UnicodeString

The name of the managed interop method.

ManagedInteropMethodSignature

win:UnicodeString

The signature of the managed interop method.

NativeMethodSignature

win:UnicodeString

The native method signature.

StubMethodSignature

win:UnicodeString

The stub method signature.

StubMethodILCode

win:UnicodeString

The MSIL code for the stub method.

ClrInstanceID

win:UInt16

Unique ID for the instance of CLR or CoreCLR.

Back to top

ILStubCacheHit Event

The following table shows the keyword and level.

Keyword for raising the event

Level

InteropKeyword (0x2000)

Informational(4)

The following table shows the event information.

Event

Event ID

Raised when

ILStubCacheHit

89

The MSIL cache has been accessed.

The following table shows the event data.

Field name

Data type

Description

ModuleID

win:UInt16

The module identifier.

StubMethodID

win:UInt64

The stub method identifier.

ManagedInteropMethodToken

win:UInt32

The token for the managed interop method.

ManagedInteropMethodNameSpace

win:UnicodeString

The namespace of the managed interop method.

ManagedInteropMethodName

win:UnicodeString

The name of the managed interop method.

ManagedInteropMethodSignature

win:UnicodeString

The signature of the managed interop method.

ClrInstanceID

win:UInt16

Unique ID for the instance of CLR or CoreCLR.

Back to top

See Also

Other Resources

CLR ETW Events