PocketMine-MP 5.23.3 git-976fc63567edab7a6fb6aeae739f43cf9fe57de4
Loading...
Searching...
No Matches
pocketmine\GarbageCollectorManager Class Reference
+ Collaboration diagram for pocketmine\GarbageCollectorManager:

Public Member Functions

 __construct (\Logger $logger, ?TimingsHandler $parentTimings,)
 
 getCollectionTimeTotalNs ()
 
 getThreshold ()
 
 maybeCollectCycles ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\GarbageCollectorManager::__construct ( \Logger $logger,
?TimingsHandler $parentTimings )

Definition at line 55 of file GarbageCollectorManager.php.

Member Function Documentation

◆ getCollectionTimeTotalNs()

pocketmine\GarbageCollectorManager::getCollectionTimeTotalNs ( )

Definition at line 78 of file GarbageCollectorManager.php.

◆ getThreshold()

pocketmine\GarbageCollectorManager::getThreshold ( )

Definition at line 76 of file GarbageCollectorManager.php.

◆ maybeCollectCycles()

pocketmine\GarbageCollectorManager::maybeCollectCycles ( )

Definition at line 80 of file GarbageCollectorManager.php.


The documentation for this class was generated from the following file: