Constructors
Declared in <balb_performancemonitor.h>
Create an instance of this class to collect performance statistics on demand (via the collect method). Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
explicit
PerformanceMonitor(bslma::Allocator* basicAllocator = 0);
» more...
Create an instance of this class that uses the specified scheduler to automatically collect performance statistics every specified interval (specified in seconds). Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. A non-positive interval value indicates that performance statistics should not be automatically collected--in this case the user is responsible for manually calling the collect function.
PerformanceMonitor(
bdlmt::TimerEventScheduler* scheduler,
double interval,
bslma::Allocator* basicAllocator = 0);
» more...