Much more cleanup on the performance testing infrastructure:
authorGreg Clayton <gclayton@apple.com>
Fri, 22 Mar 2013 02:31:35 +0000 (02:31 +0000)
committerGreg Clayton <gclayton@apple.com>
Fri, 22 Mar 2013 02:31:35 +0000 (02:31 +0000)
commit880afc5728954e36d00e42d7961897814e7ae028
tree6f81faa725d1f4e99229d4ba8a64f8d73f0c0d6a
parent0a9875abfe7c7b0eefe8da92766066043c2fa05a
Much more cleanup on the performance testing infrastructure:
- Added new abtract Results class to keep CoreFoundation out of the tests. There are many subclasses for different settings:
    Results::Result::Dictionary
    Results::Result::Array
    Results::Result::Unsigned
    Results::Result::Double
    Results::Result::String
- Gauge<T> can now write themselves out via a templatized write to results function:
    template <class T>
    Results::ResultSP GetResult (const char *description, T value);

- There are four specializations of this so far:
    template <>
    Results::ResultSP GetResult (const char *description, double value);

    template <>
    Results::ResultSP GetResult (const char *description, uint64_t value);

    template <>
    Results::ResultSP GetResult (const char *description, std::string value);

    template <>
    Results::ResultSP GetResult (const char *description, MemoryStats value);
- Don't emit the virtual memory reading from the task info call as it really doesn't mean much as it includes way too much (shared cache + other stuff we don't have control over)
- Fixed other test cases to build correctly and use the new classes

llvm-svn: 177696
19 files changed:
lldb/tools/lldb-perf/common/clang/build-clang.sh
lldb/tools/lldb-perf/common/clang/lldb_perf_clang.cpp
lldb/tools/lldb-perf/common/stepping/lldb-perf-stepping.cpp
lldb/tools/lldb-perf/darwin/formatters/formatters.cpp
lldb/tools/lldb-perf/darwin/sketch/sketch.cpp
lldb/tools/lldb-perf/lib/Gauge.cpp [new file with mode: 0644]
lldb/tools/lldb-perf/lib/Gauge.h
lldb/tools/lldb-perf/lib/Measurement.h
lldb/tools/lldb-perf/lib/MemoryGauge.cpp
lldb/tools/lldb-perf/lib/MemoryGauge.h
lldb/tools/lldb-perf/lib/Metric.cpp
lldb/tools/lldb-perf/lib/Metric.h
lldb/tools/lldb-perf/lib/Results.cpp [new file with mode: 0644]
lldb/tools/lldb-perf/lib/Results.h [new file with mode: 0644]
lldb/tools/lldb-perf/lib/TestCase.cpp
lldb/tools/lldb-perf/lib/TestCase.h
lldb/tools/lldb-perf/lib/Timer.cpp
lldb/tools/lldb-perf/lib/Timer.h
lldb/tools/lldb-perf/lldbperf.xcodeproj/project.pbxproj