From 525e2e3f325802bdaa81fcbfbd5933288f75a004 Mon Sep 17 00:00:00 2001 From: wangxiaomeng Date: Wed, 14 Aug 2024 13:59:23 +0800 Subject: [PATCH] add flamegraph_tool_path and offcputime_tool --- 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 f39812d..c92300a 100644 --- a/category/get_perf_info.py +++ b/category/get_perf_info.py @@ -213,6 +213,9 @@ class OffCPU(): Logger().error("Error: {}".format(err)) def __set_offcpu_parameter(self): + self.flamegraph_tool_path = '{}{}/{}/'.format(Config.get_inst_path(), 'third_party', 'FlameGraph') + self.offcputime_tool = '/usr/share/bcc/tools/offcputime' + if len(offcpu_args) == 0: self.offcpu_duration = GlobalCall.get_json_value("Getting.Application.OffCPU.duration", 15, Config.get_json_dict()) else: -- Gitee