aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-08-11 19:43:30 +0200
committerKarel Kočí <cynerd@email.cz>2015-08-12 10:22:55 +0200
commit030dc22bc6c28faac3fadcd4a7df93a2a4147535 (patch)
tree2ab918648a0cb4e89dee27fae933556e716c1884
parent019a117cad97403710fda1d944288a076d9ccde0 (diff)
downloadlinux-conf-perf-030dc22bc6c28faac3fadcd4a7df93a2a4147535.tar.gz
linux-conf-perf-030dc22bc6c28faac3fadcd4a7df93a2a4147535.tar.bz2
linux-conf-perf-030dc22bc6c28faac3fadcd4a7df93a2a4147535.zip
Add measure tool desription to database
-rw-r--r--conf.py4
-rw-r--r--scripts/database.py6
2 files changed, 7 insertions, 3 deletions
diff --git a/conf.py b/conf.py
index 5702027..591a0b3 100644
--- a/conf.py
+++ b/conf.py
@@ -31,6 +31,10 @@ boot_command = ['./boot_script']
# Command to parse double value from boot output
parse_command = ['./parse_script']
+# measurement_identifier
+# Identifier of measurement can consist of measure tool name and version
+measure_identifier = 'cyclictest-v0.92'
+
# picosat_args
# Additional arguments passed to PicoSAT.
picosat_args = []
diff --git a/scripts/database.py b/scripts/database.py
index 16556a8..eef118d 100644
--- a/scripts/database.py
+++ b/scripts/database.py
@@ -102,14 +102,14 @@ class database:
def add_measure(self, mfile, conf_id, value = None):
"Add measurement."
ps = self.db.prepare("""INSERT INTO measure
- (conf, mfile, value, mtime, toolgit, linuxgit)
+ (conf, mfile, value, mtime, toolgit, linuxgit, measurement)
VALUES
- ($1, $2, $3, $4, $5, $6);
+ ($1, $2, $3, $4, $5, $6, $7);
""")
gt = self.check_toolsgit()
lgt = self.check_linuxgit()
tm = datetime.datetime.now()
- ps(conf_id, mfile, value, tm, gt, lgt)
+ ps(conf_id, mfile, value, tm, gt, lgt, conf.measure_identifier)
def update_measure(self, measure_id, value):
"Update measured value"