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

./XHProfRunsFile.inc, line 96
Definition of XHProfRunsFile.

Class

XHProfRunsFile
XHProfRuns_Default is the default implementation of the iXHProfRuns interface for saving/fetching XHProf runs.

Code

public function getRuns($stats, $limit = 50, $skip = 0) {
  $files = $this
    ->scanXHProfDir($this
    ->getDir(), variable_get('site_name', ''));
  foreach ($files as $i => $file) {
    $file['date'] = strtotime($file['date']);
    $files[$i] = $file;
  }
  return $files;
}