XPerf comes with Windows SDK. You can get it from MSFT website. During installation there is an option to install just the performance tools should you want only perf tools and not the whole SDK.
To collect a trace from administrator command line:
CPU Usage by Process.
CPU Sampling by CPU.
Stack Counts by type.
Happy XPerf-ing!
To collect a trace from administrator command line:
- Begin your workload.
- xperf -on base+cswitch+power -stackwalk Profile -f c:\kernel.etl
- xperf -stop
- If you have previously created c:\merged.etl, delete it.
- xperf -merge c:\kernel.etl c:\merged.etl
- set _NT_SYMBOL_PATH=<path to PDB files>
- xperf c:\merged.etl (this launches the viewer)
CPU Usage by Process.
CPU Sampling by CPU.
Stack Counts by type.
Happy XPerf-ing!
Disclaimer: If you follow the information here, there is no warranty, I am not liable if it deletes your data, gets you hacked, burns your house down or anything else. If you follow the information contained here you do so entirely at your own risk. My views and opinions are my own and not necessarily represent the views of my current or former employers. © Raheel Hameed and www.raheelhameed.com, 2017. Unauthorized use and/or duplication of this material without express and written permission from this site’s author and/or owner is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to author and this website with appropriate and specific direction to the original content.
Comments
Post a Comment