public function FileStorage::getRuns in XHProf 8
Returns a list of stored runs.
@todo Add paging.
Return value
array The array of metadata for each run.
Overrides StorageInterface::getRuns
File
- src/
XHProfLib/ Storage/ FileStorage.php, line 72
Class
- FileStorage
- Provides file storage backend for xhprof runs.
Namespace
Drupal\xhprof\XHProfLib\StorageCode
public function getRuns($namespace = NULL) {
$files = $this
->scanXHProfDir($this->dir, $namespace);
$files = array_map(function ($f) {
$f['date'] = strtotime($f['date']);
return $f;
}, $files);
return $files;
}