cd /d "%~dp0"
set PATH=C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Performance Tools;%PATH%
rem set PATH=C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Performance Tools\x64;%PATH%

rem VSInstr ..\Build\MergeUnicodeRelease\WinMergeU.exe
VSPerfCmd /Admin:Driver,Start
VSPerfCmd /start:sample /output:%~dp0\WinMergeU.vsp
VSPerfCmd /launch:%~dp0\..\Build\MergeUnicodeRelease\WinMergeU.exe
VSPerfCmd /shutdown
VSPerfReport %~dp0\WinMergeU.vsp /summary:all

pause
