예제 #1
0
 public function testInternal()
 {
     $this->entry->setInternal(true);
     $this->assertTrue($this->entry->isInternal());
 }
예제 #2
0
 private function countExclusive(Entry $entry)
 {
     if ($entry->getExclusiveTime() === null) {
         $entry->setExclusiveTime($entry->getInclusiveTime());
         foreach ($entry->getCallees() as $callee) {
             $this->countExclusive($callee);
             $entry->setExclusiveTime($entry->getExclusiveTime() - $callee->getInclusiveTime() / $callee->getCalls());
         }
     }
     if ($entry->getExclusiveMemory() === null) {
         $entry->setExclusiveMemory($entry->getInclusiveMemory());
         foreach ($entry->getCallees() as $callee) {
             $this->countExclusive($callee);
             $entry->setExclusiveMemory($entry->getExclusiveMemory() - $callee->getInclusiveMemory() / $callee->getCalls());
         }
     }
 }