You are here

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\Storage

Code

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;
}