#include <Sample_History.h>
Public Methods | |
ACE_Sample_History (size_t max_samples) | |
The number of samples is pre-allocated, and cannot changes once the class is initialized. More... | |
~ACE_Sample_History (void) | |
Destructor. More... | |
int | sample (ACE_UINT64 value) |
Return 0 on success, -1 if the sample could not be stored. More... | |
size_t | max_samples (void) const |
Returns the maximum number of samples. More... | |
size_t | sample_count (void) const |
Returns the current number of samples. More... | |
void | dump_samples (const ACE_TCHAR *msg, ACE_UINT32 scale_factor) const |
Prints out all the samples, using msg as a prefix for each message. More... | |
void | collect_basic_stats (ACE_Basic_Stats &) const |
Collect the summary for all the samples. More... | |
ACE_UINT64 | get_sample (size_t i) const |
Get a sample. More... | |
Private Attributes | |
size_t | max_samples_ |
The maximum number of samples. More... | |
size_t | sample_count_ |
The current number of samples. More... | |
ACE_UINT64 * | samples_ |
The samples. More... |
|
The number of samples is pre-allocated, and cannot changes once the class is initialized.
|
|
Destructor.
|
|
Collect the summary for all the samples.
|
|
Prints out all the samples, using msg as a prefix for each message.
|
|
Get a sample.
|
|
Returns the maximum number of samples.
|
|
Return 0 on success, -1 if the sample could not be stored.
|
|
Returns the current number of samples.
|
|
The maximum number of samples.
|
|
The current number of samples.
|
|
The samples.
|