PocketMine-MP 5.27.1 git-9af3cde03fabbe4129c79e46dc87ffa0fff446e6
|
Public Member Functions | |
__construct (\Logger $logger, ?TimingsHandler $parentTimings,) | |
getCollectionTimeTotalNs () | |
getThreshold () | |
maybeCollectCycles () | |
Allows threads to manually trigger the cyclic garbage collector using a threshold like PHP's own garbage collector, but triggered at a time that suits the thread instead of in random code pathways.
The GC trigger behaviour in this class was adapted from Zend/zend_gc.c as of PHP 8.3.14.
Definition at line 42 of file GarbageCollectorManager.php.
pocketmine\GarbageCollectorManager::__construct | ( | \Logger | $logger, |
?TimingsHandler | $parentTimings ) |
Definition at line 57 of file GarbageCollectorManager.php.
pocketmine\GarbageCollectorManager::getCollectionTimeTotalNs | ( | ) |
Definition at line 80 of file GarbageCollectorManager.php.
pocketmine\GarbageCollectorManager::getThreshold | ( | ) |
Definition at line 78 of file GarbageCollectorManager.php.
pocketmine\GarbageCollectorManager::maybeCollectCycles | ( | ) |
Definition at line 82 of file GarbageCollectorManager.php.