- Adding a relaunch feature to the performance tester: you can use the relaunch if you want to measure multiple runs of your app keeping the same metrics alive. New arguments must be supplied - and the step counter will not be reset (this makes it easy to avoid endless loops)
- Having the Sketch test case relaunch itself
llvm-svn: 179548
diff --git a/lldb/tools/lldb-perf/lib/TestCase.h b/lldb/tools/lldb-perf/lib/TestCase.h
index 3d2e0e94..8955798 100644
--- a/lldb/tools/lldb-perf/lib/TestCase.h
+++ b/lldb/tools/lldb-perf/lib/TestCase.h
@@ -30,13 +30,16 @@
eStepOver,
eContinue,
eStepOut,
+ eRelaunch,
eKill
} type;
lldb::SBThread thread;
+ lldb::SBLaunchInfo launch_info;
ActionWanted () :
type (Type::eContinue),
- thread ()
+ thread (),
+ launch_info (NULL)
{
}
@@ -62,6 +65,14 @@
}
void
+ Relaunch (lldb::SBLaunchInfo l)
+ {
+ type = Type::eRelaunch;
+ thread = lldb::SBThread();
+ launch_info = l;
+ }
+
+ void
Kill ()
{
type = Type::eKill;