PocketMine-MP 5.23.3 git-976fc63567edab7a6fb6aeae739f43cf9fe57de4
|
Public Member Functions | |
__construct (private Server $server) | |
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 () | |
Definition at line 43 of file MemoryManager.php.
pocketmine\MemoryManager::__construct | ( | private Server | $server | ) |
Definition at line 70 of file MemoryManager.php.
pocketmine\MemoryManager::check | ( | ) |
Called every tick to update the memory manager state.
Definition at line 159 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 220 of file MemoryManager.php.
References pocketmine\server().
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 129 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 136 of file MemoryManager.php.
References pocketmine\server().
pocketmine\MemoryManager::triggerGarbageCollector | ( | ) |
Definition at line 198 of file MemoryManager.php.