Changeset 20313

Show
Ignore:
Timestamp:
06/21/07 10:57:04 (1 year ago)
Author:
aronb
Message:

Merge r20282 and r20283.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/branches/2.0/modules/vapor/vpr/IO/Stats/BandwidthIOStatsStrategy.h

    r16635 r20313  
    4848#include <vpr/Util/DateTime.h> 
    4949#include <vpr/Util/Interval.h> 
    50 #include <vpr/Util/StatCollector.h> 
     50#include <vpr/Util/SampleLimitedStatCollector.h> 
    5151 
    5252#include <deque> 
     
    6464public: 
    6565   BandwidthIOStatsStrategy() 
     66      : mReadStats(100) 
     67      , mWriteStats(100) 
    6668   {;} 
    6769 
     
    121123 
    122124public: 
    123    vpr::StatCollector<vpr::Uint32, true>& readStats() 
     125   vpr::SampleLimitedStatCollector<vpr::Uint32, true>& readStats() 
    124126   { 
    125127      return mReadStats; 
    126128   } 
    127129 
    128    vpr::StatCollector<vpr::Uint32, true>& writeStats() 
     130   vpr::SampleLimitedStatCollector<vpr::Uint32, true>& writeStats() 
    129131   { 
    130132      return mWriteStats; 
     
    132134 
    133135private: 
    134    vpr::StatCollector<vpr::Uint32, true> mReadStats; 
    135    vpr::StatCollector<vpr::Uint32, true> mWriteStats; 
     136   vpr::SampleLimitedStatCollector<vpr::Uint32, true> mReadStats; 
     137   vpr::SampleLimitedStatCollector<vpr::Uint32, true> mWriteStats; 
    136138}; 
    137139 
  • juggler/branches/2.0/modules/vapor/vpr/vprDomain.h

    r17686 r20313  
    7474      typedef class SocketDatagramImplSIM   SocketDatagramImpl; 
    7575      typedef class SocketStreamImplSIM     SocketStreamImpl; 
    76       typedef class IOStatsStrategyAdapter<class BaseIOStatsStrategy, class BandwidthIOStatsStrategy>     SocketIOStatsStrategy; 
     76      typedef class NullIOStatsStrategy     SocketIOStatsStrategy; 
    7777   }; 
    7878 
     
    106106      typedef class SocketDatagramImplNSPR   SocketDatagramImpl; 
    107107      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;  
    118109   }; 
    119110 
     
    148139      typedef class SocketDatagramImplBSD   SocketDatagramImpl; 
    149140      typedef class SocketStreamImplBSD     SocketStreamImpl; 
    150       typedef IOStatsStrategyAdapter<class BaseIOStatsStrategy, class BandwidthIOStatsStrategy>     SocketIOStatsStrategy; 
     141      typedef class NullIOStatsStrategy     SocketIOStatsStrategy; 
    151142   }; 
    152143