Επεξεργασία

Κοινή χρήση μέσω


System.Diagnostics.Tracing Namespace

Provides types and members that enable you to create strongly typed events to be captured by event tracing for Windows (ETW).

Classes

DiagnosticCounter

DiagnosticCounter is an abstract class that serves as the parent class for various Counter* classes, namely EventCounter, PollingCounter, IncrementingEventCounter, and IncrementingPollingCounter.

EventAttribute

Specifies additional event schema information for an event.

EventCommandEventArgs

Provides the arguments for the OnEventCommand(EventCommandEventArgs) callback.

EventCounter

Provides the ability to collect statistics for very frequent events through the EventSource class.

EventDataAttribute

Specifies a type to be passed to the Write<T>(String, EventSourceOptions, T) method.

EventFieldAttribute

The EventFieldAttribute is placed on fields of user-defined types that are passed as EventSource payloads.

EventIgnoreAttribute

Specifies a property should be ignored when writing an event type with the Write<T>(String, EventSourceOptions, T) method.

EventListener

Provides methods for enabling and disabling events from event sources.

EventSource

Provides the ability to create events for event tracing across platforms.

EventSourceAttribute

Allows the event tracing for Windows (ETW) name to be defined independently of the name of the event source class.

EventSourceCreatedEventArgs

Provides data for the EventSourceCreated event.

EventSourceException

The exception that is thrown when an error occurs during event tracing for Windows (ETW).

EventWrittenEventArgs

Provides data for the OnEventWritten(EventWrittenEventArgs) callback.

IncrementingEventCounter

Provides a variant of EventCounter for variables that are ever-increasing, such as the number of exceptions in the runtime.

IncrementingPollingCounter

Provides a variant of EventCounter for variables that are ever-increasing, such as the number of exceptions in the runtime.

NonEventAttribute

Identifies a method that is not generating an event.

PollingCounter

Provides a variant of EventCounter that collects and calculates similar statistics as EventCounter.

Structs

EventSource.EventData

Provides the event data for creating fast WriteEvent overloads by using the WriteEventCore(Int32, Int32, EventSource+EventData*) method.

EventSource.EventSourcePrimitive

A wrapper type for separating primitive types (for example, int, long, and string) from other types in the EventSource API. This type shouldn't be used directly, but just as implicit conversions when using the WriteEvent API.

EventSourceOptions

Specifies overrides of default event settings such as the log level, keywords and operation code when the Write<T>(String, EventSourceOptions, T) method is called.

Enums

EventActivityOptions

Specifies the tracking of activity start and stop events.

EventChannel

Specifies the event log channel for the event.

EventCommand

Describes the command (Command property) that is passed to the OnEventCommand(EventCommandEventArgs) callback.

EventFieldFormat

Specifies how to format the value of a user-defined type and can be used to override the default formatting for a field.

EventFieldTags

Specifies the user-defined tag that is placed on fields of user-defined types that are passed as EventSource payloads through the EventFieldAttribute.

EventKeywords

Defines the standard keywords that apply to events.

EventLevel

Identifies the level of an event.

EventManifestOptions

Specifies how the ETW manifest for the event source is generated.

EventOpcode

Defines the standard operation codes that the event source attaches to events.

EventSourceSettings

Specifies configuration options for an event source.

EventTags

Specifies the tracking of activity start and stop events. You should only use the lower 24 bits. For more information, see EventSourceOptions and Write(String, EventSourceOptions).

EventTask

Defines the tasks that apply to events.

Remarks

A strongly typed event is identified by name and contains payload descriptions. You can discover the list of events that a program can produce by using reflection.