11cb0ef41Sopenharmony_ci<?xml version="1.0" encoding="utf-8"?>
21cb0ef41Sopenharmony_ci<WindowsPerformanceRecorder Version="1.0">
31cb0ef41Sopenharmony_ci  <!--
41cb0ef41Sopenharmony_ciNote: The following utilities are usually installed to: "C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit"
51cb0ef41Sopenharmony_ciSee https://docs.microsoft.com/en-us/windows-hardware/test/wpt/ for an overview of the tools.
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ciStart and stop the trace:
81cb0ef41Sopenharmony_ci
91cb0ef41Sopenharmony_ci  wpr -start wpr.wprp!V8js
101cb0ef41Sopenharmony_ci...run scenario...
111cb0ef41Sopenharmony_ci  wpr -stop v8js.etl
121cb0ef41Sopenharmony_ci
131cb0ef41Sopenharmony_ciYou can also run "wpr -status collectors details" while recording to check on status.
141cb0ef41Sopenharmony_ci
151cb0ef41Sopenharmony_ciNote: If you have issues with the command line, run WRPUI, and load this profile via the dialog.
161cb0ef41Sopenharmony_ci
171cb0ef41Sopenharmony_ciRun the below to open the trace:
181cb0ef41Sopenharmony_ci
191cb0ef41Sopenharmony_ci  wpa v8js.etl
201cb0ef41Sopenharmony_ci
211cb0ef41Sopenharmony_ciSet _NT_SYMBOL_PATH to a value such as "C:\src\v8\v8\out.gn\x64.debug;srv*c:\symbols*https://msdl.microsoft.com/download/symbols" first.
221cb0ef41Sopenharmony_ciAppend "-symcacheonly" on the WPA command to save it trying to reload prior failed symbols on subsequent runs.
231cb0ef41Sopenharmony_ci
241cb0ef41Sopenharmony_ciFor details on editing this file, see https://docs.microsoft.com/en-us/windows-hardware/test/wpt/authoring-recording-profiles
251cb0ef41Sopenharmony_ci  -->
261cb0ef41Sopenharmony_ci  <Profiles>
271cb0ef41Sopenharmony_ci    <SystemCollector Id="SystemCollector" Name="NT Kernel Logger">
281cb0ef41Sopenharmony_ci      <BufferSize Value="1024"/>
291cb0ef41Sopenharmony_ci      <Buffers Value="384"/>
301cb0ef41Sopenharmony_ci    </SystemCollector>
311cb0ef41Sopenharmony_ci    <EventCollector Id="EventCollector_V8js" Name="V8js Event Collector">
321cb0ef41Sopenharmony_ci      <BufferSize Value="1024"/>
331cb0ef41Sopenharmony_ci      <Buffers Value="256"/>
341cb0ef41Sopenharmony_ci    </EventCollector>
351cb0ef41Sopenharmony_ci    <SystemProvider Id="SystemProvider">
361cb0ef41Sopenharmony_ci      <Keywords>
371cb0ef41Sopenharmony_ci        <Keyword Value="ProcessThread"/>
381cb0ef41Sopenharmony_ci        <Keyword Value="Loader"/>
391cb0ef41Sopenharmony_ci        <Keyword Value="SampledProfile"/>
401cb0ef41Sopenharmony_ci        <Keyword Value="ReadyThread"/>
411cb0ef41Sopenharmony_ci        <Keyword Value="CSwitch"/>
421cb0ef41Sopenharmony_ci        <Keyword Value="DiskIOInit"/>
431cb0ef41Sopenharmony_ci        <Keyword Value="FileIOInit"/>
441cb0ef41Sopenharmony_ci        <Keyword Value="HardFaults"/>
451cb0ef41Sopenharmony_ci      </Keywords>
461cb0ef41Sopenharmony_ci      <Stacks>
471cb0ef41Sopenharmony_ci        <!-- See https://docs.microsoft.com/en-us/windows-hardware/test/wpt/stack-wpa for options -->
481cb0ef41Sopenharmony_ci        <Stack Value="SampledProfile"/>
491cb0ef41Sopenharmony_ci        <Stack Value="ReadyThread"/>
501cb0ef41Sopenharmony_ci        <Stack Value="CSwitch"/>
511cb0ef41Sopenharmony_ci      </Stacks>
521cb0ef41Sopenharmony_ci    </SystemProvider>
531cb0ef41Sopenharmony_ci    <EventProvider Id="Provider_V8js" Name="57277741-3638-4A4B-BDBA-0AC6E45DA56C" Level="5" Stack="true"></EventProvider>
541cb0ef41Sopenharmony_ci    <Profile Id="V8js.Verbose.File" Name="V8js" DetailLevel="Verbose" LoggingMode="File" Description="V8.js profile">
551cb0ef41Sopenharmony_ci      <Collectors>
561cb0ef41Sopenharmony_ci        <SystemCollectorId Value="SystemCollector">
571cb0ef41Sopenharmony_ci          <SystemProviderId Value="SystemProvider"></SystemProviderId>
581cb0ef41Sopenharmony_ci        </SystemCollectorId>
591cb0ef41Sopenharmony_ci        <EventCollectorId Value="EventCollector_V8js">
601cb0ef41Sopenharmony_ci          <EventProviders>
611cb0ef41Sopenharmony_ci            <EventProviderId Value="Provider_V8js"></EventProviderId>
621cb0ef41Sopenharmony_ci          </EventProviders>
631cb0ef41Sopenharmony_ci        </EventCollectorId>
641cb0ef41Sopenharmony_ci      </Collectors>
651cb0ef41Sopenharmony_ci    </Profile>
661cb0ef41Sopenharmony_ci    <Profile Id="V8js.Verbose.Memory" Base="V8js.Verbose.File" Name="V8js" DetailLevel="Verbose" LoggingMode="Memory" Description="V8.js profile"></Profile>
671cb0ef41Sopenharmony_ci  </Profiles>
681cb0ef41Sopenharmony_ci</WindowsPerformanceRecorder>
69