diff options
Diffstat (limited to 'lldb/tools/lldb-perf/lib/Metric.h')
-rw-r--r-- | lldb/tools/lldb-perf/lib/Metric.h | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/lldb/tools/lldb-perf/lib/Metric.h b/lldb/tools/lldb-perf/lib/Metric.h index 981836c93d8..a3066c9c235 100644 --- a/lldb/tools/lldb-perf/lib/Metric.h +++ b/lldb/tools/lldb-perf/lib/Metric.h @@ -15,9 +15,10 @@ #include "CFCMutableArray.h" -namespace lldb_perf -{ +namespace lldb_perf { + class MemoryStats; + class WriteToPList { public: @@ -29,28 +30,35 @@ public: }; template <class ValueType> -class Metric : public WriteToPList { +class Metric : public WriteToPList +{ public: Metric (); Metric (const char*, const char* = NULL); void - append (ValueType v); - - size_t - count (); + Append (ValueType v); ValueType - sum (); + GetAverage () const; + + size_t + GetCount () const; ValueType - average (); + GetSum () const; const char* - name (); - + GetName () + { + return m_name.c_str(); + } + const char* - description (); + GetDescription () + { + return m_description.c_str(); + } virtual void Write (CFCMutableArray& parent) |