public function XHProfRunsFile::getRuns in XHProf 7
Same name in this branch
- 7 XHProfRunsFile.inc \XHProfRunsFile::getRuns()
- 7 XHProfLib/XHProfRuns.php \XHProfRunsFile::getRuns()
Same name and namespace in other branches
- 6 XHProfRunsFile.inc \XHProfRunsFile::getRuns()
- 6 XHProfLib/XHProfRuns.php \XHProfRunsFile::getRuns()
File
- ./
XHProfRunsFile.inc, line 102 - 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(), str_replace(array(
'.',
'/',
), '-', variable_get('site_name', '')));
foreach ($files as $i => $file) {
$file['date'] = strtotime($file['date']);
$files[$i] = $file;
}
return $files;
}