Throttle.hh (9863:9483739f83ee) Throttle.hh (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;

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

99 NodeID m_node;
100 int m_link_bandwidth_multiplier;
101 Cycles m_link_latency;
102 int m_wakeups_wo_switch;
103 int m_endpoint_bandwidth;
104
105 // Statistical variables
106 Stats::Scalar m_link_utilization;
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;

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

99 NodeID m_node;
100 int m_link_bandwidth_multiplier;
101 Cycles m_link_latency;
102 int m_wakeups_wo_switch;
103 int m_endpoint_bandwidth;
104
105 // Statistical variables
106 Stats::Scalar m_link_utilization;
107 std::vector<Stats::Vector> m_msg_counts;
108 std::vector<Stats::Formula> m_msg_bytes;
107 Stats::Vector m_msg_counts[MessageSizeType_NUM];
108 Stats::Formula m_msg_bytes[MessageSizeType_NUM];
109
110 double m_link_utilization_proxy;
111};
112
113inline std::ostream&
114operator<<(std::ostream& out, const Throttle& obj)
115{
116 obj.print(out);
117 out << std::flush;
118 return out;
119}
120
121#endif // __MEM_RUBY_NETWORK_SIMPLE_THROTTLE_HH__
109
110 double m_link_utilization_proxy;
111};
112
113inline std::ostream&
114operator<<(std::ostream& out, const Throttle& obj)
115{
116 obj.print(out);
117 out << std::flush;
118 return out;
119}
120
121#endif // __MEM_RUBY_NETWORK_SIMPLE_THROTTLE_HH__