Recently we have come up with various requests for automated data collection for slow response issues. Normally we recommend to collect consecutive manual hand dumps of the process or perfview at the time of the issue. But what if the issue is very intermittent and by the time we are notified about the issue, it disappears then the classic action plan won’t work. Already there are multiple ways for automated dump collection of the w3wp process using Debug Diag, ProcDump and FREB. I have come up with a different set of steps which has helped me most of the times either for an intermittent hang or slow response issue. The automation requires debug diag and tracing feature installed in IIS. More Details on how to automate the process can be found in the below link.
Hope this helps