18 Star 2 Fork 18

openEuler/extuner

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
extuner.py 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
zhanghan 提交于 2023-11-16 20:32 . Record execution actions and result logs
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# cython:language_level=3
from common.log import Logger
from common.tool_cmd import ToolCmd
from summary_info import SummaryInfo
from common.threadpool import ThreadPool
import time
# main function
# if __name__=='__main__':
def main():
Timer = { "start": "", "stop": "" }
ret = False
args = ToolCmd().args_help()
func = args.func
if args.work_path == '':
work_path = '/usr/share/extuner/'
else:
work_path = args.work_path
if args.inst_path == '':
inst_path = '/usr/share/extuner/'
else:
inst_path = args.inst_path
out_path = args.out_path
SummaryInfo.init(out_path,work_path, inst_path)
Logger().info("Extuner 开始执行")
Timer["start"] = time.strftime("%Y-%m-%d %H:%M:%S")
if 'pro' == func[:3]:
SummaryInfo.set_scene(func,args)
if 'col' == func or 'ana' == func:
#get 功能
ret = SummaryInfo.get_info()
if ThreadPool().is_thread_working:
ThreadPool().thread_finish()
Timer["stop"] = time.strftime("%Y-%m-%d %H:%M:%S")
Logger().info("Extuner 执行成功")
# Logger().info("结果输出目录为 : {}".format(Config.path_format(os.path.abspath(Config.get_output_path()))))
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openeuler/extuner.git
git@gitee.com:openeuler/extuner.git
openeuler
extuner
extuner
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385