我需要在Windows 10中創建文件記錄模式。爲此,我需要在Windows 10通用應用程序中創建自定義配置文件,以便我可以更改默認從內存到文件的記錄模式,並更改緩衝區設置。如何在Windows 10通用應用程序中創建自定義wpr配置文件
請幫忙。
我需要在Windows 10中創建文件記錄模式。爲此,我需要在Windows 10通用應用程序中創建自定義配置文件,以便我可以更改默認從內存到文件的記錄模式,並更改緩衝區設置。如何在Windows 10通用應用程序中創建自定義wpr配置文件
請幫忙。
微軟提供了一個演示WPR檔案中的 「C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\SampleWPRControlProfiles.wprp
」
它顯示瞭如何配置日誌記錄文件(LoggingMode="File"
)
<Profile
Description="Sample profile: File I/O activity"
DetailLevel="Verbose"
Id="MyFileIO.Verbose.File"
LoggingMode="File"
Name="MyFileIO"
>
<ProblemCategories>
<ProblemCategory Value="First Level Triage"/>
</ProblemCategories>
<Collectors>
<SystemCollectorId Value="SystemCollector_FileIO">
<SystemProviderId Value="SystemProvider_FileIO"/>
</SystemCollectorId>
<EventCollectorId Value="EventCollector_KernelPower">
<EventProviders>
<EventProviderId Value="EventProvider_DotNetProvider"/>
<EventProviderId Value="EventProvider_Microsoft-Windows-Kernel-Power_AC-DC-State"/>
</EventProviders>
</EventCollectorId>
</Collectors>
</Profile>
爲了驗證WPRP文件,在Visual Studio中,提取物打開從windowsperformancerecordercontrol.dll和load it in Visual Studio
最新WPRControlProfiles.xsd打開.wprp FIL e在Visual Studio中。
在主菜單中,選擇XML
,然後選擇Schemas
...
在出現的XML架構對話框中,選擇Add
...
選擇WPRControlProfiles.xsd架構。
以後使用WPRP文件,WPR.exe:
"C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\wpr.exe" -start MyProfile.wprp
運行你的應用程序,以及停止記錄運行以下命令:
"C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\wpr.exe" -stop Result.etl
現在分析與WPA.exe ETL文件或Perfview。
你需要更多信息/幫助嗎? – magicandre1981
感謝您的回覆,但我們改變了方法,現在使用Metro日誌。 – Vantage