wiki:EngineProfiling

Profiling the engine is actually not as hard as it looks, and one only needs the default built engine version and no other special tools.

Requirements:

Very Sleepy CS profiler (free, just google it)

sleepy_translator.py from /etc/engine_profiling SVN folder

A copy of the engine source (get the correct tag from github, just webdownload is sufficient) which reflects the version being debugged

Download and unzip next to script the debug symbols from http://springrts.com/dl/buildbot/default/develop/101.0.1-63-g5ebf047/win32/ (chose the right version!)

Python 2.x

http://imolarpg.dyndns.org/trac/balatest/raw-attachment/wiki/EngineProfiling/engine_profiler.png

Process:

Launch spring, get to the part you want to profile, then launch Very Sleepy, and select the threads you wish to profile (main thread of spring is sufficient)

When you are finished with collecting the samples, just save the myprofile.sleepy file from Very Sleepy next to your sleepy_translator.py

Launch the translator with:

python sleepy_translator.py -i myprofile.sleepy -s c:\temp\springsources\spring-master\ dont forget the trailing slash at the -s path to source option.

Open the myprofile_translated.sleepy file, and bask in the following glory:

Last modified 7 years ago Last modified on 03/08/16 21:14:36

Attachments (2)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.