![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include "shared.h"#include "timing.h"#include "ai.h"#include "city.h"#include "game.h"#include "map.h"#include "nation.h"#include "unit.h"#include "notify.h"#include "advdata.h"#include "srv_log.h"
Include dependency graph for srv_log.cpp:Go to the source code of this file.
Macros | |
| #define | AILOG_OUT(text, which) |
Functions | |
| QString | city_log_prefix (const city *pcity) |
| Log a city, it will appear like this Polish Romenna(5,35) [s1 d106 u11 g1]. More... | |
| QString | unit_log_prefix (const unit *punit) |
| Log a unit, it will appear like this Polish Archers[139] (5,35)->(0,0){0,0} where [] is unit id, ()->() are coordinates present and goto, and {,} contains bodyguard and ferryboat ids. More... | |
| void | timing_log_real (enum ai_timer timer, enum ai_timer_activity activity) |
| Measure the time between the calls. More... | |
| void | timing_results_real () |
| Print results. More... | |
| void | timing_log_init () |
| Initialize AI timing system. More... | |
| void | timing_log_free () |
| Free AI timing system resources. More... | |
Variables | |
| static civtimer * | aitimer [AIT_LAST][2] |
| static int | recursion [AIT_LAST] |
| #define AILOG_OUT | ( | text, | |
| which | |||
| ) |
| QString city_log_prefix | ( | const city * | pcity | ) |
Log a city, it will appear like this Polish Romenna(5,35) [s1 d106 u11 g1].
Definition at line 43 of file srv_log.cpp.
| void timing_log_free | ( | ) |
Free AI timing system resources.
Definition at line 177 of file srv_log.cpp.
Referenced by server_quit().
| void timing_log_init | ( | ) |
| void timing_log_real | ( | enum ai_timer | timer, |
| enum ai_timer_activity | activity | ||
| ) |
Measure the time between the calls.
Used to see where in the AI too much CPU is being used.
Definition at line 86 of file srv_log.cpp.
| void timing_results_real | ( | ) |
Print results.
Definition at line 114 of file srv_log.cpp.
| QString unit_log_prefix | ( | const unit * | punit | ) |
Log a unit, it will appear like this Polish Archers[139] (5,35)->(0,0){0,0} where [] is unit id, ()->() are coordinates present and goto, and {,} contains bodyguard and ferryboat ids.
Definition at line 61 of file srv_log.cpp.
Definition at line 34 of file srv_log.cpp.
Referenced by timing_log_free(), timing_log_init(), and timing_log_real().
|
static |
Definition at line 35 of file srv_log.cpp.
Referenced by auto_settler_findwork(), auto_settler_setup_work(), calculate_overview_dimensions(), download_modpack(), package_city(), timing_log_init(), and timing_log_real().