PHP function getrusage()

Availability in PHP 4.0

Gets the current resource usages

Parameters

Parameter Data type Default value Note
$who int null If who is 1, getrusage will be called with RUSAGE_CHILDREN.

Return values

array

an associative array containing the data returned from the system call. All entries are accessible by using their documented field names.

Other resources

Official getrusage documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.