Lines Matching refs:experiment

30 def _WriteJSONReportToFile(experiment, results_dir, json_report):  argument
32 has_llvm = any('llvm' in l.compiler for l in experiment.labels)
34 board = experiment.labels[0].board
51 experiment, argument
56 self._experiment = experiment
57 self.l = log or logger.GetLogger(experiment.log_dir)
62 if experiment.log_level != 'verbose':
100 def _LockAllMachines(self, experiment): argument
114 experiment.labels[0].chromeos_root,
130 def _UnlockAllMachines(self, experiment): argument
142 experiment.labels[0].chromeos_root,
149 def _ClearCacheEntries(self, experiment): argument
150 for br in experiment.benchmark_runs:
164 def _Run(self, experiment): argument
166 if not experiment.locks_dir:
167 self._LockAllMachines(experiment)
169 schedv2 = Schedv2(experiment)
170 experiment.set_schedv2(schedv2)
171 if CacheConditions.FALSE in experiment.cache_conditions:
172 self._ClearCacheEntries(experiment)
173 status = ExperimentStatus(experiment)
174 experiment.Run()
178 if experiment.log_level != 'verbose':
180 while not experiment.IsComplete():
184 if experiment.log_level == 'verbose':
203 experiment.Terminate()
208 experiment.Terminate()
211 if not experiment.locks_dir:
212 self._UnlockAllMachines(experiment)
214 def _PrintTable(self, experiment): argument
215 self.l.LogOutput(TextResultsReport.FromExperiment(experiment).GetReport())
217 def _Email(self, experiment): argument
220 for benchmark_run in experiment.benchmark_runs:
224 if (not send_mail and not experiment.email_to or
229 for label in experiment.labels:
231 subject = '%s: %s' % (experiment.name, ' vs. '.join(label_names))
233 text_report = TextResultsReport.FromExperiment(experiment, True).GetReport()
235 '\nResults are stored in %s.\n' % experiment.results_directory)
237 html_report = HTMLResultsReport.FromExperiment(experiment).GetReport()
239 email_to = experiment.email_to or []
248 def _StoreResults(self, experiment): argument
251 results_directory = experiment.results_directory
256 FileUtils().WriteFile(experiment_file_path, experiment.experiment_file)
260 report = HTMLResultsReport.FromExperiment(experiment).GetReport()
263 experiment, json_args={'indent': 2})
264 _WriteJSONReportToFile(experiment, results_directory, json_report)
270 text_report = TextResultsReport.FromExperiment(experiment, True).GetReport()
272 '\nResults are stored in %s.\n' % experiment.results_directory)
277 for benchmark_run in experiment.benchmark_runs:
298 def __init__(self, experiment, json_report): argument
299 super(MockExperimentRunner, self).__init__(experiment, json_report)
301 def _Run(self, experiment): argument
303 "Would run the following experiment: '%s'." % experiment.name)
305 def _PrintTable(self, experiment): argument
308 def _Email(self, experiment): argument
311 def _StoreResults(self, experiment): argument