From 349a59709040c853ae57a38dcaf6cc1f4e3847bc Mon Sep 17 00:00:00 2001 From: wangxiaomeng Date: Wed, 14 Aug 2024 14:09:24 +0800 Subject: [PATCH] add __pid --- category/get_perf_info.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/category/get_perf_info.py b/category/get_perf_info.py index 6ab2ba3..69ae87a 100644 --- a/category/get_perf_info.py +++ b/category/get_perf_info.py @@ -222,9 +222,11 @@ class OffCPU(): if len(offcpu_args) == 0: self.__enable = GlobalCall.get_json_value("Getting.Application.OffCPU.enable" , 0, Config.get_json_dict()) + self.__pid = GlobalCall.get_json_value("Getting.Application.OffCPU.pid", convert_str(''), Config.get_json_dict()) self.offcpu_duration = GlobalCall.get_json_value("Getting.Application.OffCPU.duration", 15, Config.get_json_dict()) else: self.__enable = int(offcpu_args['offcpu_enable']) + self.__pid = convert_str(offcpu_args['offcpu_pid']) self.offcpu_duration = int(offcpu_args['offcpu_duration']) def __diff_kernel_version(self, dest): -- Gitee