PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
Loading...
Searching...
No Matches
pocketmine\utils\Process Class Reference
+ Collaboration diagram for pocketmine\utils\Process:

Static Public Member Functions

static execute (string $command, ?string &$stdout=null, ?string &$stderr=null)
 
static getAdvancedMemoryUsage ()
 
static getMemoryUsage ()
 
static getRealMemoryUsage ()
 
static getThreadCount ()
 
static kill (int $pid, bool $subprocesses=false)
 
static pid ()
 
static uid ()
 

Detailed Description

Definition at line 45 of file Process.php.

Member Function Documentation

◆ execute()

static pocketmine\utils\Process::execute ( string $command,
?string & $stdout = null,
?string & $stderr = null )
static
Parameters
string$commandCommand to execute
string | null$stdoutReference parameter to write stdout to
string | null$stderrReference parameter to write stderr to @phpstan-param-out string $stdout @phpstan-param-out string $stderr
Returns
int process exit code

Definition at line 163 of file Process.php.

Referenced by pocketmine\utils\Git\getRepositoryState().

+ Here is the caller graph for this function:

◆ getAdvancedMemoryUsage()

static pocketmine\utils\Process::getAdvancedMemoryUsage ( )
static
Returns
int[] @phpstan-return array{int,int,int}

Definition at line 55 of file Process.php.

References pocketmine\utils\Utils\getOS().

Referenced by pocketmine\command\defaults\StatusCommand\execute().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMemoryUsage()

static pocketmine\utils\Process::getMemoryUsage ( )
static

Definition at line 86 of file Process.php.

◆ getRealMemoryUsage()

static pocketmine\utils\Process::getRealMemoryUsage ( )
static
Returns
int[]

Definition at line 93 of file Process.php.

◆ getThreadCount()

static pocketmine\utils\Process::getThreadCount ( )
static

Definition at line 114 of file Process.php.

◆ kill()

static pocketmine\utils\Process::kill ( int $pid,
bool $subprocesses = false )
static
Parameters
bool$subprocesses
Deprecated

Definition at line 131 of file Process.php.

◆ pid()

static pocketmine\utils\Process::pid ( )
static

Definition at line 187 of file Process.php.

◆ uid()

static pocketmine\utils\Process::uid ( )
static

Definition at line 195 of file Process.php.


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