Redigera

Dela via


Creating a Trace Session

This section explains how to use TraceView to create a real-time trace session or a trace log session.

When you create a trace session, TraceView configures and starts the trace session and enables the trace providers that you specify, such as the providers in a driver that is instrumented for event tracing.

TraceView uses wizard pages to guide you through the steps of creating the trace session.

TraceView requires that you specify at least one trace provider when creating a trace session. The provider type and the files that are available determine the method that you use to create the trace session.

This section includes:

Creating a trace session with a PDB file

Creating a trace session with a CTL file

Creating a trace session with a Control GUID

Creating a trace session for a registered provider

Creating an NT Kernel Logger trace session

Joining a Trace Session

Removing a Trace Provider

Setting Basic Trace Session Options

Selecting Flags and Levels

Setting Advanced Trace Session Options

Comments

TraceView requires a PDB symbol file, a trace message format (TMF) file, or a TMF directory when creating a trace session. TraceView does not use the %TRACE_FORMAT_SEARCH_PATH% environment variable.

When you use the TraceView window to create a trace session, the trace session runs only as long as the window remains open. You cannot close the window and leave the session running. To start a trace session that runs independently of the TraceView window, use the TraceView command-line interface.