diff --git a/category/get_perf_info.py b/category/get_perf_info.py index e7ffd6522aafa508d2337e89e432137653d5aaf5..dfab005a0f9dce32f05173cf219356a4963fac75 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