From 5615b0ca88eb3a427eb46c4259d7d0ae9cfc4be4 Mon Sep 17 00:00:00 2001 From: xiejing Date: Thu, 15 Aug 2024 14:51:36 +0800 Subject: [PATCH] call offcputime_svg_cmd command --- category/get_perf_info.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/category/get_perf_info.py b/category/get_perf_info.py index e7ffd65..dfab005 100644 --- a/category/get_perf_info.py +++ b/category/get_perf_info.py @@ -332,6 +332,9 @@ class OffCPU(): offcputime_svg_cmd = "{}flamegraph.pl --color=io --title=\"Off-CPU Time Flame Graph\" --countname=us < {} > {} 2>> {}"\ .format(self.flamegraph_tool_path, self.offcputime_stack_file, self.offcputime_svg_file, self.offcputime_svg_errfile) + ret2, _ = Command.private_cmd_run(offcputime_svg_cmd, True) + if ret2 or not is_errfile_empty(offcputime_svg_short, self.offcputime_svg_errfile): + return False else: Logger().warning("当前内核版本下,工具暂不提供off-cpu采集功能.") return False -- Gitee