Lines Matching refs:profile
23 public function dump(Profile $profile) argument
25 return $this->dumpProfile($profile);
28 abstract protected function formatTemplate(Profile $profile, $prefix); argument
30 abstract protected function formatNonTemplate(Profile $profile, $prefix); argument
32 abstract protected function formatTime(Profile $profile, $percent); argument
34 private function dumpProfile(Profile $profile, $prefix = '', $sibling = false): string argument
36 if ($profile->isRoot()) {
37 $this->root = $profile->getDuration();
38 $start = $profile->getName();
40 if ($profile->isTemplate()) {
41 $start = $this->formatTemplate($profile, $prefix);
43 $start = $this->formatNonTemplate($profile, $prefix);
48 $percent = $this->root ? $profile->getDuration() / $this->root * 100 : 0;
50 if ($profile->getDuration() * 1000 < 1) {
53 $str = sprintf("%s %s\n", $start, $this->formatTime($profile, $percent));
56 $nCount = \count($profile->getProfiles());
57 foreach ($profile as $i => $p) {