SimpleNetwork.cc (9863:9483739f83ee) | SimpleNetwork.cc (9866:94dac7d7bb88) |
---|---|
1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 194 unchanged lines hidden (view full) --- 203 assert(id < m_nodes); 204 assert(m_endpoint_switches[id] != NULL); 205 return m_endpoint_switches[id]->getThrottles(); 206} 207 208void 209SimpleNetwork::regStats() 210{ | 1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 194 unchanged lines hidden (view full) --- 203 assert(id < m_nodes); 204 assert(m_endpoint_switches[id] != NULL); 205 return m_endpoint_switches[id]->getThrottles(); 206} 207 208void 209SimpleNetwork::regStats() 210{ |
211 m_msg_counts.resize(MessageSizeType_NUM); 212 m_msg_bytes.resize(MessageSizeType_NUM); 213 | |
214 for (MessageSizeType type = MessageSizeType_FIRST; 215 type < MessageSizeType_NUM; ++type) { 216 m_msg_counts[(unsigned int) type] 217 .name(name() + ".msg_count." + MessageSizeType_to_string(type)) 218 .flags(Stats::nozero) 219 ; 220 m_msg_bytes[(unsigned int) type] 221 .name(name() + ".msg_byte." + MessageSizeType_to_string(type)) --- 72 unchanged lines hidden --- | 211 for (MessageSizeType type = MessageSizeType_FIRST; 212 type < MessageSizeType_NUM; ++type) { 213 m_msg_counts[(unsigned int) type] 214 .name(name() + ".msg_count." + MessageSizeType_to_string(type)) 215 .flags(Stats::nozero) 216 ; 217 m_msg_bytes[(unsigned int) type] 218 .name(name() + ".msg_byte." + MessageSizeType_to_string(type)) --- 72 unchanged lines hidden --- |