You are here

public function XHProfRunsFile::getRuns in XHProf 6

Same name in this branch
  1. 6 XHProfRunsFile.inc \XHProfRunsFile::getRuns()
  2. 6 XHProfLib/XHProfRuns.php \XHProfRunsFile::getRuns()
Same name and namespace in other branches
  1. 7 XHProfRunsFile.inc \XHProfRunsFile::getRuns()
  2. 7 XHProfLib/XHProfRuns.php \XHProfRunsFile::getRuns()

File

XHProfLib/XHProfRuns.php, line 36

Class

XHProfRunsFile

Code

public function getRuns($namespace = NULL) {
  xdebug_break();
  $files = $this
    ->scanXHProfDir($this->dir, $namespace);
  $files = array_map(function ($f) {
    $f['date'] = strtotime($f['date']);
    return $f;
  }, $files);
  return $files;
}