class WriterThreadPerformance2(PerformanceWriterThread): TEST_FILE = debugger_unittest._get_debugger_test_file('_performance_1.py') BENCHMARK_NAME = 'method_calls_without_breakpoint' def run(self): self.start_socket() self.write_make_initial_run() self.finished_ok = True
class WriterThreadPerformance5(PerformanceWriterThread): TEST_FILE = debugger_unittest._get_debugger_test_file('_performance_2.py') BENCHMARK_NAME = 'global_scope_1_with_breakpoint' def run(self): self.start_socket() self.write_add_breakpoint(23, None) self.write_make_initial_run() self.finished_ok = True
class WriterThreadPerformance3(PerformanceWriterThread): TEST_FILE = debugger_unittest._get_debugger_test_file('_performance_1.py') BENCHMARK_NAME = 'method_calls_with_step_over' def run(self): self.start_socket() self.write_add_breakpoint(26, None) self.write_make_initial_run() thread_id, frame_id, line = self.wait_for_breakpoint_hit('111', True) self.write_step_over(thread_id) thread_id, frame_id, line = self.wait_for_breakpoint_hit('108', True) self.write_run_thread(thread_id) self.finished_ok = True