PocketMine-MP 5.23.3 git-976fc63567edab7a6fb6aeae739f43cf9fe57de4
|
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 41 of file GarbageCollectorManager.php.
pocketmine\GarbageCollectorManager::__construct | ( | \Logger | $logger, |
?TimingsHandler | $parentTimings ) |
Definition at line 55 of file GarbageCollectorManager.php.
pocketmine\GarbageCollectorManager::getCollectionTimeTotalNs | ( | ) |
Definition at line 78 of file GarbageCollectorManager.php.
pocketmine\GarbageCollectorManager::getThreshold | ( | ) |
Definition at line 76 of file GarbageCollectorManager.php.
pocketmine\GarbageCollectorManager::maybeCollectCycles | ( | ) |
Definition at line 80 of file GarbageCollectorManager.php.