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 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 --- |