]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
Add measure tool desription to database
authorKarel Kočí <cynerd@email.cz>
Tue, 11 Aug 2015 17:43:30 +0000 (19:43 +0200)
committerKarel Kočí <cynerd@email.cz>
Wed, 12 Aug 2015 08:22:55 +0000 (10:22 +0200)
conf.py
scripts/database.py

diff --git a/conf.py b/conf.py
index 570202762aa7dcf3552d5f04f8546af89a60b488..591a0b3ea39c259e909632a8b2b20ff7c6788203 100644 (file)
--- 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 = []
index 16556a886604f569b3d9cd6a596d120711c10d60..eef118d243cc5f3bf631cc5e45ced0c20f24e549 100644 (file)
@@ -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"