Basic script for memory leak diagnosis with ETW and WPA. It's mostly based on article.
To execute script use syntax like this (as Administrator):
heap_diagnosis.bat "C:\dummy.exe -P test -no-remote"
Then "Press any key to continue . . ." will show up in command line, but do not press anything until you correctly exit executable! Output of diagnosis is in C:\xperf .