diff options
author | Enrico Granata <egranata@apple.com> | 2013-03-14 19:00:42 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2013-03-14 19:00:42 +0000 |
commit | 86910577ccfc9da4b5d21a2d1844a4781413c80a (patch) | |
tree | 8301d26ab3bd2460c8ed65485e3ab1488a5d210b /lldb/tools/lldb-perf/lib/TestCase.h | |
parent | 928f65a8aaca0383d24cf036b757bc120eaebcf4 (diff) | |
download | bcm5719-llvm-86910577ccfc9da4b5d21a2d1844a4781413c80a.tar.gz bcm5719-llvm-86910577ccfc9da4b5d21a2d1844a4781413c80a.zip |
<rdar://problem/13228487>
A test case for the performance of some LLDB formatters
Changes and improvements to the testing infrastructure itself
llvm-svn: 177100
Diffstat (limited to 'lldb/tools/lldb-perf/lib/TestCase.h')
-rw-r--r-- | lldb/tools/lldb-perf/lib/TestCase.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lldb/tools/lldb-perf/lib/TestCase.h b/lldb/tools/lldb-perf/lib/TestCase.h index f2d67de6662..c4d449a330a 100644 --- a/lldb/tools/lldb-perf/lib/TestCase.h +++ b/lldb/tools/lldb-perf/lib/TestCase.h @@ -59,9 +59,15 @@ public: Results () = 0; template <typename G,typename A> - Measurement<G,A> CreateMeasurement (A a, const char* name = NULL) + Measurement<G,A> CreateMeasurement (A a, const char* name = NULL, const char* description = NULL) { - return Measurement<G,A> (a,name); + return Measurement<G,A> (a,name, description); + } + + template <typename A> + TimeMeasurement<A> CreateTimeMeasurement (A a, const char* name = NULL, const char* description = NULL) + { + return TimeMeasurement<A> (a,name, description); } static void |