diff options
author | Joel Hestness <hestness@cs.utexas.edu> | 2011-02-06 22:14:19 -0800 |
---|---|---|
committer | Joel Hestness <hestness@cs.utexas.edu> | 2011-02-06 22:14:19 -0800 |
commit | ebe563e531d5224ee7aad26767c08e8eba11e4e6 (patch) | |
tree | 932dcdabed9b2a99e98f17e21a63ae0d769b73c5 /src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc | |
parent | 5c2f4937b33c5ed4684ff0eda03d427adb270841 (diff) | |
download | gem5-ebe563e531d5224ee7aad26767c08e8eba11e4e6.tar.xz |
garnet: Split network power in ruby.stats
Split out dynamic and static power numbers for printing to ruby.stats
Diffstat (limited to 'src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc')
-rw-r--r-- | src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc b/src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc index d11054abf..dbfabc8f1 100644 --- a/src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc +++ b/src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc @@ -319,16 +319,28 @@ GarnetNetwork_d::printStats(ostream& out) const out << "-------------" << endl; double m_total_link_power = 0.0; + double m_dynamic_link_power = 0.0; + double m_static_link_power = 0.0; double m_total_router_power = 0.0; + double m_dynamic_router_power = 0.0; + double m_static_router_power = 0.0; for (int i = 0; i < m_link_ptr_vector.size(); i++) { m_total_link_power += m_link_ptr_vector[i]->calculate_power(); + m_dynamic_link_power += m_link_ptr_vector[i]->get_dynamic_power(); + m_static_link_power += m_link_ptr_vector[i]->get_static_power(); } for (int i = 0; i < m_router_ptr_vector.size(); i++) { m_total_router_power += m_router_ptr_vector[i]->calculate_power(); + m_dynamic_router_power += m_router_ptr_vector[i]->get_dynamic_power(); + m_static_router_power += m_router_ptr_vector[i]->get_static_power(); } + out << "Link Dynamic Power = " << m_dynamic_link_power << " W" << endl; + out << "Link Static Power = " << m_static_link_power << " W" << endl; out << "Total Link Power = " << m_total_link_power << " W " << endl; + out << "Router Dynamic Power = " << m_dynamic_router_power << " W" << endl; + out << "Router Static Power = " << m_static_router_power << " W" << endl; out << "Total Router Power = " << m_total_router_power << " W " <<endl; out << "-------------" << endl; m_topology_ptr->printStats(out); |