From 189489e2c1d4a07080a0780925247dc5b3c0aada Mon Sep 17 00:00:00 2001 From: wangxiaomeng Date: Wed, 14 Aug 2024 13:48:50 +0800 Subject: [PATCH] add __set_offcpu_parameter in class OffCPU --- category/get_perf_info.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/category/get_perf_info.py b/category/get_perf_info.py index 6f56655..6e7a4f3 100644 --- a/category/get_perf_info.py +++ b/category/get_perf_info.py @@ -212,6 +212,10 @@ class OffCPU(): except Exception as err: Logger().error("Error: {}".format(err)) + def __set_offcpu_parameter(self): + if len(offcpu_args) == 0: + self.offcpu_duration = GlobalCall.get_json_value("Getting.Application.OffCPU.duration", 15, Config.get_json_dict()) + def __diff_kernel_version(self, dest): res = True # only compare major and minor part -- Gitee