diff options
| author | Enrico Granata <egranata@apple.com> | 2013-04-15 19:07:38 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2013-04-15 19:07:38 +0000 |
| commit | a571e21c4edae565bf2110c4d22f152f51a35529 (patch) | |
| tree | 9112a94efd1e247fcb14b75fd9317ff68cb04098 /lldb/tools/lldb-perf/lib/TestCase.h | |
| parent | fe7a59d9c25285b70d357faaeb035bbfa9286227 (diff) | |
| download | bcm5719-llvm-a571e21c4edae565bf2110c4d22f152f51a35529.tar.gz bcm5719-llvm-a571e21c4edae565bf2110c4d22f152f51a35529.zip | |
- 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
Diffstat (limited to 'lldb/tools/lldb-perf/lib/TestCase.h')
| -rw-r--r-- | lldb/tools/lldb-perf/lib/TestCase.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lldb/tools/lldb-perf/lib/TestCase.h b/lldb/tools/lldb-perf/lib/TestCase.h index 3d2e0e94fbc..89557982e5f 100644 --- a/lldb/tools/lldb-perf/lib/TestCase.h +++ b/lldb/tools/lldb-perf/lib/TestCase.h @@ -30,13 +30,16 @@ public: 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 @@ public: } void + Relaunch (lldb::SBLaunchInfo l) + { + type = Type::eRelaunch; + thread = lldb::SBThread(); + launch_info = l; + } + + void Kill () { type = Type::eKill; |

