You are here

function perfmon_run_store in Performance monitor 8

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

Run the perfmon test and store the results.

File

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

Code

function perfmon_run_store($tests) {

  // Call private function to perform the actual test.
  $results = _perfmon_run($tests);
  \Drupal::configFactory()
    ->getEditable('perfmon.settings')
    ->set('last_run', time())
    ->save();

  // Store results and return.
  return perfmon_store_results($results);
}