aboutsummaryrefslogtreecommitdiff
path: root/postprocessing.py
diff options
context:
space:
mode:
Diffstat (limited to 'postprocessing.py')
-rwxr-xr-xpostprocessing.py28
1 files changed, 26 insertions, 2 deletions
diff --git a/postprocessing.py b/postprocessing.py
index d82e2bf..4995ea1 100755
--- a/postprocessing.py
+++ b/postprocessing.py
@@ -1,5 +1,28 @@
#!/usr/bin/env python
+#
+# Workload Automation v2 for LAVA
+#
+# Copyright (C) 2014, Linaro Limited.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Author: Milosz Wasilewski <milosz.wasilewski@linaro.org>
+#
+
import sqlite3
+from copy import deepcopy
from numpy import array, mean
from optparse import OptionParser
@@ -30,9 +53,10 @@ if __name__ == '__main__':
conn = sqlite3.connect(SQLITE_DB_GLOBAL_PATH + options.job_name + ".db")
modes_cursor = conn.cursor()
for mode_row in modes_cursor.execute(modes_prepares_statement):
+ metrics_local = deepcopy(metrics_common)
if 'bbench' in mode_row[0]:
- metrics_common = metrics_common + metrics_bbench
- for metric in metrics_common:
+ metrics_local = metrics_local + metrics_bbench
+ for metric in metrics_local:
params = (metric, mode_row[0])
metric_values = []
metric_cursor = conn.cursor()