Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef ACE_BASIC_STATS_H
00014 #define ACE_BASIC_STATS_H
00015 #include "ace/pre.h"
00016
00017 #include "ace/config-all.h"
00018 #include "ace/Basic_Types.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif
00023
00024 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00025
00026
00027
00028
00029
00030
00031
00032 class ACE_Export ACE_Basic_Stats
00033 {
00034 public:
00035
00036
00037
00038
00039
00040 ACE_Basic_Stats (void);
00041
00042
00043 ACE_UINT32 samples_count (void) const;
00044
00045
00046 void sample (ACE_UINT64 value);
00047
00048
00049 void accumulate (const ACE_Basic_Stats &rhs);
00050
00051
00052
00053
00054
00055
00056
00057
00058 void dump_results (const ACE_TCHAR *msg,
00059 ACE_UINT32 scale_factor) const;
00060
00061
00062 ACE_UINT32 samples_count_;
00063
00064
00065 ACE_UINT64 min_;
00066
00067
00068 ACE_UINT32 min_at_;
00069
00070
00071 ACE_UINT64 max_;
00072
00073
00074 ACE_UINT32 max_at_;
00075
00076
00077 ACE_UINT64 sum_;
00078 };
00079
00080 ACE_END_VERSIONED_NAMESPACE_DECL
00081
00082 #if defined (__ACE_INLINE__)
00083 #include "ace/Basic_Stats.inl"
00084 #endif
00085
00086 #include "ace/post.h"
00087 #endif