Changeset 20313
- Timestamp:
- 06/21/07 10:57:04 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/branches/2.0/modules/vapor/vpr/IO/Stats/BandwidthIOStatsStrategy.h
r16635 r20313 48 48 #include <vpr/Util/DateTime.h> 49 49 #include <vpr/Util/Interval.h> 50 #include <vpr/Util/S tatCollector.h>50 #include <vpr/Util/SampleLimitedStatCollector.h> 51 51 52 52 #include <deque> … … 64 64 public: 65 65 BandwidthIOStatsStrategy() 66 : mReadStats(100) 67 , mWriteStats(100) 66 68 {;} 67 69 … … 121 123 122 124 public: 123 vpr::S tatCollector<vpr::Uint32, true>& readStats()125 vpr::SampleLimitedStatCollector<vpr::Uint32, true>& readStats() 124 126 { 125 127 return mReadStats; 126 128 } 127 129 128 vpr::S tatCollector<vpr::Uint32, true>& writeStats()130 vpr::SampleLimitedStatCollector<vpr::Uint32, true>& writeStats() 129 131 { 130 132 return mWriteStats; … … 132 134 133 135 private: 134 vpr::S tatCollector<vpr::Uint32, true> mReadStats;135 vpr::S tatCollector<vpr::Uint32, true> mWriteStats;136 vpr::SampleLimitedStatCollector<vpr::Uint32, true> mReadStats; 137 vpr::SampleLimitedStatCollector<vpr::Uint32, true> mWriteStats; 136 138 }; 137 139 juggler/branches/2.0/modules/vapor/vpr/vprDomain.h
r17686 r20313 74 74 typedef class SocketDatagramImplSIM SocketDatagramImpl; 75 75 typedef class SocketStreamImplSIM SocketStreamImpl; 76 typedef class IOStatsStrategyAdapter<class BaseIOStatsStrategy, class BandwidthIOStatsStrategy>SocketIOStatsStrategy;76 typedef class NullIOStatsStrategy SocketIOStatsStrategy; 77 77 }; 78 78 … … 106 106 typedef class SocketDatagramImplNSPR SocketDatagramImpl; 107 107 typedef class SocketStreamImplNSPR SocketStreamImpl; 108 109 #ifdef __SUNPRO_CC 110 class BaseIOStatsStrategy; 111 class BandwidthIOStatsStrategy; 112 class IOStatsStrategyAdapter<class T1, class T2>; 113 114 typedef IOStatsStrategyAdapter<BaseIOStatsStrategy, BandwidthIOStatsStrategy> SocketIOStatsStrategy; 115 #else 116 typedef class IOStatsStrategyAdapter<class BaseIOStatsStrategy, class BandwidthIOStatsStrategy> SocketIOStatsStrategy; 117 #endif 108 typedef class NullIOStatsStrategy SocketIOStatsStrategy; 118 109 }; 119 110 … … 148 139 typedef class SocketDatagramImplBSD SocketDatagramImpl; 149 140 typedef class SocketStreamImplBSD SocketStreamImpl; 150 typedef IOStatsStrategyAdapter<class BaseIOStatsStrategy, class BandwidthIOStatsStrategy>SocketIOStatsStrategy;141 typedef class NullIOStatsStrategy SocketIOStatsStrategy; 151 142 }; 152 143
