diff options
| author | Greg Clayton <gclayton@apple.com> | 2013-03-22 02:38:49 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2013-03-22 02:38:49 +0000 |
| commit | 824e5a2caab795742a816e0a0970d8bc303cd276 (patch) | |
| tree | efb1b860fbc9ca5431c6d4597535ada120e8d47d /lldb/tools/lldb-perf/lib/Metric.cpp | |
| parent | 880afc5728954e36d00e42d7961897814e7ae028 (diff) | |
| download | bcm5719-llvm-824e5a2caab795742a816e0a0970d8bc303cd276.tar.gz bcm5719-llvm-824e5a2caab795742a816e0a0970d8bc303cd276.zip | |
More cleanup to remove the CoreFoundation classes out of mainstream code (CFCMutableDictionary, CFCMutableArray, CFCString, etc). Now it is only used in the Results.cpp file for Apple builds only.
llvm-svn: 177697
Diffstat (limited to 'lldb/tools/lldb-perf/lib/Metric.cpp')
| -rw-r--r-- | lldb/tools/lldb-perf/lib/Metric.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/lldb/tools/lldb-perf/lib/Metric.cpp b/lldb/tools/lldb-perf/lib/Metric.cpp index bf8120f2b89..8bb306bb9ab 100644 --- a/lldb/tools/lldb-perf/lib/Metric.cpp +++ b/lldb/tools/lldb-perf/lib/Metric.cpp @@ -8,10 +8,6 @@ //===----------------------------------------------------------------------===// #include "Metric.h" - -#include "CFCMutableArray.h" -#include "CFCMutableDictionary.h" -#include "CFCString.h" #include "MemoryGauge.h" using namespace lldb_perf; @@ -60,34 +56,5 @@ Metric<T>::GetAverage () const return GetSum()/GetCount(); } -template <> -void Metric<double>::WriteImpl (CFCMutableDictionary& parent_dict, const char *name, const char *description, double value) -{ - assert(name && name[0]); - CFCMutableDictionary dict; - if (description && description[0]) - dict.AddValueCString(CFCString("description").get(),description, true); - dict.AddValueDouble(CFCString("value").get(),value, true); - parent_dict.AddValue(CFCString(name).get(), dict.get(), true); -} - -template <> -void Metric<MemoryStats>::WriteImpl (CFCMutableDictionary& parent_dict, const char *name, const char *description, MemoryStats value) -{ - CFCMutableDictionary dict; - if (description && description[0]) - dict.AddValueCString(CFCString("description").get(),description, true); - CFCMutableDictionary value_dict; - // don't write out the "virtual size", it doesn't mean anything useful as it includes - // all of the shared cache and many other things that make it way too big to be useful - //value_dict.AddValueUInt64(CFCString("virtual").get(), value.GetVirtualSize(), true); - value_dict.AddValueUInt64(CFCString("resident").get(), value.GetResidentSize(), true); - value_dict.AddValueUInt64(CFCString("max_resident").get(), value.GetMaxResidentSize(), true); - - dict.AddValue(CFCString("value").get(),value_dict.get(), true); - - parent_dict.AddValue(CFCString(name).get(), dict.get(), true); -} - template class lldb_perf::Metric<double>; template class lldb_perf::Metric<MemoryStats>; |

