IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Profiling, in SVN for next version
Cheeseh
post Jul 9 2009, 08:34 PM
Post #1


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



A useful tool for developers. I had to make it because things started to get slow after about 6 bots are added, this should not slow so much.

To profile:

first need to add a timer ID (bot_profiling.h)
IPB Image
next add the timer in the ID slot (bot_profiling.cpp)
IPB Image
next start and stop the timer you made -- this is the Navigation timer
IPB Image
it will show up when you start to debug using this command
IPB Image
it will look a bit like this (ignore the "min" atm it is broken in this image)
IPB Image
add a bot
IPB Image
and the timers will appear
(ignore the percentage difference/its not indicative of actual CPU power)
IPB Image
we can now see how much time things take up
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 9th November 2024 - 03:46 AM