Questions tagged [xperf]

xperf.exe is a tool from Windows SDK to control event tracing via designated Windows facility called ETW. The tool is often used for performance analysis and OS troubleshooting.

xperf.exe is a tool from Windows SDK Performance Kit to control event tracing via designated Windows facility called ETW (Event Tracing for Windows). Windows OS components are capable of emitting various ETW events corresponding to events in the Operating System. Examples are context switches and timer interrupts (for CPU profiling). xperf.exe can enable or disable emission of specific types of ETW events and save emitted events in log files for future analysis.

84 questions
64
votes
2 answers

xperf WinDBG C# .NET 4.5.2 Application - Understanding process dump

Under a heavy load, our application is making a beefy server go to 100% CPU usage. Reading the process dump, looking at the threads, some of them are 10 minutes up. None of them give me any insight when using !CLRStack. The !runaway is giving…
Walter Macambira
  • 2,574
  • 19
  • 28
11
votes
1 answer

Getting WPF ETW events using XPerf.exe

I cannot figure out the correct combination of command line switches and parameters to feed to XPerf.exe to get it to load the WPF ETW provider (Microsoft-Windows-WPF? a42c77db-874f-422e-9b44-6d89fe2bd3e5? E13B77A8-14B6-11DE-8069-001B212B5009}?) and…
codekaizen
  • 26,990
  • 7
  • 84
  • 140
7
votes
2 answers

Can ETW (event tracing for windows) be used to gather also memory statistics?

Is it possible using ETW to also get memory statistics of all the processes and the system ? With memory statistics I mean : e.g. Commited bytes, private bytes,paged pool,working set,... I cannot find anything about using xperf to get and see memory…
Alxg
  • 101
  • 1
  • 5
6
votes
1 answer

Windows CPU Scheduler - very high kernel time

We are trying to understand how Windows CPU Scheduler works in order to optimize our applications to achieve maximum possible infrastructure/real work ratio. There's some things in xperf that we don't understand and would like to ask the community…
Igor Malin
  • 652
  • 2
  • 8
  • 26
5
votes
1 answer

WPA does not see ETW event data, tracerpt does

I am capturing ADO.Net diagnostics ETW, as described in Data Access Tracing in SQL Server 2008. The setup works, an ETL file is produced and I can see the ADO.Net trace if I use, say, tracerpt: System.Data, TextA, 0, 0, …
Remus Rusanu
  • 288,378
  • 40
  • 442
  • 569
4
votes
2 answers

List files accessed per-process with xperf?

With xperf I can generate a trace and get a "flat" listing of all files read like so: xperf -on FileIO+FILE_IO+FILE_IO_INIT+FILENAME -stackwalk FileRead+FileWrite+FileDelete xperf -start FileIOSession -heap -PidNewProcess "C:\Python27\x86\python.exe…
Zadan
  • 71
  • 5
4
votes
3 answers

Problem installing WPT manifest using wevtutil

I'm trying to add performance counters and custom events to a piece of software, so that I can view these using Windows Performance Toolkit programs such as XPerf and GPUView. I am going to refrain, using all my powers of restraint, from launching…
Luther
  • 1,786
  • 3
  • 21
  • 38
4
votes
2 answers

How to view generic event details with wpa?

I record ETW events for CLR provider: xperf -start clr -on e13c0d23-ccbc-4e12-931b-d9cc2eee27e4 -f clr.etl ... xperf -stop clr then open clr.etl in wpa.exe and see plenty of 'generic event'. But seems wpa do not display some data, which described…
Sergey Azarkevich
  • 2,641
  • 2
  • 22
  • 38
4
votes
2 answers

How much memory of a process is paged out?

Is there a Performance Counter which indicates how much of memory of a specific process is paged out? I have a server which has 40 GB of available RAM (of 128 GB physical memory) but the paged out amount of data is over 100 GB. How can I find out…
Alois Kraus
  • 13,229
  • 1
  • 38
  • 64
4
votes
5 answers

Diagnosing Cause of 100% CPU Usage by "System" Process

I have a Windows server application, implemented in C++ using the Win32 API, that does a lot of serial and TCP/IP communication. As it runs, CPU usage gradually increases, until it reaches 100%. Task Manager indicates that most (>75%) of the CPU…
Kristopher Johnson
  • 81,409
  • 55
  • 245
  • 302
4
votes
1 answer

Can I use xperf to profile managed code?

I am trying to profile the CPU time in an ASP.NET application (running locally) using xperf. So far, I've followed the standard procedure: Run cmd as administrator xperf -on base Do some stuff in web app. xperf -d mylog.etl xperfview…
harpo
  • 41,820
  • 13
  • 96
  • 131
3
votes
3 answers

What is Hard Faults in XPerf

I'm trying to profile a system with XPerf. And see that performance problems occurs when there is activity in HardFaults ! But what I cant figure out and find in google what are these Hard Faults that xperf shows. What are they related to? What…
MajesticRa
  • 13,770
  • 12
  • 63
  • 77
3
votes
1 answer

How to perform Xperf callstack capture on 64b OS?

I have installed Xperf performance analyzer from Windows SDK and captured a trace as described in the documentation using following command: xperf -on SysProf -stackwalk profile Still, the stack trace does not contain any callstack data. My…
Suma
  • 33,181
  • 16
  • 123
  • 191
3
votes
3 answers

How to locate idle time (and network IO time, etc.) in XPerf?

Let's say I have a contrived program: #include void useless_function() { Sleep(5000); } void useful_function() { // ... do some work useless_function(); // ... do some more work } int main() { useful_function(); …
kizzx2
  • 18,775
  • 14
  • 76
  • 83
3
votes
2 answers

Are perfmon performance counters based on the same thing "under the hood" as the ETW events used by xperf?

I have recently been becoming acquainted with perfmon and with xperf. Perfmon uses performance counters and xperf uses ETW (event tracing for windows). Perfmon has objects that provide data, whereas xperf uses groups of "providers". As a newbie into…
user334911
1
2 3 4 5 6