summaryrefslogtreecommitdiffstats
path: root/lldb/tools/lldb-perf/lib/TestCase.h
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2013-03-14 19:00:42 +0000
committerEnrico Granata <egranata@apple.com>2013-03-14 19:00:42 +0000
commit86910577ccfc9da4b5d21a2d1844a4781413c80a (patch)
tree8301d26ab3bd2460c8ed65485e3ab1488a5d210b /lldb/tools/lldb-perf/lib/TestCase.h
parent928f65a8aaca0383d24cf036b757bc120eaebcf4 (diff)
downloadbcm5719-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.h10
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
OpenPOWER on IntegriCloud