From 4453537eadb177bd7fd8c50e68e7b2baefc3e178 Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Wed, 14 Oct 2015 00:29:43 -0500 Subject: ruby: profiler: provide the number of vnets through ruby system The aim is to ultimately do away with the static function Network::getNumberOfVirtualNetworks(). --- src/mem/ruby/profiler/Profiler.hh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/mem/ruby/profiler/Profiler.hh') diff --git a/src/mem/ruby/profiler/Profiler.hh b/src/mem/ruby/profiler/Profiler.hh index 7e45e8aeb..5be75fb65 100644 --- a/src/mem/ruby/profiler/Profiler.hh +++ b/src/mem/ruby/profiler/Profiler.hh @@ -79,8 +79,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 @@ -128,8 +128,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__ -- cgit v1.2.3