• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python logging.msg函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中maple.core.logging.msg函数的典型用法代码示例。如果您正苦于以下问题:Python msg函数的具体用法?Python msg怎么用?Python msg使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了msg函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: after_each_test

 def after_each_test(self):
     iteration = len(self.test_history)
     used_time = self.test_history[-1].used_time()
     logging.msg('=== native iteration %d done === (%f) (%s)\n' % (iteration, used_time, os.getcwd()))
     f = open('timing', 'a')
     f.write('%f\n' % used_time)
     f.close()
开发者ID:HankFaan,项目名称:maple,代码行数:7,代码来源:testing.py


示例2: stop

 def stop(self):
     self.wait_for_idle()
     logging.msg('stopping server for mysql\n')
     time.sleep(2)
     subprocess.call([self.mysqladmin(), '--user=root', 'shutdown'])
     self.server.wait()
     self.server = None
开发者ID:HankFaan,项目名称:maple,代码行数:7,代码来源:mysql.py


示例3: stop

 def stop(self):
     p = psutil.Process(self.server.pid)
     while p.get_cpu_percent() > 5.0:
         time.sleep(1)
     logging.msg('stopping server for memcached_bug_127_training\n')
     os.kill(self.server.pid, signal.SIGINT)
     self.server.wait()
     self.server = None
开发者ID:HankFaan,项目名称:maple,代码行数:8,代码来源:memcached_bug_127_training.py


示例4: start

 def start(self):
     args, sio = self.input()
     cmd = []
     if self.prefix != None:
         cmd.extend(self.prefix)
     cmd.extend(args)
     logging.msg('starting aget bug2\n')
     self.proc = subprocess.Popen(cmd)
开发者ID:HankFaan,项目名称:maple,代码行数:8,代码来源:aget_bug2.py


示例5: verify

def verify(profiler, testcase):
    sinfo = static_info.StaticInfo()
    sinfo.load(profiler.knobs['sinfo_out'])
    iroot_db = iroot.iRootDB(sinfo)
    iroot_db.load(profiler.knobs['iroot_out'])
    if len(iroot_db.iroot_map) > 19 or len(iroot_db.iroot_map) < 18:
        logging.msg('iroot_db size mismatch\n')
        return False
    return True
开发者ID:HankFaan,项目名称:maple,代码行数:9,代码来源:cond2.py


示例6: main

def main(argv):
    if len(argv) < 1:
        logging.err(command_usage())
    suite = argv[0]
    logging.msg('performing regression: %s ...\n' % suite, 2) 
    if valid_suite(suite):
        regression(suite, argv[1:])
    else:
        logging.err(command_usage())
开发者ID:HankFaan,项目名称:maple,代码行数:9,代码来源:main.py


示例7: issue

 def issue(self):
     clients = []
     ipt = self.input()
     for idx in range(len(ipt)):
         clients.append(Client(ipt[idx], self))
     logging.msg('issuing requests for mysql\n')
     for i in range(len(clients)):
         clients[i].start()
     for i in range(len(clients)):
         clients[i].join()
开发者ID:HankFaan,项目名称:maple,代码行数:10,代码来源:mysql.py


示例8: issue

 def issue(self):
     clients = []
     num_threads, client_indexes = self.input()
     for i in range(len(client_indexes)):
         clients.append(Client(client_indexes[i]))
     logging.msg('issueing requests for memcached_bug_127_training\n')
     for i in range(len(clients)):
         clients[i].start()
     for i in range(len(clients)):
         clients[i].join()
开发者ID:HankFaan,项目名称:maple,代码行数:10,代码来源:memcached_bug_127_training.py


示例9: issue

 def issue(self):
     clients = []
     ipt, buf = self.input()
     for idx in range(len(ipt)):
         clients.append(Client(ipt[idx]))
     logging.msg('issuing requests for apache_bug_25520\n')
     for i in range(len(clients)):
         clients[i].start()
     for i in range(len(clients)):
         clients[i].join()
开发者ID:HankFaan,项目名称:maple,代码行数:10,代码来源:apache_bug_25520.py


示例10: verify

def verify(profiler, testcase):
    sinfo = static_info.StaticInfo()
    sinfo.load(profiler.knobs['sinfo_out'])
    iroot_db = iroot.iRootDB(sinfo)
    iroot_db.load(profiler.knobs['iroot_out'])
    for r in iroot_db.iroot_map.itervalues():
        if r.idiom() == 4:
            logging.msg('idiom4 iroot should not be predicted\n')
            return False
    return True
开发者ID:HankFaan,项目名称:maple,代码行数:10,代码来源:mem_idiom4_vw.py


示例11: issue

 def issue(self):
     clients = []
     num_threads, client_indexes = self.input()
     for i in range(len(client_indexes)):
         clients.append(Client(client_indexes[i]))
     logging.msg('issuing requests for memcached_bug_127\n')
     self.mc = memcache.Client(['127.0.0.1:12345'], debug=0)
     self.mc.set('test', '0')
     for i in range(len(clients)):
         clients[i].start()
     for i in range(len(clients)):
         clients[i].join()
开发者ID:HankFaan,项目名称:maple,代码行数:12,代码来源:memcached_bug_127.py


示例12: start

 def start(self):
     uri_idx, num_calls = self.input_entry
     httperf_args = []
     httperf_args.append(config.benchmark_home('httperf') + '/bin/httperf')
     httperf_args.append('--server=localhost')
     httperf_args.append('--port=8080')
     httperf_args.append('--uri=/test/%d.txt' % uri_idx)
     httperf_args.append('--num-calls=%d' % num_calls)
     httperf_args.append('--num-conns=1')
     logging.msg('client: uri_idx=%d, num_calls=%d\n' % (uri_idx, num_calls))
     self.fnull = open(os.devnull, 'w')
     self.proc = subprocess.Popen(httperf_args, stdout=self.fnull, stderr=self.fnull)
开发者ID:HankFaan,项目名称:maple,代码行数:12,代码来源:apache_bug_25520.py


示例13: stop

 def stop(self):
     p = psutil.Process(self.server.pid)
     while p.get_cpu_percent() > 5.0:
         time.sleep(1)
     time.sleep(1)
     stop_cmd = []
     stop_cmd.append(self.bin())
     stop_cmd.extend(['-k', 'stop'])
     logging.msg('stopping server for apache_bug_25520\n')
     subprocess.call(stop_cmd)
     self.server.wait()
     self.server = None
开发者ID:HankFaan,项目名称:maple,代码行数:12,代码来源:apache_bug_25520.py


示例14: issue

 def issue(self):
     time.sleep(1)
     logging.msg('issuing requests for cnc_bug\n')
     del os.environ['CNC_SOCKET_HOST']
     del os.environ['CNC_SCHEDULER']
     os.environ['CNC_SOCKET_CLIENT'] = self.contact_string
     self.client = subprocess.Popen([self.ponger()])
     self.client.wait()
     del os.environ['CNC_SOCKET_CLIENT']
     self.retcode = self.server.wait()
     self.server = None
     self.client = None
开发者ID:HankFaan,项目名称:maple,代码行数:12,代码来源:cnc_bug.py


示例15: __modify_memo_mark_unexposed_failed

def __modify_memo_mark_unexposed_failed(options):
    if not os.path.exists(options.memo_in):
        return
    sinfo = static_info.StaticInfo()
    sinfo.load(options.sinfo_in)
    iroot_db = iroot.iRootDB(sinfo)
    iroot_db.load(options.iroot_in)
    memo_db = memo.Memo(sinfo, iroot_db)
    memo_db.load(options.memo_in)
    memo_db.mark_unexposed_failed()
    memo_db.save(options.memo_out)
    logging.msg('memo mark unexposed failed done!\n')
开发者ID:HankFaan,项目名称:maple,代码行数:12,代码来源:main.py


示例16: __modify_memo_refine_candidate

def __modify_memo_refine_candidate(options):
    if not os.path.exists(options.memo_in):
        return
    sinfo = static_info.StaticInfo()
    sinfo.load(options.sinfo_in)
    iroot_db = iroot.iRootDB(sinfo)
    iroot_db.load(options.iroot_in)
    memo_db = memo.Memo(sinfo, iroot_db)
    memo_db.load(options.memo_in)
    memo_db.refine_candidate()
    memo_db.save(options.memo_out)
    logging.msg('memo refine candidate done!\n')
开发者ID:HankFaan,项目名称:maple,代码行数:12,代码来源:main.py


示例17: verify

def verify(profiler, testcase):
    sinfo = static_info.StaticInfo()
    sinfo.load(profiler.knobs['sinfo_out'])
    iroot_db = iroot.iRootDB(sinfo)
    iroot_db.load(profiler.knobs['iroot_out'])
    if len(iroot_db.iroot_map) != 5:
        logging.msg('iroot_db size mismatch\n')
        return False
    for r in iroot_db.iroot_map.itervalues():
        if not iroot_is_expected(r):
            logging.msg('iroot mismatch\n')
            return False
    return True
开发者ID:HankFaan,项目名称:maple,代码行数:13,代码来源:cond.py


示例18: start

 def start(self):
     logging.msg('starting server for cnc_bug\n')
     ipt = self.input()
     cmd = []
     if self.prefix != None:
         cmd.extend(self.prefix)
     cmd.append(self.pinger())
     cmd.extend(ipt)
     os.environ['CNC_SOCKET_HOST'] = '1'
     os.environ['CNC_SCHEDULER'] = 'TBB_QUEUE'
     self.server = subprocess.Popen(cmd, stdout=subprocess.PIPE)
     self.contact_string = self.wait_for_contact_string()
     logging.msg('contact string = %s\n' % self.contact_string)
开发者ID:HankFaan,项目名称:maple,代码行数:13,代码来源:cnc_bug.py


示例19: __modify_memo_input_change

def __modify_memo_input_change(options):
    if not os.path.exists(options.memo_in):
        return
    sinfo = static_info.StaticInfo()
    sinfo.load(options.sinfo_in)
    iroot_db = iroot.iRootDB(sinfo)
    iroot_db.load(options.iroot_in)
    memo_db = memo.Memo(sinfo, iroot_db)
    memo_db.load(options.memo_in)
    memo_db.clear_predicted_set()
    memo_db.clear_candidate_map()
    memo_db.save(options.memo_out)
    logging.msg('memo input change done!\n')
开发者ID:HankFaan,项目名称:maple,代码行数:13,代码来源:main.py


示例20: start

 def start(self):
     start_cmd = []
     if self.prefix != None:
         start_cmd.extend(self.prefix)
     start_cmd.append(self.bin())
     start_cmd.extend(['-k', 'start', '-D', 'ONE_PROCESS'])
     logging.msg('starting server for apache\n')
     self.server = subprocess.Popen(start_cmd)
     while not os.path.exists(self.pid_file()):
         time.sleep(1)
     p = psutil.Process(self.server.pid)
     while p.get_num_threads() != 4:
         time.sleep(1)
     time.sleep(1)
开发者ID:HankFaan,项目名称:maple,代码行数:14,代码来源:apache.py



注:本文中的maple.core.logging.msg函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python mapnik.has_cairo函数代码示例发布时间:2022-05-27
下一篇:
Python shortcuts.output_json函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap