.NET Event Tracing Class Library  

EventTraceSession Members

EventTraceSession overview

Public Constructors

public
						
						
						
						
						
						 propertyEventTraceSession Creates an event tracing session object which is not setup. Requires specific properties to be set to be able to manage a valid session.
public
						
						
						
						
						
						 propertyEventTraceSession(String name) Creates an event tracing session setup with the it's name.
public
						
						
						
						
						
						 propertyEventTraceSession(String name, String loggingFile, EventTraceLoggingMode flags) Creates an event tracing session setup with the it's name, the file it's going to log to and the logging flags.

Public Properties

public
						
						
						
						
						
						 propertyProviderID

(read-only)
Returns an Int32 which is the provider ID of driver returning this buffer. This property is included for completeness, it's unlikely this will be of any value.
public
						
						
						
						
						
						 propertyTraceSessionHandle

(read-only)
Returns an UInt64 which represents the providers trace handle. This property is included for completeness, it's unlikely this will be of any value.
public
						
						
						
						
						
						 propertyTraceFlags

(read-only)
Returns an Int32 which represents a set of flags that indicate the type of event tracing information provided. This property is included for completeness, it's unlikely this will be of any value. It must contain WNODE_FLAG_TRACED_GUID (from the API) to indicate that the structure contains event tracing information.
public
						
						
						
						
						
						 propertyNumberOfBuffers

(read-only)
Returns an Int32 which is the number of buffers allocated for the event tracing session's buffer pool.
public
						
						
						
						
						
						 propertyFreeBuffers

(read-only)
Returns an Int32 which is the number of buffers that are allocated but unused in the event tracing session's buffer pool.
public
						
						
						
						
						
						 propertyEventsLost

(read-only)
Returns an Int32 which is the number of event traces that were not recorded.
public
						
						
						
						
						
						 propertyBuffersWritten

(read-only)
Returns an Int32 which is the number of buffers written.
public
						
						
						
						
						
						 propertyLogBuffersLost

(read-only)
Returns an Int32 which is the number of buffers that could not be written to the log file.
public
						
						
						
						
						
						 propertyRealTimeBuffersLost

(read-only)
Returns an Int32 which is the number of buffers that could not be delivered in real-time.
public
						
						
						
						
						
						 propertySessionThreadID

(read-only)
Returns an Int32 which is the thread identifier for the event tracing session.
public
						
						
						
						
						
						 propertyProviderName

(read-only)
Returns a String which represents the provider's name. The name is obtained from the XML data files if the library can find them.
public
						
						
						
						
						
						 propertyProviderDescription

(read-only)
Returns a String which represents the provider's description. The decription is obtained from the XML data files if the library can find them.
public
						
						
						
						
						
						 propertyProviderGuid Manages a String which is the provider GUID (also known as the provider control callback function GUID).
public
						
						
						
						
						
						 propertyName Manages a String which is the name of the tracing session.
public
						
						
						
						
						
						 propertyLogFilePath Manages a String which is the path of the logging file.
public
						
						
						
						
						
						 propertyBufferSize Manages an Int32 which is the amount of memory allocated for each event tracing session buffer in kilobytes.
public
						
						
						
						
						
						 propertyMinimumBuffers Manages an Int32 which is the minimum number of buffers allocated for the event tracing session's buffer pool.
public
						
						
						
						
						
						 propertyMaximumBuffers Manages an Int32 which is the maximum number of buffers allocated for the event tracing session's buffer pool.
public
						
						
						
						
						
						 propertyMaximumFileSize Manages an Int32 which is the maximum size of the file used to log event traces, in megabytes.
public
						
						
						
						
						
						 propertyTraceLogMode Manages an EventTraceLoggingModes which is the current logging modes for the event tracing session.
public
						
						
						
						
						
						 propertyFlushTimer Manages an Int32 which is the time delay before dirty buffers get scheduled to be flushed, in seconds.
public
						
						
						
						
						
						 propertyAgeLimit Manages an Int32 which is the time delay before unused buffers are freed, in minutes.
public
						
						
						
						
						
						 propertyActiveSessions Retruns an EventTraceSessionCollection which is a list of all the currently active event tracing sessions.

Public Methods

public
						
						
						
						
						
						 propertyAddTraceLogMode Adds specific EventTraceLoggingModes flags to an event tracing session. This must be done either before the session has started or before the session is updated.
public
						
						
						
						
						
						 propertyRemoveTraceLogMode Removes specific EventTraceLoggingModes flags from an event tracing session. This must be done either before the session has started or before the session is updated.
public
						
						
						
						
						
						 propertyStart Starts this event tracing session using the values set in the various properties.
public
						
						
						
						
						
						 propertyStop Stops this event tracing session.
public
						
						
						
						
						
						 propertyUpdate Updates an event tracing session using the values set in the various properties.
public
						
						
						
						
						
						 propertyQuery Query an event tracing session for it's current statistics which results in all the properties of this object to be updated.
public
						
						
						
						
						
						 propertyEnableProviderTrace This starts an event tracing provider tracing events. This affects sessions which use a standard event tracing provider (i.e. not the kernel provider).

 

See Also

EventTraceSessionCollection Class | EventTraceSession Class | EventTraceRegisteredProvider Class | EventTraceProviderCollection Class | EventTraceProvider Class | EventTraceKernelSession Class

Contact Me   |  Developing WMI Solutions    |   Gwyn Cole's Developer Blog    |   Legal
 © 2003 Content by Gwyn Cole. All rights reserved.