PHP Class PhpBench\Model\Result\MemoryResult

Inheritance: implements PhpBench\Model\ResultInterface
Show file Open project: dantleech/phpbench Class Usage Examples

Public Methods

Method Description
__construct ( integer $peak, integer $real, $final )
fromArray ( array $values )
getFinal ( ) : integer Get memory usage at the end of the script.
getKey ( )
getMetrics ( )
getPeak ( ) : integer Return peak memory usage as gathered by memory_get_peak_usage.
getReal ( ) : integer Return real memory usage at the end of the script as gathered by memory_get_usage(true).

Method Details

__construct() public method

public __construct ( integer $peak, integer $real, $final )
$peak integer
$real integer

fromArray() public static method

public static fromArray ( array $values )
$values array

getFinal() public method

Get memory usage at the end of the script.
See also: http://php.net/manual/en/function.memory-get-usage.php
public getFinal ( ) : integer
return integer

getKey() public method

public getKey ( )

getMetrics() public method

public getMetrics ( )

getPeak() public method

Return peak memory usage as gathered by memory_get_peak_usage.
See also: http://php.net/manual/en/function.memory-get-peak-usage.php
public getPeak ( ) : integer
return integer

getReal() public method

Return real memory usage at the end of the script as gathered by memory_get_usage(true).
See also: http://php.net/manual/en/function.memory-get-usage.php
public getReal ( ) : integer
return integer