Bobby R. Bruce has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/41754 )
Change subject: base-stats,python: Add Units to the Python Stats
......................................................................
base-stats,python: Add Units to the Python Stats
Change-Id: Ic8d3c9a5c2bb7fbe51b8672b74b0e5fb17906a5e
---
M src/python/m5/pystats/loader.py
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/python/m5/pystats/loader.py
b/src/python/m5/pystats/loader.py
index aae223d..84bc884 100644
--- a/src/python/m5/pystats/loader.py
+++ b/src/python/m5/pystats/loader.py
@@ -104,7 +104,7 @@
def __get_scaler(statistic: _m5.stats.ScalarInfo) -> Scalar:
value = statistic.value
- unit = None # TODO https://gem5.atlassian.net/browse/GEM5-850.
+ unit = statistic.unit
description = statistic.desc
# ScalarInfo uses the C++ `double`.
datatype = StorageType["f64"]
@@ -117,7 +117,7 @@
)
def __get_distribution(statistic: _m5.stats.DistInfo) -> Distribution:
- unit = None # TODO https://gem5.atlassian.net/browse/GEM5-850.
+ unit = statistic.unit
description = statistic.desc
value = statistic.values
bin_size = statistic.bucket_size
@@ -154,7 +154,7 @@
for index in range(statistic.size):
# All the values in a Vector are Scalar values
value = statistic.value[index]
- unit = None # TODO https://gem5.atlassian.net/browse/GEM5-850.
+ unit = statistic.unit
description = statistic.subdescs[index]
# ScalarInfo uses the C++ `double`.
datatype = StorageType["f64"]
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/41754
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ic8d3c9a5c2bb7fbe51b8672b74b0e5fb17906a5e
Gerrit-Change-Number: 41754
Gerrit-PatchSet: 1
Gerrit-Owner: Bobby R. Bruce <bbr...@ucdavis.edu>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s