1
0
cuberite-2a/VC2008/profile_run.cmd
madmaxoft@gmail.com c2f340d309 Fixed a (non-fatal) error in the profiling script
git-svn-id: http://mc-server.googlecode.com/svn/trunk@631 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-06-18 16:28:18 +00:00

41 lines
823 B
Batchfile

@echo off
::
:: Profiling using a MSVC standalone profiler
::
:: See http://www.codeproject.com/Articles/144643/Profiling-of-C-Applications-in-Visual-Studio-for-F for details
::
set pt="C:\Program Files\Microsoft Visual Studio 9.0\Team Tools\Performance Tools"
set app="vc2008\Release profiled\mcserver.exe"
set output=MCServer_profiledata.vsp
cd ..
:: Start the profiler
%pt%\vsperfcmd /start:sample /output:%output%
:: Launch the application via the profiler
%pt%\vsperfcmd /launch:%app%
:: Shut down the profiler (this command waits, until the application is terminated)
%pt%\vsperfcmd /shutdown
:: generate the report files (.csv)
%pt%\vsperfreport /summary:all %output% /symbolpath:"srv*C:\Programovani\Symbols*http://msdl.microsoft.com/download/symbols"