mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
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:
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user