Fixed profiling to work under the new project layout
git-svn-id: http://mc-server.googlecode.com/svn/trunk@844 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
4a3b5e93ec
commit
81e7eca286
@ -170,7 +170,7 @@
|
|||||||
EnableIntrinsicFunctions="true"
|
EnableIntrinsicFunctions="true"
|
||||||
AdditionalIncludeDirectories="../jsoncpp-src-0.5.0/include"
|
AdditionalIncludeDirectories="../jsoncpp-src-0.5.0/include"
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
|
PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="0"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
|
@ -167,7 +167,7 @@
|
|||||||
Optimization="2"
|
Optimization="2"
|
||||||
EnableIntrinsicFunctions="true"
|
EnableIntrinsicFunctions="true"
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS"
|
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="0"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
|
@ -200,7 +200,7 @@
|
|||||||
WholeProgramOptimization="true"
|
WholeProgramOptimization="true"
|
||||||
AdditionalIncludeDirectories=""../zlib-1.2.7";"../jsoncpp-src-0.5.0/include";"../lua-5.1.4/src";"../tolua++-1.0.93/include";../squirrel_3_0_1_stable/include;../squirrel_3_0_1_stable;../squirrel_3_0_1_stable/sqrat;.."
|
AdditionalIncludeDirectories=""../zlib-1.2.7";"../jsoncpp-src-0.5.0/include";"../lua-5.1.4/src";"../tolua++-1.0.93/include";../squirrel_3_0_1_stable/include;../squirrel_3_0_1_stable;../squirrel_3_0_1_stable/sqrat;.."
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;"
|
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="0"
|
||||||
UsePrecompiledHeader="2"
|
UsePrecompiledHeader="2"
|
||||||
PrecompiledHeaderThrough="Globals.h"
|
PrecompiledHeaderThrough="Globals.h"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
|
@ -166,7 +166,7 @@
|
|||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
AdditionalIncludeDirectories="../squirrel_3_0_1_stable/include"
|
AdditionalIncludeDirectories="../squirrel_3_0_1_stable/include"
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_CRT_SECURE_NO_WARNINGS"
|
PreprocessorDefinitions="WIN32;NDEBUG;_CRT_SECURE_NO_WARNINGS"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="0"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
DebugInformationFormat="3"
|
DebugInformationFormat="3"
|
||||||
|
@ -170,7 +170,7 @@
|
|||||||
EnableIntrinsicFunctions="true"
|
EnableIntrinsicFunctions="true"
|
||||||
AdditionalIncludeDirectories="../tolua++-1.0.93/include;../lua-5.1.4/src"
|
AdditionalIncludeDirectories="../tolua++-1.0.93/include;../lua-5.1.4/src"
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS"
|
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="0"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
|
@ -169,7 +169,7 @@
|
|||||||
Optimization="2"
|
Optimization="2"
|
||||||
EnableIntrinsicFunctions="true"
|
EnableIntrinsicFunctions="true"
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
|
PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="0"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="2"
|
UsePrecompiledHeader="2"
|
||||||
PrecompiledHeaderThrough="Globals.h"
|
PrecompiledHeaderThrough="Globals.h"
|
||||||
|
@ -9,32 +9,64 @@
|
|||||||
|
|
||||||
|
|
||||||
set pt="C:\Program Files\Microsoft Visual Studio 9.0\Team Tools\Performance Tools"
|
set pt="C:\Program Files\Microsoft Visual Studio 9.0\Team Tools\Performance Tools"
|
||||||
set app="vc2008\Release profiled\mcserver.exe"
|
set appdir=..\MCServer
|
||||||
set output=MCServer_profiledata.vsp
|
set app=MCServer.exe
|
||||||
|
|
||||||
|
:: outputdir is relative to appdir!
|
||||||
|
set outputdir=..\Profiling
|
||||||
|
set output=%outputdir%\profile.vsp
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cd ..
|
:: Must cd to MCServer's directory so that it can find settings.ini etc.
|
||||||
|
cd %appdir%
|
||||||
|
|
||||||
|
::Create the output directory, if it didn't exist
|
||||||
|
mkdir %outputdir%
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
:: Start the profiler
|
:: Start the profiler
|
||||||
%pt%\vsperfcmd /start:sample /output:%output%
|
%pt%\vsperfcmd /start:sample /output:%output%
|
||||||
|
if errorlevel 1 goto haderror
|
||||||
|
|
||||||
:: Launch the application via the profiler
|
:: Launch the application via the profiler
|
||||||
%pt%\vsperfcmd /launch:%app%
|
%pt%\vsperfcmd /launch:%app%
|
||||||
|
if errorlevel 1 goto haderror
|
||||||
|
|
||||||
:: Shut down the profiler (this command waits, until the application is terminated)
|
:: Shut down the profiler (this command waits, until the application is terminated)
|
||||||
%pt%\vsperfcmd /shutdown
|
%pt%\vsperfcmd /shutdown
|
||||||
|
if errorlevel 1 goto haderror
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
:: cd to outputdir, so that the reports are generated there
|
||||||
|
cd %outputdir%
|
||||||
|
|
||||||
:: generate the report files (.csv)
|
:: generate the report files (.csv)
|
||||||
%pt%\vsperfreport /summary:all %output% /symbolpath:"srv*C:\Programovani\Symbols*http://msdl.microsoft.com/download/symbols"
|
%pt%\vsperfreport /summary:all %output% /symbolpath:"srv*C:\Programovani\Symbols*http://msdl.microsoft.com/download/symbols"
|
||||||
|
if errorlevel 1 goto haderror
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
goto finished
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
:haderror
|
||||||
|
echo An error was encountered
|
||||||
|
pause
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
:finished
|
||||||
|
@ -169,7 +169,7 @@
|
|||||||
Optimization="2"
|
Optimization="2"
|
||||||
EnableIntrinsicFunctions="true"
|
EnableIntrinsicFunctions="true"
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS"
|
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="0"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
|
Loading…
Reference in New Issue
Block a user