locked
WPRP files for default profiles? RRS feed

  • Question

  • Hello there, I'm struggling with the WPRP file format and wondered whether there is any way to get WPRP files for the default profiles? That would simplify everything by a lot, since I guess most people start with a default one and then want to modify that.

    Thanks! :)

    Sunday, February 9, 2020 4:49 PM

All replies

  • There are lots of .WPRP files copied to the system when you install the ADK:

    C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Assessment Toolkit\Energy\ConnectedStandby.wprp
    C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Assessment Toolkit\Energy\EnergyEfficiency.wprp
    C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Assessment Toolkit\Energy\resources\ModernStandby.wprp

     -Brian


    Azius Developer Training www.azius.com Windows device driver, internals, security, & forensics training and consulting. Blog at www.azius.com/blog

    • Proposed as answer by Brian Catlin Tuesday, February 11, 2020 7:30 PM
    Monday, February 10, 2020 6:32 PM
  • It is not easy to author the wprp profile. The best way to understand the basics of the profile, then modify the simple example. .Wprp files in ADK are good examples and the below link has another simple example that I provided to another user. 

    https://social.msdn.microsoft.com/Forums/en-US/4eddc5f8-fd2e-477a-b708-208b8ddbcfe4/documentation-for-keywordsstacks-in-custom-wpr-profiles?forum=wptkv5

    If you want to find out what system flags or event providers the default profile enable, you can do this;

    ex) wpr -profiledetails GeneralProfile.Verbose
    ex) wpr -profiledetails Cpu.light -filemode

    To find out the name of default profiles

    ex) wpr -profiles 

    Lastly, here is the default GeneralProfile Memory mode profile. I recommend not to use this as your staring point. It is quite verbose, uses lots of memory. You probably want to adjust buffersize, buffers, stacks, and providers for your purpose. 

    <WindowsPerformanceRecorder Version="1.0">
      <Profiles>
        <SystemCollector Id="WPR_initiated_WprApp_WPR_System_Collector" Name="WPR_initiated_WprApp_WPR System Collector">
          <BufferSize Value="1024" />
          <Buffers Value="1630" />
        </SystemCollector>
        <EventCollector Id="WPR_initiated_WprApp_WPR_Event_Collector" Name="WPR_initiated_WprApp_WPR Event Collector">
          <BufferSize Value="1024" />
          <Buffers Value="326" />
        </EventCollector>
        <SystemProvider Id="WPR_initiated_WprApp_WPR_System_Collector_Provider">
          <Keywords>
            <Keyword Value="AntiStarvation" />
            <Keyword Value="CpuConfig" />
            <Keyword Value="CSwitch" />
            <Keyword Value="DiskIO" />
            <Keyword Value="DPC" />
            <Keyword Value="HardFaults" />
            <Keyword Value="IdealProcessor" />
            <Keyword Value="Interrupt" />
            <Keyword Value="Loader" />
            <Keyword Value="MemoryInfo" />
            <Keyword Value="MemoryInfoWS" />
            <Keyword Value="ProcessCounter" />
            <Keyword Value="Power" />
            <Keyword Value="ProcessThread" />
            <Keyword Value="ReadyThread" />
            <Keyword Value="SampledProfile" />
            <Keyword Value="ThreadPriority" />
            <Keyword Value="WDFDPC" />
            <Keyword Value="WDFInterrupt" />
            <CustomKeyword Value="0xf0000000" />
          </Keywords>
          <Stacks>
            <Stack Value="CSwitch" />
            <Stack Value="DiskFlushInit" />
            <Stack Value="DiskReadInit" />
            <Stack Value="DiskWriteInit" />
            <Stack Value="ProcessCreate" />
            <Stack Value="SampledProfile" />
            <Stack Value="ReadyThread" />
            <Stack Value="ThreadDCEnd" />
          </Stacks>
        </SystemProvider>
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_b675ec37-bdb6-4648-bc92-f3fdc74d3ca2" Name="b675ec37-bdb6-4648-bc92-f3fdc74d3ca2" NonPagedMemory="true" Level="15">
          <Keywords>
            <Keyword Value="0x0000000000000040" />
          </Keywords>
        </EventProvider>
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_57277741-3638-4a4b-bdba-0ac6e45da56c" Name="57277741-3638-4a4b-bdba-0ac6e45da56c" NonPagedMemory="true">
          <Keywords>
            <Keyword Value="0x0000000000000001" />
          </Keywords>
          <CaptureStateOnSave Timeout="30">
            <Keyword Value="0x0000000000000004" />
          </CaptureStateOnSave>
        </EventProvider>
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_36b6f488-aad7-48c2-afe3-d4ec2c8b46fa" Name="36b6f488-aad7-48c2-afe3-d4ec2c8b46fa" NonPagedMemory="true">
          <Keywords>
            <Keyword Value="0x0000000000010000" />
          </Keywords>
        </EventProvider>
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_b7a19fcd-15ba-41ba-a3d7-dc352d5f79ba" Name="b7a19fcd-15ba-41ba-a3d7-dc352d5f79ba" NonPagedMemory="true" Strict="true" />
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_e13c0d23-ccbc-4e12-931b-d9cc2eee27e4" Name="e13c0d23-ccbc-4e12-931b-d9cc2eee27e4" NonPagedMemory="true" Level="5">
          <Keywords>
            <Keyword Value="0x0000000000020098" />
          </Keywords>
          <CaptureStateOnSave Timeout="30">
            <Keyword Value="0x0000000000020118" />
          </CaptureStateOnSave>
        </EventProvider>
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_314de49f-ce63-4779-ba2b-d616f6963a88" Name="314de49f-ce63-4779-ba2b-d616f6963a88" NonPagedMemory="true" />
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_a0b7550f-4e9a-4f03-ad41-b8042d06a2f7" Name="a0b7550f-4e9a-4f03-ad41-b8042d06a2f7" NonPagedMemory="true">
          <Keywords>
            <Keyword Value="0x0000000002000000" />
          </Keywords>
        </EventProvider>
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_e7ef96be-969f-414f-97d7-3ddb7b558ccc" Name="e7ef96be-969f-414f-97d7-3ddb7b558ccc" NonPagedMemory="true">
          <Keywords>
            <Keyword Value="0x0000000000002000" />
          </Keywords>
        </EventProvider>
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_8c416c79-d49b-4f01-a467-e56d3aa8234c" Name="8c416c79-d49b-4f01-a467-e56d3aa8234c" NonPagedMemory="true" Stack="true">
          <Keywords>
            <Keyword Value="0x0000000000402000" />
          </Keywords>
        </EventProvider>
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_49c2c27c-fe2d-40bf-8c4e-c3fb518037e7" Name="49c2c27c-fe2d-40bf-8c4e-c3fb518037e7" NonPagedMemory="true" />
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_9580d7dd-0379-4658-9870-d5be7d52d6de" Name="9580d7dd-0379-4658-9870-d5be7d52d6de" NonPagedMemory="true">
          <Keywords>
            <Keyword Value="0x0000000000000200" />
          </Keywords>
        </EventProvider>
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_6ad52b32-d609-4be9-ae07-ce8dae937e39" Name="6ad52b32-d609-4be9-ae07-ce8dae937e39" NonPagedMemory="true" Stack="true" Level="4" />
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_bf406804-6afa-46e7-8a48-6c357e1d6d61" Name="bf406804-6afa-46e7-8a48-6c357e1d6d61" NonPagedMemory="true">
          <Keywords>
            <Keyword Value="0x0000000000000003" />
          </Keywords>
        </EventProvider>
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_83ed54f0-4d48-4e45-b16e-726ffd1fa4af" Name="83ed54f0-4d48-4e45-b16e-726ffd1fa4af" NonPagedMemory="true" />
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_d8975f88-7ddb-4ed0-91bf-3adf48c48e0c" Name="d8975f88-7ddb-4ed0-91bf-3adf48c48e0c" NonPagedMemory="true" Stack="true" Level="4" />
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_315a8872-923e-4ea2-9889-33cd4754bf64" Name="315a8872-923e-4ea2-9889-33cd4754bf64" NonPagedMemory="true" Level="4">
          <Keywords>
            <Keyword Value="0x0000000000100000" />
          </Keywords>
        </EventProvider>
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_0a002690-3839-4e3a-b3b6-96d8df868d99" Name="0a002690-3839-4e3a-b3b6-96d8df868d99" NonPagedMemory="true" Level="5" />
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_751ef305-6c6e-4fed-b847-02ef79d26aef" Name="751ef305-6c6e-4fed-b847-02ef79d26aef" NonPagedMemory="true" />
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_8e92deef-5e17-413b-b927-59b2f06a3cfc" Name="8e92deef-5e17-413b-b927-59b2f06a3cfc" NonPagedMemory="true" />
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_cfeb0608-330e-4410-b00d-56d8da9986e6" Name="cfeb0608-330e-4410-b00d-56d8da9986e6" NonPagedMemory="true" />
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_e4b70372-261f-4c54-8fa6-a5a7914d73da" Name="e4b70372-261f-4c54-8fa6-a5a7914d73da" NonPagedMemory="true" />
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_e6835967-e0d2-41fb-bcec-58387404e25a" Name="e6835967-e0d2-41fb-bcec-58387404e25a" NonPagedMemory="true">
          <Keywords>
            <Keyword Value="0x0000000000000001" />
          </Keywords>
        </EventProvider>
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_d49918cf-9489-4bf1-9d7b-014d864cf71f" Name="d49918cf-9489-4bf1-9d7b-014d864cf71f" NonPagedMemory="true" />
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_331c3b3a-2005-44c2-ac5e-77220c37d6b4" Name="331c3b3a-2005-44c2-ac5e-77220c37d6b4" NonPagedMemory="true">
          <Keywords>
            <Keyword Value="0x0000000000000004" />
          </Keywords>
          <CaptureStateOnSave Timeout="30">
            <Keyword Value="0x0000000000000004" />
          </CaptureStateOnSave>
        </EventProvider>
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_a669021c-c450-4609-a035-5af59af4df18_CaptureState" Name="a669021c-c450-4609-a035-5af59af4df18" NonPagedMemory="true" Level="0" CaptureStateOnly="true">
          <CaptureStateOnSave Timeout="30">
            <Keyword Value="0x0000000000020118" />
          </CaptureStateOnSave>
        </EventProvider>
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_8c416c79-d49b-4f01-a467-e56d3aa8234c_CaptureState" Name="8c416c79-d49b-4f01-a467-e56d3aa8234c" NonPagedMemory="true" Stack="true" CaptureStateOnly="true">
          <CaptureStateOnSave Timeout="30">
            <Keyword Value="0x0000000000080000" />
          </CaptureStateOnSave>
        </EventProvider>
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_e7ef96be-969f-414f-97d7-3ddb7b558ccc_CaptureState" Name="e7ef96be-969f-414f-97d7-3ddb7b558ccc" NonPagedMemory="true" CaptureStateOnly="true">
          <CaptureStateOnSave Timeout="30">
            <Keyword Value="0x0000000000080000" />
          </CaptureStateOnSave>
        </EventProvider>
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_2a274310-42d5-4019-b816-e4b8c7abe95c_CaptureState" Name="2a274310-42d5-4019-b816-e4b8c7abe95c" NonPagedMemory="true" CaptureStateOnly="true">
          <CaptureStateOnSave Timeout="30">
            <Keyword Value="0x0000000000000010" />
          </CaptureStateOnSave>
        </EventProvider>
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_ce8dee0b-d539-4000-b0f8-77bed049c590_CaptureState" Name="ce8dee0b-d539-4000-b0f8-77bed049c590" NonPagedMemory="true" CaptureStateOnly="true">
          <CaptureStateOnSave Timeout="30">
            <Keyword Value="0xffffffffffffffff" />
          </CaptureStateOnSave>
        </EventProvider>
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_0f67e49f-fe51-4e9f-b490-6f2948cc6027_CaptureState" Name="0f67e49f-fe51-4e9f-b490-6f2948cc6027" NonPagedMemory="true" CaptureStateOnly="true">
          <CaptureStateOnSave Timeout="30">
            <Keyword Value="0xffffffffffffffff" />
          </CaptureStateOnSave>
        </EventProvider>
        <EventProvider Id="WPR_initiated_WprApp_WPR_Event_Collector_a6ad76e3-867a-4635-91b3-4904ba6374d7_CaptureState" Name="a6ad76e3-867a-4635-91b3-4904ba6374d7" NonPagedMemory="true" CaptureStateOnly="true">
          <CaptureStateOnSave Timeout="30">
            <Keyword Value="0x0000000000000010" />
          </CaptureStateOnSave>
        </EventProvider>
        <Profile Id="GeneralProfile.Verbose.Memory" Name="GeneralProfile" Description="RunningProfile" LoggingMode="Memory" DetailLevel="Verbose">
          <ProblemCategories>
            <ProblemCategory Value="First level triage" />
          </ProblemCategories>
          <Collectors>
            <SystemCollectorId Value="WPR_initiated_WprApp_WPR_System_Collector">
              <SystemProviderId Value="WPR_initiated_WprApp_WPR_System_Collector_Provider" />
            </SystemCollectorId>
            <EventCollectorId Value="WPR_initiated_WprApp_WPR_Event_Collector">
              <EventProviders>
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_b675ec37-bdb6-4648-bc92-f3fdc74d3ca2" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_57277741-3638-4a4b-bdba-0ac6e45da56c" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_36b6f488-aad7-48c2-afe3-d4ec2c8b46fa" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_b7a19fcd-15ba-41ba-a3d7-dc352d5f79ba" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_e13c0d23-ccbc-4e12-931b-d9cc2eee27e4" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_314de49f-ce63-4779-ba2b-d616f6963a88" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_a0b7550f-4e9a-4f03-ad41-b8042d06a2f7" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_e7ef96be-969f-414f-97d7-3ddb7b558ccc" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_8c416c79-d49b-4f01-a467-e56d3aa8234c" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_49c2c27c-fe2d-40bf-8c4e-c3fb518037e7" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_9580d7dd-0379-4658-9870-d5be7d52d6de" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_6ad52b32-d609-4be9-ae07-ce8dae937e39" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_bf406804-6afa-46e7-8a48-6c357e1d6d61" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_83ed54f0-4d48-4e45-b16e-726ffd1fa4af" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_d8975f88-7ddb-4ed0-91bf-3adf48c48e0c" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_315a8872-923e-4ea2-9889-33cd4754bf64" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_0a002690-3839-4e3a-b3b6-96d8df868d99" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_751ef305-6c6e-4fed-b847-02ef79d26aef" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_8e92deef-5e17-413b-b927-59b2f06a3cfc" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_cfeb0608-330e-4410-b00d-56d8da9986e6" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_e4b70372-261f-4c54-8fa6-a5a7914d73da" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_e6835967-e0d2-41fb-bcec-58387404e25a" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_d49918cf-9489-4bf1-9d7b-014d864cf71f" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_331c3b3a-2005-44c2-ac5e-77220c37d6b4" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_a669021c-c450-4609-a035-5af59af4df18_CaptureState" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_8c416c79-d49b-4f01-a467-e56d3aa8234c_CaptureState" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_e7ef96be-969f-414f-97d7-3ddb7b558ccc_CaptureState" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_2a274310-42d5-4019-b816-e4b8c7abe95c_CaptureState" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_ce8dee0b-d539-4000-b0f8-77bed049c590_CaptureState" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_0f67e49f-fe51-4e9f-b490-6f2948cc6027_CaptureState" />
                <EventProviderId Value="WPR_initiated_WprApp_WPR_Event_Collector_a6ad76e3-867a-4635-91b3-4904ba6374d7_CaptureState" />
              </EventProviders>
            </EventCollectorId>
          </Collectors>
          <TraceMergeProperties>
            <TraceMergeProperty Id="BaseVerboseTraceMergeProperties" Name="BaseTraceMergeProperties">
              <DeletePreMergedTraceFiles Value="true" />
              <FileCompression Value="false" />
              <InjectOnly Value="false" />
              <SkipMerge Value="false" />
              <CustomEvents>
                <CustomEvent Value="ImageId" />
                <CustomEvent Value="BuildInfo" />
                <CustomEvent Value="VolumeMapping" />
                <CustomEvent Value="EventMetadata" />
                <CustomEvent Value="PerfTrackMetadata" />
                <CustomEvent Value="WinSAT" />
                <CustomEvent Value="NetworkInterface" />
              </CustomEvents>
            </TraceMergeProperty>
          </TraceMergeProperties>
        </Profile>
      </Profiles>
    </WindowsPerformanceRecorder>
    

    • Proposed as answer by PyoShong Saturday, February 29, 2020 12:25 AM
    Saturday, February 29, 2020 12:24 AM
  • The WPR default profiles (as well as the most complete, up to date xsd schema) are embedded resources in in the wpr.exe image. You can extract them with a tool like ResourceHacker
    Wednesday, May 6, 2020 11:59 PM