Function __global->getrusage

Definitions

sources_custom/phpstub.php

  • Gets the current resource usages.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$who integer No No required parameter N/A N/A If who is 1, getrusage will be called with RUSAGE_CHILDREN

Returns

  • Map of usage data
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Gets the current resource usages.
 *
 * @param  integer $who If who is 1, getrusage will be called with RUSAGE_CHILDREN
 * @return array Map of usage data
 */

function getrusage(int $who) : array