diff --git a/category/get_perf_info.py b/category/get_perf_info.py index a21715986132284af69d4e74247121d6285592c2..ccac1d926522327f789bdb02567bff29c017b360 100644 --- a/category/get_perf_info.py +++ b/category/get_perf_info.py @@ -292,7 +292,16 @@ class OffCPU(): return True # end add for extuner.conf parser, should consistent with command line parsing + def __check_offcpu_parameter(self): + if len(offcpu_args) == 0: + if not self.__check_offcpu_enable_value(): + return False + if not self.__check_offcpu_pid(): + return False + if not self.__check_offcpu_duration(): + return False + return true # hotspot main function class Hotspot(): def __init__(self):