setEndMemory() public method

Set the callback execution ending memory usage.
public setEndMemory ( float $endMemory )
$endMemory float
Beispiel #1
0
 public function test_result_can_have_total_memory_usage()
 {
     $r = new Result();
     $r->setStartMemory(2);
     $r->setEndMemory(5);
     $this->assertEquals(3, $r->getMemory());
 }
Beispiel #2
0
 /**
  * Set values after the callback has executed.
  *
  * @return void
  */
 protected function setEndValues()
 {
     $this->result->setEndTime(microtime(true));
     $this->result->setEndMemory(memory_get_usage());
 }