You are here

function drush_xhprof_get_runs in XHProf 7

Same name and namespace in other branches
  1. 8 xhprof.drush.inc \drush_xhprof_get_runs()
  2. 6 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 148

Code

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