答案 0 :(得分:0)
您需要使用工具捕获事件:
xperf
:" C:\ Program Files(x86)\ Windows Kits \ 10 \ Windows Performance Toolkit \ xperf.exe" -start UserLogger -on GUID -f User.etl&&超时-1&& " C:\ Program Files(x86)\ Windows Kits \ 8.1 \ Windows Performance Toolkit \ xperf.exe" -stop UserLogger
您想要的是write to Eventlog,因此您必须设置Event Channel
attribute