Exemplo n.º 1
0
 def execute_test(self):
     for run in self.run_names:
         this_run_binfile = "%s-%s" % (self.binfile, utils.convert_spaces(run))
         utils.select_file(this_run_binfile)
         iteration = 5
         while iteration > 0:
             func = lambda: utils.runto_main()
             self.measure.measure(func, run)
             iteration -= 1
Exemplo n.º 2
0
 def execute_test(self):
     for run in self.run_names:
         this_run_binfile = "%s-%s" % (self.binfile,
                                       utils.convert_spaces(run))
         utils.select_file(this_run_binfile)
         iteration = 5
         while iteration > 0:
             func = lambda: utils.runto_main()
             self.measure.measure(func, run)
             iteration -= 1
 def execute_test(self):
     for run in self.run_names:
         this_run_binfile = "%s-%s" % (self.binfile, utils.convert_spaces(run))
         utils.select_file(this_run_binfile)
         utils.runto_main()
         iteration = 5
         while iteration > 0:
             utils.safe_execute("mt flush-symbol-cache")
             func = lambda: utils.safe_execute("print gm_std::cerr")
             self.measure.measure(func, run)
             iteration -= 1
Exemplo n.º 4
0
 def execute_test(self):
     for run in self.run_names:
         this_run_binfile = "%s-%s" % (self.binfile,
                                       utils.convert_spaces(run))
         utils.select_file(this_run_binfile)
         utils.runto_main()
         iteration = 5
         while iteration > 0:
             utils.safe_execute("mt flush symbol-cache")
             func = lambda: utils.safe_execute("print gm_std::cerr")
             self.measure.measure(func, run)
             iteration -= 1
 def execute_test(self):
     for run in self.run_names:
         this_run_binfile = "%s-%s" % (self.binfile,
                                       utils.convert_spaces(run))
         utils.select_file(this_run_binfile)
         utils.runto_main()
         utils.safe_execute("mt expand-symtabs")
         iteration = 5
         while iteration > 0:
             utils.safe_execute("mt flush-symbol-cache")
             func = lambda: utils.safe_execute("p symbol_not_found")
             self.measure.measure(func, run)
             iteration -= 1
Exemplo n.º 6
0
 def execute_test(self):
     for run in self.run_names:
         this_run_binfile = "%s-%s" % (self.binfile,
                                       utils.convert_spaces(run))
         utils.select_file(this_run_binfile)
         utils.runto_main()
         utils.safe_execute("mt expand-symtabs")
         iteration = 5
         while iteration > 0:
             utils.safe_execute("mt flush-symbol-cache")
             func1 = lambda: utils.safe_execute("ptype hello")
             func = lambda: utils.run_n_times(2, func1)
             self.measure.measure(func, run)
             iteration -= 1
Exemplo n.º 7
0
 def func(self):
     utils.select_file(self.this_run_binfile)
     utils.safe_execute("ptype call_use_my_int_1")
 def func(self):
     utils.select_file(self.this_run_binfile)
     utils.safe_execute("ptype call_use_my_int_1")
 def _doit(self, binfile):
     utils.select_file(None)
     utils.select_file(binfile)
 def _doit(self, binfile):
     utils.select_file(None)
     utils.select_file(binfile)