diff options
author | Kanishk Sugand <kanishk.sugand@arm.com> | 2014-12-23 09:31:18 -0500 |
---|---|---|
committer | Kanishk Sugand <kanishk.sugand@arm.com> | 2014-12-23 09:31:18 -0500 |
commit | 7a25b1a0e02b1587fe18439ad81591704196d519 (patch) | |
tree | 2fd66e374324e8e045201f0f15087359e89503c1 /src/mem/comm_monitor.hh | |
parent | 888975b29d920df9acdcf55db491d802e607cea6 (diff) | |
download | gem5-7a25b1a0e02b1587fe18439ad81591704196d519.tar.xz |
mem: Add stack distance statistics to the CommMonitor
This patch adds the stack distance calculator to the CommMonitor. The
stats are disabled by default.
Diffstat (limited to 'src/mem/comm_monitor.hh')
-rw-r--r-- | src/mem/comm_monitor.hh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mem/comm_monitor.hh b/src/mem/comm_monitor.hh index 69122cc60..f1c6b496d 100644 --- a/src/mem/comm_monitor.hh +++ b/src/mem/comm_monitor.hh @@ -44,6 +44,7 @@ #include "base/statistics.hh" #include "base/time.hh" #include "mem/mem_object.hh" +#include "mem/stack_dist_calc.hh" #include "params/CommMonitor.hh" #include "proto/protoio.hh" #include "sim/system.hh" @@ -268,8 +269,6 @@ class CommMonitor : public MemObject void recvRangeChange(); - void periodicTraceDump(); - /** Stats declarations, all in a struct for convenience. */ struct MonitorStats { @@ -417,6 +416,9 @@ class CommMonitor : public MemObject /** Instantiate stats */ MonitorStats stats; + /** Optional stack distance calculator */ + StackDistCalc* stackDistCalc; + /** Output stream for a potential trace. */ ProtoOutputStream* traceStream; |