The tracerpt command parses Event Trace Logs, log files generated by Performance Monitor, and real-time Event Trace providers. 它还生成转储文件、报表文件和报表架构。
Syntax
tracerpt <[-l] <value [value [...]]>|-rt <session_name [session_name [...]]>> [options]
Parameters
Parameters | Description |
---|---|
-配置 <filename> |
指定要加载的设置文件,其中包括命令选项。 |
-y | Specifies to answer yes to all questions, without prompting. |
-f <XML | HTML> |
指定报表文件格式。 |
-之 <CSV | EVTX | XML> |
指定转储文件格式。 The default is *XML. |
-df <filename> |
指定创建特定于Microsoft计数/报告架构文件。 |
-int <filename> |
指定将解释的事件结构转储到指定文件。 |
-rts | 指定在事件跟踪标头中添加报表原始时间戳。 Can only be used with -o. It's not supported with -report or -summary. |
-TMF <filename> |
指定要使用的跟踪消息格式定义文件。 |
-卫生纸 <value> |
指定 TMF 文件搜索路径。 可以使用多个路径,用分号分隔(;))。 |
-我 <value> |
指定提供程序映像路径。 匹配的 PDB 将位于符号服务器中。 可以使用多个路径,用分号分隔(;))。 |
-pdb <value> |
指定符号服务器路径。 可以使用多个路径,用分号分隔(;))。 |
-gmt | 指定将 WPP 有效负载时间戳转换为格林威治平均时间。 |
-rl <value> |
指定从 1 到 5 的系统报表级别。 Default is 1. |
-summary [filename] | 指定创建摘要报表文本文件。 The filename, if not specified, is summary.txt. |
-o [filename] | 指定创建文本输出文件。 The filename, if not specified, is dumpfile.xml. |
-report [filename] | 指定创建文本输出报表文件。 The filename, if not specified, is workload.xml. |
-lr | 指定限制较小。 这为与事件架构不匹配的事件尽最大努力。 |
-export [filename] | 指定创建事件架构导出文件。 The filename, if not specified, is schema.man. |
[-l] <value [value […]]> |
指定要处理的事件跟踪日志文件。 |
-rt <session_name [session_name […]]> |
指定实时事件跟踪会话数据源。 |
-? | 在命令提示符下显示帮助。 |
Examples
To create a report based on the two event logs logfile1.etl and logfile2.etl, and to create the dump file logdump.xml in XML format, type:
tracerpt logfile1.etl logfile2.etl -o logdump.xml -of XML
To create a report based on the event log logfile.etl, to create the dump file logdmp.xml in XML format, to use best efforts to identify events not in the schema, and to produce a summary report file logdump.txt and a report file, logrpt.xml, type:
tracerpt logfile.etl -o logdmp.xml -of XML -lr -summary logdmp.txt -report logrpt.xml
To use the two event logs logfile1.etl and logfile2.etl to produce a dump file, and to report file with the default filenames, type:
tracerpt logfile1.etl logfile2.etl -o -report
To use the event log logfile.etl and the performance log counterfile.blg to produce the report file logrpt.xml and the Microsoft-specific XML schema file schema.xml, type:
tracerpt logfile.etl counterfile.blg -report logrpt.xml -df schema.xml
To read the real-time Event Trace Session NT Kernel Logger and to produce the dump file logfile.csv in CSV format, type:
tracerpt -rt NT Kernel Logger -o logfile.csv -of CSV