When a process hangs temporarily and resource monitor/task manager show there is something stuck in the wait chain, I can
- use for example Process Explorer to create a dump of it
- open WinDbg and run
!analyze -v -hang
to see which thread was responsible for >3 seconds wait chain.
But I can't do it fast enough to catch a dump while the short lived wait chain is waiting.
I looked at ProcDump but it doesn't seem to be possible to do an auto dump when a wait chain is stuck for more than 3 seconds.
WhatIsHang doesn't even list the process I want to monitor (Slack)
In Windows 10 x64 Pro (1607), how to auto create a dump of a process when a wait chain is stuck for more than x seconds?