summaryrefslogtreecommitdiff
path: root/src/base/stats/info.hh
diff options
context:
space:
mode:
authorDavid Guillen Fandos <david.guillen@arm.com>2016-07-21 17:19:15 +0100
committerDavid Guillen Fandos <david.guillen@arm.com>2016-07-21 17:19:15 +0100
commitd25b58036a040d8ac733b824e2865e1f5fe43e00 (patch)
treeb8b2cd01c429e9c89555f738c14f975dbcc52313 /src/base/stats/info.hh
parent0020662459fdd9efcfe9864ef12160515434ccdb (diff)
downloadgem5-d25b58036a040d8ac733b824e2865e1f5fe43e00.tar.xz
base: Add total() to Vector2D stat
This patch adds a total() function to the Vector2D stat type. Similar to other stats such as Scalar or Vector it is useful to be able to read the total for a given stat.
Diffstat (limited to 'src/base/stats/info.hh')
-rw-r--r--src/base/stats/info.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base/stats/info.hh b/src/base/stats/info.hh
index b2ba41485..6ce7376a4 100644
--- a/src/base/stats/info.hh
+++ b/src/base/stats/info.hh
@@ -229,6 +229,8 @@ class Vector2dInfo : public Info
mutable VCounter cvec;
void enable();
+
+ virtual Result total() const = 0;
};
class FormulaInfo : public VectorInfo