SimpleNetwork.cc (11430:bd1c6789c33f) SimpleNetwork.cc (11523:81332eb10367)
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;

--- 118 unchanged lines hidden (view full) ---

127 m_switches[src]->addOutPort(queues, routing_table_entry,
128 simple_link->m_latency,
129 simple_link->m_bw_multiplier);
130}
131
132void
133SimpleNetwork::regStats()
134{
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;

--- 118 unchanged lines hidden (view full) ---

127 m_switches[src]->addOutPort(queues, routing_table_entry,
128 simple_link->m_latency,
129 simple_link->m_bw_multiplier);
130}
131
132void
133SimpleNetwork::regStats()
134{
135 Network::regStats();
136
135 for (MessageSizeType type = MessageSizeType_FIRST;
136 type < MessageSizeType_NUM; ++type) {
137 m_msg_counts[(unsigned int) type]
138 .name(name() + ".msg_count." + MessageSizeType_to_string(type))
139 .flags(Stats::nozero)
140 ;
141 m_msg_bytes[(unsigned int) type]
142 .name(name() + ".msg_byte." + MessageSizeType_to_string(type))

--- 66 unchanged lines hidden ---
137 for (MessageSizeType type = MessageSizeType_FIRST;
138 type < MessageSizeType_NUM; ++type) {
139 m_msg_counts[(unsigned int) type]
140 .name(name() + ".msg_count." + MessageSizeType_to_string(type))
141 .flags(Stats::nozero)
142 ;
143 m_msg_bytes[(unsigned int) type]
144 .name(name() + ".msg_byte." + MessageSizeType_to_string(type))

--- 66 unchanged lines hidden ---