diff -r f69f7b67823f -r bc23f2c316fc src/python/m5/stats/sql.py --- a/src/python/m5/stats/sql.py Tue Jan 15 18:37:43 2013 +0000 +++ b/src/python/m5/stats/sql.py Tue Jan 15 18:38:42 2013 +0000 @@ -46,6 +46,7 @@ from m5.util import fatal, panic from math import isnan +import zlib # @brief Create the database used to store the stats. If it exists, we delete @@ -245,10 +246,10 @@ import array self.id = id self.dump = dump - a = array.array('f', value) - self.value = a.tostring() - a = array.array('f', total) - self.total = a.tostring() + a = array.array('d', value) + self.value = zlib.compress(a.tostring()) + a = array.array('d', total) + self.total = zlib.compress(a.tostring()) def __repr__(self): return "" % (self.id, self.dump, self.value, @@ -304,8 +305,8 @@ import array hist_elements = storage.keys() - element_array = array.array('f', hist_elements) - self.elements = element_array.tostring() + element_array = array.array('d', hist_elements) + self.elements = zlib.compress(element_array.tostring()) hist_count = storage.values() count_array = array.array('i', hist_count) @@ -450,7 +451,7 @@ temp.max = data.max temp.bucket = data.bucket_size a = array.array('f', data.vector) - temp.vector = a.tostring() + temp.vector = zlib.compress(a.tostring()) if type(data) == Histogram: temp.logs = data.logs