code: def profile_methods(self, method_list):
          
          self.method_exec_info = []
          # 开始数据记录进程
          self.record_thread.stop_flag = False
          self.record_thread.start()
  
          for name in method_list:
              if name not in self.check_macthing_object.MATCHING_METHODS.keys():
                  continue
              time.sleep(3)  # 留出绘图空白区
              start_time = time.time()  # 记录开始时间
              print("--->>> start '%s' matching:\n" % name)
              kp_sch, kp_src, good, result = self.check_macthing_object.get_and_plot_keypoints(name)  # 根据方法名绘制对应的识别结果
              print("\n\n\n")
              end_time = time.time()  # 记录结束时间
              time.sleep(3)  # 留出绘图空白区
              # 记录本次匹配的相关数据
              ret_info = {
                  "name": name,
                  "start_time": start_time,
                  "end_time": end_time,
                  "result": result,
                  "kp_sch": len(kp_sch),
                  "kp_src": len(kp_src),
                  "good": len(good)}
              self.method_exec_info.append(ret_info)
  
          self.record_thread.stop_flag = True
docs: 帮助函数执行时记录数据.