blob: fa12d93446c6a48c3f8a5cc24d2f0c5352d0e221 [file] [log] [blame]
#!/usr/bin/python
# Copyright 2011 Google Inc. All Rights Reserved.
class Benchmark(object):
"""Class representing a benchmark to be run.
Contains details of the autotest, arguments to pass to the autotest,
iterations to run the autotest and so on. Note that the benchmark name
can be different to the autotest name. For example, you may want to have
two different benchmarks which run the same autotest with different
arguments.
"""
def __init__(self, name, autotest_name, autotest_args, iterations,
outlier_range, profile_counters, profile_type):
self.name = name
self.autotest_name = autotest_name
self.autotest_args = autotest_args
self.iterations = iterations
self.outlier_range = outlier_range
self.profile_counters = profile_counters
self.profile_type = profile_type