diff options
-rw-r--r-- | lldb/test/benchmarks/startup/TestStartupDelays.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/test/benchmarks/startup/TestStartupDelays.py b/lldb/test/benchmarks/startup/TestStartupDelays.py index 1a15a917cdd..f770b31dfa3 100644 --- a/lldb/test/benchmarks/startup/TestStartupDelays.py +++ b/lldb/test/benchmarks/startup/TestStartupDelays.py @@ -15,6 +15,8 @@ class StartupDelaysBench(BenchBase): # Create self.stopwatch2 for measuring "set first breakpoint". # The default self.stopwatch is for "create fresh target". self.stopwatch2 = Stopwatch() + # Create self.stopwatch3 for measuring "run to breakpoint". + self.stopwatch3 = Stopwatch() if lldb.bmExecutable: self.exe = lldb.bmExecutable else: @@ -35,6 +37,7 @@ class StartupDelaysBench(BenchBase): self.run_startup_delays_bench(self.exe, self.break_spec, self.count) print "lldb startup delay (create fresh target) benchmark:", self.stopwatch print "lldb startup delay (set first breakpoint) benchmark:", self.stopwatch2 + print "lldb startup delay (run to breakpoint) benchmark:", self.stopwatch3 def run_startup_delays_bench(self, exe, break_spec, count): # Set self.child_prompt, which is "(lldb) ". @@ -63,6 +66,11 @@ class StartupDelaysBench(BenchBase): child.sendline('breakpoint set %s' % break_spec) child.expect_exact(prompt) + with self.stopwatch3: + # Run to the breakpoint just set. + child.sendline('run') + child.expect_exact(prompt) + child.sendline('quit') try: self.child.expect(pexpect.EOF) |