Timings: rename core timers to remove 'timer' from the names

this makes them shorter and more consistent.
This commit is contained in:
Dylan K. Taylor
2020-12-23 17:52:25 +00:00
parent 1d7b65e0c2
commit bcc3e87730
14 changed files with 160 additions and 160 deletions

View File

@ -228,7 +228,7 @@ class MemoryManager{
* Called every tick to update the memory manager state.
*/
public function check() : void{
Timings::$memoryManagerTimer->startTiming();
Timings::$memoryManager->startTiming();
if(($this->memoryLimit > 0 or $this->globalMemoryLimit > 0) and ++$this->checkTicker >= $this->checkRate){
$this->checkTicker = 0;
@ -261,11 +261,11 @@ class MemoryManager{
$this->triggerGarbageCollector();
}
Timings::$memoryManagerTimer->stopTiming();
Timings::$memoryManager->stopTiming();
}
public function triggerGarbageCollector() : int{
Timings::$garbageCollectorTimer->startTiming();
Timings::$garbageCollector->startTiming();
if($this->garbageCollectionAsync){
$pool = $this->server->getAsyncPool();
@ -280,7 +280,7 @@ class MemoryManager{
$cycles = gc_collect_cycles();
gc_mem_caches();
Timings::$garbageCollectorTimer->stopTiming();
Timings::$garbageCollector->stopTiming();
return $cycles;
}