From 163e87f0d1d66243f2f1a54b0fbb8cd15566bea0 Mon Sep 17 00:00:00 2001 From: tenglei Date: Tue, 9 Jul 2024 15:08:49 +0800 Subject: [PATCH] add check_perf_parameter function in get_perf_info --- category/get_perf_info.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/category/get_perf_info.py b/category/get_perf_info.py index e377f8f..9b773c5 100644 --- a/category/get_perf_info.py +++ b/category/get_perf_info.py @@ -143,6 +143,17 @@ class Perf(): Logger().error("Application.Perf.duration not allowed to exceed 300") return False return True + + # end add for extuner.conf parser, should consistent with command line parsing + def __check_perf_parameter(self): + if len(perf_args) == 0: + if not self.__check_perf_enable_value(): + return False + if not self.__check_perf_pid(): + return False + if not self.__check_perf_duration(): + return False + return True # OffCPU Class class OffCPU(): -- Gitee