问题
Is there any tool which displays at runtime, Page Faults delta on a per thread basis? Basically I have an application that is causing lots of page faults and I want to nail down the thread which is causing the maximum.
回答1:
I really doubt you could nail down page faults to threads a process page faults not a thread. Surely though its going to be the busiest thread in terms of either CPU or may be Context switches that you would want to look at.
I use process explorer for this sort of diagnosis. Open the properties on your application and select the threads tab.
回答2:
Use Xperf. It aggregates ETW events & lets you drill down to find out which process/thread/function is responsible for most cpu/memalloc/diskops/faults etc.
来源:https://stackoverflow.com/questions/781285/page-faults-monitor-for-windows