diff --git a/common/global_parameter.py b/common/global_parameter.py index 967d0fbf03cf9d7d62f224797ed8cef2114b54e7..0d36b22e410cec630cc4838825cee7426db02d3e 100644 --- a/common/global_parameter.py +++ b/common/global_parameter.py @@ -67,6 +67,9 @@ class GlobalParameter: # 默认执行5次 self.g_subsar_times = GlobalCall.get_json_value("Getting.Common.subSar.times", 5, Config.get_json_dict()) + # *-----------------------get pidstat info------------------- + # 默认时间间隔为2s + self.g_pidstat_interval = GlobalCall.get_json_value("Getting.Common.CPU.interval", 1, Config.get_json_dict()) # 定义sub_sarall cmd self.sub_sarall = "sar -u ALL -P ALL -q -r -B -W -d -p -n DEV -n EDEV {} {}".format(self.get_subsar_interval(), self.get_subsar_times()) # 定义pidstat_cmd