From b8b3c4439109dd1634c8a3996db216ce5a612a5b Mon Sep 17 00:00:00 2001 From: wangxiaomeng Date: Wed, 14 Aug 2024 14:07:25 +0800 Subject: [PATCH] add __enable --- 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 453989e..6ab2ba3 100644 --- a/category/get_perf_info.py +++ b/category/get_perf_info.py @@ -221,8 +221,10 @@ class OffCPU(): self.offcputime_svg_errfile = '{}{}'.format(Config.get_output_path(),'offcputime.out.svg.err.tmp') if len(offcpu_args) == 0: + self.__enable = GlobalCall.get_json_value("Getting.Application.OffCPU.enable" , 0, 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.offcpu_duration = int(offcpu_args['offcpu_duration']) def __diff_kernel_version(self, dest): -- Gitee