1
0

VS Profiling: Shutdown the profiler on error.

This commit is contained in:
Mattes D 2014-08-26 16:36:01 +03:00
parent ac4d3a30ed
commit 7146ed3065

View File

@ -45,7 +45,7 @@ if %outputdir%n == n (
::Create the output directory, if it didn't exist
:: Create the output directory, if it didn't exist
mkdir %outputdir%
@ -60,7 +60,7 @@ if errorlevel 1 goto haderror
:: Launch the application via the profiler
%pt%\vsperfcmd /launch:%app%
if errorlevel 1 goto haderror
if errorlevel 1 goto haderrorshutdown
:: Shut down the profiler (this command waits, until the application is terminated)
%pt%\vsperfcmd /shutdown
@ -86,6 +86,10 @@ goto finished
:haderrorshutdown
echo An error was encountered, shutting down the profiler
%pt%\vsperfcmd /shutdown
:haderror
echo An error was encountered
pause