diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-02-03 21:37:13 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-02-03 21:37:13 +0100 |
commit | 2c214603e29f728804cd88522a1097de803ab321 (patch) | |
tree | a44010a49f1ef59b727982344c04aa8935d97564 /BiomeVisualiser/profile_run.cmd | |
parent | Added a GetClassStatic function to all entities, as well as cFurnaceEntity, cChestEntity and cWorld (diff) | |
download | cuberite-2c214603e29f728804cd88522a1097de803ab321.tar cuberite-2c214603e29f728804cd88522a1097de803ab321.tar.gz cuberite-2c214603e29f728804cd88522a1097de803ab321.tar.bz2 cuberite-2c214603e29f728804cd88522a1097de803ab321.tar.lz cuberite-2c214603e29f728804cd88522a1097de803ab321.tar.xz cuberite-2c214603e29f728804cd88522a1097de803ab321.tar.zst cuberite-2c214603e29f728804cd88522a1097de803ab321.zip |
Diffstat (limited to '')
-rw-r--r-- | BiomeVisualiser/profile_run.cmd | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/BiomeVisualiser/profile_run.cmd b/BiomeVisualiser/profile_run.cmd new file mode 100644 index 000000000..753ff18fb --- /dev/null +++ b/BiomeVisualiser/profile_run.cmd @@ -0,0 +1,70 @@ +@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 appdir="Release profiled"
+set app="Release profiled\BiomeVisualiser.exe"
+set args=""
+
+:: outputdir is relative to appdir!
+set outputdir=Profiling
+set output=profile.vsp
+
+
+
+
+
+::Create the output directory, if it didn't exist
+mkdir %outputdir%
+
+
+
+
+
+:: Start the profiler
+%pt%\vsperfcmd /start:sample /output:%outputdir%\%output%
+if errorlevel 1 goto haderror
+
+:: Launch the application via the profiler
+%pt%\vsperfcmd /launch:%app% /args:%args%
+if errorlevel 1 goto haderror
+
+:: Shut down the profiler (this command waits, until the application is terminated)
+%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)
+%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
|