Switch.cc (6285:ce086eca1ede) | Switch.cc (6493:1fa51760a963) |
---|---|
1 2/* 3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 155 unchanged lines hidden (view full) --- 164 Throttle* throttle_ptr = m_throttles[link]; 165 if (throttle_ptr != NULL) { 166 const Vector<Vector<int> >& message_counts = throttle_ptr->getCounters(); 167 for (int int_type=0; int_type<MessageSizeType_NUM; int_type++) { 168 MessageSizeType type = MessageSizeType(int_type); 169 int sum = message_counts[type].sum(); 170 if (sum != 0) { 171 out << " outgoing_messages_switch_" << m_switch_id << "_link_" << link << "_" << type | 1 2/* 3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 155 unchanged lines hidden (view full) --- 164 Throttle* throttle_ptr = m_throttles[link]; 165 if (throttle_ptr != NULL) { 166 const Vector<Vector<int> >& message_counts = throttle_ptr->getCounters(); 167 for (int int_type=0; int_type<MessageSizeType_NUM; int_type++) { 168 MessageSizeType type = MessageSizeType(int_type); 169 int sum = message_counts[type].sum(); 170 if (sum != 0) { 171 out << " outgoing_messages_switch_" << m_switch_id << "_link_" << link << "_" << type |
172 << ": " << sum << " " << sum * MessageSizeType_to_int(type) | 172 << ": " << sum << " " << sum * (RubySystem::getNetwork()->MessageSizeType_to_int(type)) |
173 << " " << message_counts[type] << " base_latency: " << throttle_ptr->getLatency() << endl; 174 } 175 } 176 } 177 } 178 out << endl; 179} 180 --- 26 unchanged lines hidden --- | 173 << " " << message_counts[type] << " base_latency: " << throttle_ptr->getLatency() << endl; 174 } 175 } 176 } 177 } 178 out << endl; 179} 180 --- 26 unchanged lines hidden --- |