Changeset 20887
- Timestamp:
- 10/30/07 15:11:37 (1 year ago)
- Files:
-
- juggler/trunk/modules/vapor/ChangeLog (modified) (1 diff)
- juggler/trunk/modules/vapor/VERSION (modified) (1 diff)
- juggler/trunk/modules/vapor/vpr/IO/Stats/BandwidthIOStatsStrategy.h (modified) (1 diff)
- juggler/trunk/modules/vapor/vpr/Util/SampleLimitedStatCollector.h (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/trunk/modules/vapor/ChangeLog
r20816 r20887 1 1 DATE AUTHOR CHANGE 2 2 ---------- -------- ----------------------------------------------------------- 3 2007-10-30 patrick Improved const correctness in the statistics collection 4 classes vpr::BandwidthIOStatsStrategy and 5 vpr::SampleLimitedStatCollector<T,bool>. 6 NEW VERSION: 2.1.8 3 7 2007-09-16 patrick Removed polymorphism from vpr::BaseThread and vpr::Thread. 4 8 NEW VERSION: 2.1.7 juggler/trunk/modules/vapor/VERSION
r20816 r20887 1 2.1.8-0 @10/30/2007 20:15:00 UTC@ 1 2 2.1.7-0 @09/16/2007 01:55:00 UTC@ 2 3 2.1.6-0 @09/16/2007 00:55:00 UTC@ juggler/trunk/modules/vapor/vpr/IO/Stats/BandwidthIOStatsStrategy.h
r20260 r20887 79 79 //@} 80 80 81 vpr::SampleLimitedStatCollector<vpr::Uint32, true>& readStats()81 const vpr::SampleLimitedStatCollector<vpr::Uint32, true>& readStats() const 82 82 { 83 83 return mReadStats; 84 84 } 85 85 86 vpr::SampleLimitedStatCollector<vpr::Uint32, true>& writeStats()86 const vpr::SampleLimitedStatCollector<vpr::Uint32, true>& writeStats() const 87 87 { 88 88 return mWriteStats; juggler/trunk/modules/vapor/vpr/Util/SampleLimitedStatCollector.h
r20261 r20887 104 104 105 105 /** Return Mean (value/second). */ 106 double getMean() ;107 double getInstAverage() ;108 double getSTA() ;106 double getMean() const; 107 double getInstAverage() const; 108 double getSTA() const; 109 109 double getMaxSTA() const 110 110 { … … 112 112 } 113 113 114 void print(std::ostream& out) ;114 void print(std::ostream& out) const; 115 115 116 116 private: … … 132 132 template <class TYPE, bool TimeBased> 133 133 void SampleLimitedStatCollector<TYPE, TimeBased>::print(std::ostream& out) 134 const 134 135 { 135 136 out << "type: " << typeid(TYPE).name() << " time based:" … … 145 146 << std::endl 146 147 << " --- data --- time --- " << std::endl; 147 148 for ( typename std::vector< std::pair<TYPE,vpr::Interval> >::iterator i = mSampleBuffer.begin(); 149 i!= mSampleBuffer.end(); 150 ++i ) 148 typedef typename std::vector< std::pair<TYPE,vpr::Interval> >::const_iterator 149 iter_type; 150 for ( iter_type i = mSampleBuffer.begin(); i != mSampleBuffer.end(); ++i ) 151 151 { 152 152 out << (*i).first << " " << (*i).second.msec() << "ms\n"; … … 202 202 203 203 template <class TYPE, bool TimeBased> 204 double SampleLimitedStatCollector<TYPE, TimeBased>::getMean() 204 double SampleLimitedStatCollector<TYPE, TimeBased>::getMean() const 205 205 { 206 206 if(0 == mCurTotal) … … 231 231 232 232 template <class TYPE, bool TimeBased> 233 double SampleLimitedStatCollector<TYPE, TimeBased>::getInstAverage() 233 double SampleLimitedStatCollector<TYPE, TimeBased>::getInstAverage() const 234 234 { 235 235 double inst_average(0.0); … … 264 264 265 265 template <class TYPE, bool TimeBased> 266 double SampleLimitedStatCollector<TYPE, TimeBased>::getSTA() 266 double SampleLimitedStatCollector<TYPE, TimeBased>::getSTA() const 267 267 { 268 268 // Compute -- STA BANDWIDTH
