You are here

function perfmon_run_tests in Performance monitor 8

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

Run the perfmon tests and return the full results.

File

./perfmon.module, line 694
Stand-alone perfmon test system.

Code

function perfmon_run_tests($testlist, $log = NULL) {

  // Allow callers, like our drush command, to decide not to log.
  if (is_null($log)) {
    $log = \Drupal::configFactory()
      ->get('perfmon.settings');
  }

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