From cadf8f4828f6165b80368e3862f3fc9752f9b35c Mon Sep 17 00:00:00 2001 From: wuzhaomin Date: Tue, 10 Sep 2024 11:38:26 +0800 Subject: [PATCH] Added the judgment of ana value --- common/tool_cmd.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/tool_cmd.py b/common/tool_cmd.py index ec691ca..c7d8f21 100644 --- a/common/tool_cmd.py +++ b/common/tool_cmd.py @@ -81,11 +81,13 @@ class ToolCmd: return ival def get_hotspot_cmdline_parser(self, args): - if 'col' == args.func: + if 'col' == args.func or 'ana' == args.func: if args.perf_enable_type: perf_args = {'perf_enable_type': args.perf_enable_type, 'perf_pid':args.perf_pid, 'perf_duration':args.perf_duration} else: perf_args = {} + if args.offcpu: + offcpu_args = {'offcpu_enable': args.offcpu, 'offcpu_pid':args.offcpu_pid, 'offcpu_duration':args.offcpu_duration} else: perf_args = {} offcpu_args = {} -- Gitee