[Lldb-commits] [lldb] r177343 - Add a comment about how to add a target for a test case.
jingham at apple.com
Mon Mar 18 16:08:30 PDT 2013
Date: Mon Mar 18 18:08:30 2013
New Revision: 177343
Add a comment about how to add a target for a test case.
--- lldb/trunk/tools/lldb-perf/README (original)
+++ lldb/trunk/tools/lldb-perf/README Mon Mar 18 18:08:30 2013
@@ -9,6 +9,8 @@ Its main concepts are:
- Measurements: a measurement is the thing that stores an action, a gauge and a metric. essentially, you define measurements as in âtake the time to run this functionâ, âtake the memory to run this block of codeâ, and then after you invoke it, your stats will be automagically there
- Tests: a test is a sequence of steps and measurements
+Tests cases should be added as targets to the lldbperf.xcodeproj project. It is probably easiest to duplicate one of the existing targets.
In order to write a test based on lldb-perf, you need to subclass lldb::perf::TestCase, as in:
using namespace lldb::perf;
More information about the lldb-commits