diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2015-08-14 19:28:44 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2015-08-14 19:28:44 -0500 |
commit | d0cf41300b8b153a4c658fa5ca3469a868916bd1 (patch) | |
tree | 0f3ea77c36a8c855d6edd802f0c013c1ba6e143c /src/mem/ruby/profiler/Profiler.hh | |
parent | e63c120d0d0a603049aa460ef53bb0589aa3527f (diff) | |
download | gem5-d0cf41300b8b153a4c658fa5ca3469a868916bd1.tar.xz |
ruby: profiler: provide the number of vnets through ruby system
The aim is to ultimately do away with the static function
Network::getNumberOfVirtualNetworks().
Diffstat (limited to 'src/mem/ruby/profiler/Profiler.hh')
-rw-r--r-- | src/mem/ruby/profiler/Profiler.hh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mem/ruby/profiler/Profiler.hh b/src/mem/ruby/profiler/Profiler.hh index 146beadd6..6cfdab1d5 100644 --- a/src/mem/ruby/profiler/Profiler.hh +++ b/src/mem/ruby/profiler/Profiler.hh @@ -80,8 +80,8 @@ class Profiler void addAddressTraceSample(const RubyRequest& msg, NodeID id); // added by SS - bool getHotLines() { return m_hot_lines; } - bool getAllInstructions() { return m_all_instructions; } + bool getHotLines() const { return m_hot_lines; } + bool getAllInstructions() const { return m_all_instructions; } private: // Private copy constructor and assignment operator @@ -129,8 +129,9 @@ class Profiler Stats::Scalar m_IncompleteTimes[MachineType_NUM]; //added by SS - bool m_hot_lines; - bool m_all_instructions; + const bool m_hot_lines; + const bool m_all_instructions; + const uint32_t m_num_vnets; }; #endif // __MEM_RUBY_PROFILER_PROFILER_HH__ |