From: Ondrej Lichtner <olichtne(a)redhat.com>
This attribute should contain an object desribing the complete
configuration of the recipe that is relevant to the perf measurement.
This carries mostly informational value for reporting and evaluation.
In our use-case it will be used during evaluation when searching for
baselines in the database to distinguish between different measurements
generated by the same recipe, e.g. ipv4 vs ipv6.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/RecipeCommon/Perf/Measurements/BaseMeasurement.py | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/lnst/RecipeCommon/Perf/Measurements/BaseMeasurement.py
b/lnst/RecipeCommon/Perf/Measurements/BaseMeasurement.py
index f119879..287f4c8 100644
--- a/lnst/RecipeCommon/Perf/Measurements/BaseMeasurement.py
+++ b/lnst/RecipeCommon/Perf/Measurements/BaseMeasurement.py
@@ -1,6 +1,7 @@
class BaseMeasurement(object):
- def __init__(self, conf):
- self._conf = conf
+ def __init__(self, measurement_conf, recipe_conf=None):
+ self._conf = measurement_conf
+ self._recipe_conf = recipe_conf
@property
def name(self):
@@ -14,6 +15,10 @@ class BaseMeasurement(object):
def conf(self):
return self._conf
+ @property
+ def recipe_conf(self):
+ return self._recipe_conf
+
def start(self):
raise NotImplementedError()
--
2.21.0