问题描述
我尝试使用logman而不是DDK跟踪日志来收集由我的使用WPP的应用程序生成的* .etl数据,但在读取etl文件并解码* .fmt信息后无法看到任何数据(在* .etl中)通过使用traceview.
I try to use logman instead of DDK tracelog for colecting *.etl data produced by my application that uses WPP but was not able to see any data (in *.etl) after reading the etl file and decoding *.fmt information by using traceview.
我做错了什么?我这样生成* etl
What am I doing wrong? I generate *etl like this
logman开始会话" -o"Trace.etl" -p"{28EE579B-CF67-43b6-9D19-8930E7AAA131}" -etslogman停止会话" -ets
logman start "Session" -o "Trace.etl" -p "{28EE579B-CF67-43b6-9D19-8930E7AAA131}" -etslogman stop "Session" -ets
当使用traceview打开生成的Trace.etl时,它不会仅显示没有收集的数据而显示错误.
When opening with traceview the generated Trace.etl it shows not errors only that there is no collected data there.
我指定我使用mofcompiler在系统上注册了生成的* .mof文件,并且直接使用traceview可以看到数据.
I specify that I registered my generated *.mof file using mofcompiler on the system and that by using traceview directly I can see data.
推荐答案
问题是我没有指定任何标志,因此(WPP消息设置了标志,我看不到任何数据)的事实
The problem was the fact that I didn't specify any flags and because of that (WPP messages being with flags set I was not seeing any data:
>
logman start"Session" -o"Trace.etl" -p"{28EE579B-CF67-43b6-9D19-8930E7AAA131}" 0xFFFF -ets logman stop"Session" -ets
logman start "Session" -o "Trace.etl" -p "{28EE579B-CF67-43b6-9D19-8930E7AAA131}" 0xFFFF -ets logman stop "Session" -ets
这篇关于使用Logman收集数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!