Added timings for console title ticking

As stupid as this seems, this can actually cost a significant amount of tick time due to reading from disk and/or executing commands.
This commit is contained in:
Dylan K. Taylor
2017-07-04 16:37:46 +01:00
parent 9c9095060f
commit 1a6517ea4e
2 changed files with 6 additions and 0 deletions

View File

@ -2384,6 +2384,7 @@ class Server{
}
private function titleTick(){
Timings::$titleTickTimer->startTiming();
$d = Utils::getRealMemoryUsage();
$u = Utils::getMemoryUsage(true);
@ -2399,6 +2400,8 @@ class Server{
" | Load " . $this->getTickUsageAverage() . "%\x07";
$this->network->resetStatistics();
Timings::$titleTickTimer->stopTiming();
}
/**