base, python, sim: Add support for resoving a stat using its name
authorNikos Nikoleris <nikos.nikoleris@arm.com>
Tue, 7 Apr 2020 15:04:41 +0000 (16:04 +0100)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Wed, 29 Apr 2020 21:02:32 +0000 (21:02 +0000)
commit1afe851d1574615aafc56339d25af5488a1a4291
tree2f4b613857b3b006aa1b19faa38e541ae3946ccf
parent8cac579e5ea3b8b43ecaec4a07925cbd1813fdfa
base, python, sim: Add support for resoving a stat using its name

This CL adds resolve, a function in the Stats namespace that allows
access to a stat as specified by its name.

Change-Id: I4fa8bed394b4cb35d9c6cf5d8db062b8d6bb9ca5
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27891
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/statistics.cc
src/base/statistics.hh