0

Scenario: 1. Started Xperf.

  1. App is started. There are ETW events (E1, E2) in App.
  2. While running App, ETW(E1,E2) events are raised, the (T1,T2) are timestamps corresponding to (E1, E2) events.
  3. Stop Xperf. ETL file is generated.
  4. The (T1,T2) timestamps are obtained from ETL file.

Query: How to get the CPU cycle consumed by App between timestamps (T1,T2) using xperf?

Arpit
  • 1

1 Answers1

0

Open the ETL in WPA.exe, drag and drop the CPU Usage (Sampling) and Generic Events to the analysis pane.

Select the time between Event 1 and 2 and click "Zoom". Now go to the CPU Sampling graph and filter the graph to only include your application. Now you see the number of Counts and the % of the CPU usage of your app during the duration between the 2 events.

magicandre1981
  • 27,895
  • 5
  • 86
  • 127
  • Thanks. Is there a way to get CPU cycle consumed by App between timestamps (T1,T2) via Command-Line? – Arpit Dec 26 '15 at 17:51
  • https://msdn.microsoft.com/de-de/library/dn926926(v=vs.85).aspx. But it looks like this don't include a filtering for a process. – magicandre1981 Dec 27 '15 at 06:46