!wmitrace.logsave
The !wmitrace.logsave extension writes the current contents of the trace buffers for a trace session to a file.
!wmitrace.logsave {LoggerID|LoggerName} Filename
Parameters
LoggerID
Specifies the trace session. LoggerID is an ordinal number that the system assigns to each trace session on the computer.
LoggerName
Specifies the trace session. LoggerName is the text name that was specified when the trace session was started.
Filename
Specifies a path (optional) and file name for the output file.
DLL
Wmitrace.dll
This extension is available in Windows 2000 and later versions of Windows. If you want to use this extension with Windows 2000, you must first copy the Wmitrace.dll file from the winxp subdirectory of the Debugging Tools for Windows installation directory to the w2kfre subdirectory.
Additional Information
For a conceptual overview of event tracing, see the Microsoft Windows SDK. For information about Tracelog, see "Tracelog" in the Windows Driver Kit (WDK).
Remarks
This extension displays only the traces that are in memory at the time. It does not display trace messages that have been flushed from the buffers and delivered to an event trace log file or to a trace consumer.
Trace session buffers store trace messages until they are flushed to a log file or to a trace consumer for a real-time display. This extension saves the contents of the buffers that are in physical memory to the specified file.
The output is written in binary format. Typically, these files use the .etl (event trace log) filename extension.
When you use Tracelog to start a trace session with circular buffering (-buffering), you can use this extension to save the current buffer contents.
To find the logger ID of a trace session, use the !wmitrace.strdump extension. Alternatively, you can use the Tracelog command tracelog -l to list the trace sessions and their basic properties, including the logger ID.