PHP Class PhpBench\Model\Result\MemoryResult

Inheritance: implements PhpBench\Model\ResultInterface
Afficher le fichier Open project: dantleech/phpbench Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

fromArray() public static méthode

public static fromArray ( array $values )
$values array

getFinal() public méthode

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

getKey() public méthode

public getKey ( )

getMetrics() public méthode

public getMetrics ( )

getPeak() public méthode

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
Résultat integer

getReal() public méthode

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
Résultat integer