| 
    PocketMine-MP 5.37.1 git-cef37e7835c666594588f957a47b27d521c6a58e
    
   | 
 
 Collaboration diagram for pocketmine\MemoryManager:Public Member Functions | |
| __construct (private Server $server) | |
| canUseChunkCache () | |
| check () | |
| dumpServerMemory (string $outputFolder, int $maxNesting, int $maxStringSize) | |
| getGlobalMemoryLimit () | |
| getViewDistance (int $distance) | |
| isLowMemory () | |
| trigger (int $memory, int $limit, bool $global=false, int $triggerCount=0) | |
| triggerGarbageCollector () | |
Static Public Member Functions | |
| static | dumpMemory (mixed $startingObject, string $outputFolder, int $maxNesting, int $maxStringSize, \Logger $logger) | 
Definition at line 43 of file MemoryManager.php.
| pocketmine\MemoryManager::__construct | ( | private Server | $server | ) | 
Definition at line 70 of file MemoryManager.php.
| pocketmine\MemoryManager::canUseChunkCache | ( | ) | 
Definition at line 129 of file MemoryManager.php.
| pocketmine\MemoryManager::check | ( | ) | 
Called every tick to update the memory manager state.
Definition at line 166 of file MemoryManager.php.
      
  | 
  static | 
Static memory dumper accessible from any thread.
Definition at line 245 of file MemoryManager.php.
| pocketmine\MemoryManager::dumpServerMemory | ( | string | $outputFolder, | 
| int | $maxNesting, | ||
| int | $maxStringSize ) | 
Dumps the server memory into the specified output folder.
Definition at line 227 of file MemoryManager.php.
References pocketmine\server().
 Here is the call graph for this function:| pocketmine\MemoryManager::getGlobalMemoryLimit | ( | ) | 
Definition at line 122 of file MemoryManager.php.
| pocketmine\MemoryManager::getViewDistance | ( | int | $distance | ) | 
Returns the allowed chunk radius based on the current memory usage.
Definition at line 136 of file MemoryManager.php.
| pocketmine\MemoryManager::isLowMemory | ( | ) | 
Definition at line 118 of file MemoryManager.php.
| pocketmine\MemoryManager::trigger | ( | int | $memory, | 
| int | $limit, | ||
| bool | $global = false, | ||
| int | $triggerCount = 0 ) | 
Triggers garbage collection and cache cleanup to try and free memory.
Definition at line 143 of file MemoryManager.php.
References pocketmine\server().
 Here is the call graph for this function:| pocketmine\MemoryManager::triggerGarbageCollector | ( | ) | 
Definition at line 205 of file MemoryManager.php.