From 1ea5488d3c3d07bf0cddc8dd54f275c69d7ac3e1 Mon Sep 17 00:00:00 2001 From: lixiaoyong1 Date: Tue, 9 Jul 2024 17:32:56 +0800 Subject: [PATCH 1/2] Use decorator to implement thread pool for function __get_blktrace_info --- category/get_disk_info.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/category/get_disk_info.py b/category/get_disk_info.py index fb1afbc..5f5d49f 100644 --- a/category/get_disk_info.py +++ b/category/get_disk_info.py @@ -8,6 +8,7 @@ from common.command import Command from common.global_parameter import GlobalParameter from common.config import Config from common.log import Logger +from common.global_call import GlobalCall class DiskInfo: def __init__(self, t_fileName): @@ -74,6 +75,7 @@ class DiskInfo: cmd_name = 'iostat' return Command.cmd_output(cmd_name, cmd_result, self.__default_file_name, '=') + @GlobalCall.monitor_info_thread_pool.threaded_pool def __get_blktrace_info(self) : ''' get blktrace information in output/blktrace -- Gitee From 3b651cec16b56e7b51234089cd4d48327f08ed2e Mon Sep 17 00:00:00 2001 From: lixiaoyong1 Date: Fri, 23 Aug 2024 18:08:57 +0800 Subject: [PATCH 2/2] Add gcc version info in kyreport --- kyreport/ky_report.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kyreport/ky_report.py b/kyreport/ky_report.py index 0d7e123..b65cd94 100644 --- a/kyreport/ky_report.py +++ b/kyreport/ky_report.py @@ -51,6 +51,7 @@ class KyReport: info['base_info']['hostname'] = Command.cmd_exec(r'hostname') info['base_info']['system_version'] = Command.cmd_exec(r'cat /etc/.productinfo | grep release') info['base_info']['kernel_version'] = Command.cmd_exec(r'uname -r') + info['base_info']['gcc_version'] = Command.cmd_exec(r'gcc --version | head -n 1') # end base info # setting base cpu info -- Gitee