From 824e5a2caab795742a816e0a0970d8bc303cd276 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 22 Mar 2013 02:38:49 +0000 Subject: 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 --- lldb/tools/lldb-perf/lib/Metric.cpp | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'lldb/tools/lldb-perf/lib/Metric.cpp') 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::GetAverage () const return GetSum()/GetCount(); } -template <> -void Metric::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::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; template class lldb_perf::Metric; -- cgit v1.2.3