mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 08:56:15 +00:00
Start using webmozart/pathutil for joining paths (#4287)
This commit is contained in:
@ -24,7 +24,7 @@ declare(strict_types=1);
|
||||
namespace pocketmine\scheduler;
|
||||
|
||||
use pocketmine\MemoryManager;
|
||||
use const DIRECTORY_SEPARATOR;
|
||||
use Webmozart\PathUtil\Path;
|
||||
|
||||
/**
|
||||
* Task used to dump memory from AsyncWorkers
|
||||
@ -46,7 +46,7 @@ class DumpWorkerMemoryTask extends AsyncTask{
|
||||
public function onRun() : void{
|
||||
MemoryManager::dumpMemory(
|
||||
$this->worker,
|
||||
$this->outputFolder . DIRECTORY_SEPARATOR . "AsyncWorker#" . $this->worker->getAsyncWorkerId(),
|
||||
Path::join($this->outputFolder, "AsyncWorker#" . $this->worker->getAsyncWorkerId()),
|
||||
$this->maxNesting,
|
||||
$this->maxStringSize,
|
||||
new \PrefixedLogger($this->worker->getLogger(), "Memory Dump")
|
||||
|
Reference in New Issue
Block a user