You are here

function drush_xhprof_get_runs in XHProf 8

Same name and namespace in other branches
  1. 6 xhprof.drush.inc \drush_xhprof_get_runs()
  2. 7 xhprof.drush.inc \drush_xhprof_get_runs()
2 calls to drush_xhprof_get_runs()
drush_xhprof_combine in ./xhprof.drush.inc
A command callback.
drush_xhprof_list in ./xhprof.drush.inc
A command callback.

File

./xhprof.drush.inc, line 153

Code

function drush_xhprof_get_runs() {
  $dir = drush_xhprof_get_dir();
  $runs = [];
  foreach (glob("{$dir}/*.xhprof") as $file) {
    $run = [];
    list($run['run_id'], $run['source']) = explode('.', basename($file));
    $runs[$run['run_id']] = $run;
  }
  return $runs;
}