How to write the custom wprp files required by the wpt tool

Sur 46 Reputation points
2022-10-08T07:45:07.66+00:00

As a new tester, I need to use the wpr tool to grab logs in the background, but the default option does not limit the etl log size. So I'm going to write a custom configuration file, but I don't see any templates other than documentation help. Even the exportprofiles option is not available.

248624-image.png

So how do I get the provider information in the WPR-ProfileDetails CPU written in the correct template?I know CpatureStateOnsave has a key element, but what does the number after the provider mean?
248654-image.png

Windows Performance Toolkit
Windows Performance Toolkit
A collection of Microsoft performance monitoring tools that produce in-depth performance profiles of Windows operating systems and applications.
109 questions
0 comments No comments
{count} votes

Accepted answer
  1. Konstantin Chernyi 161 Reputation points
    2022-10-11T12:04:49.977+00:00

    Even the exportprofiles option is not available.

    This feature available in later version of wpr( for example it works fine in 10.0.22621) which you can get by installing latest WPT.

    but what does the number after the provider mean?

    it's a filtering by keyword https://learn.microsoft.com/en-us/windows-hardware/test/wpt/keywords--in-eventprovider-


1 additional answer

Sort by: Most helpful
  1. Alois Kraus 1 Reputation point
    2022-12-09T08:40:58.293+00:00

    An example how you can limit the file size can be found in my MultiProfile.wprp.
    See https://github.com/Alois-xx/FileWriter/blob/master/MultiProfile.wprp. It contains also a lot of comments what these values mean.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.