summaryrefslogtreecommitdiffstats
path: root/VC2008/profile_run.cmd
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-05-08 11:22:32 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-05-08 11:22:32 +0200
commit90740aff3cd208d3100de50379f01dc99ce5f433 (patch)
treeda0eac15eaae951b00fbe546b1f30374929f8826 /VC2008/profile_run.cmd
parentFast NBT Parser (loading a chunk is now about 10 times faster) (diff)
downloadcuberite-90740aff3cd208d3100de50379f01dc99ce5f433.tar
cuberite-90740aff3cd208d3100de50379f01dc99ce5f433.tar.gz
cuberite-90740aff3cd208d3100de50379f01dc99ce5f433.tar.bz2
cuberite-90740aff3cd208d3100de50379f01dc99ce5f433.tar.lz
cuberite-90740aff3cd208d3100de50379f01dc99ce5f433.tar.xz
cuberite-90740aff3cd208d3100de50379f01dc99ce5f433.tar.zst
cuberite-90740aff3cd208d3100de50379f01dc99ce5f433.zip
Diffstat (limited to 'VC2008/profile_run.cmd')
-rw-r--r--VC2008/profile_run.cmd39
1 files changed, 39 insertions, 0 deletions
diff --git a/VC2008/profile_run.cmd b/VC2008/profile_run.cmd
new file mode 100644
index 000000000..77138d20a
--- /dev/null
+++ b/VC2008/profile_run.cmd
@@ -0,0 +1,39 @@
+@
+@ 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"
+
+
+
+
+