You are here

function perfmon_run_tests in Performance monitor 7

Same name and namespace in other branches
  1. 8 perfmon.module \perfmon_run_tests()

Run the perfmon tests and return the full results.

File

./perfmon.module, line 171
TODO: Enter file description here.

Code

function perfmon_run_tests($testlist, $log = NULL) {
  module_load_include('inc', 'perfmon');

  // Allow callers, like our drush command, to decide not to log.
  if (is_null($log)) {
    $log = variable_get('perfmon_log', TRUE);
  }

  // Call our private function to perform the actual run.
  $results = _perfmon_run_tests($testlist, $log);
  return $results;
}