diff --git a/category/get_perf_info.py b/category/get_perf_info.py index 4658d1e89f7d9a5e49e6d0f3ad20b6c07f1c4d61..675e2107a44336c6c21c902705de940865d83356 100644 --- a/category/get_perf_info.py +++ b/category/get_perf_info.py @@ -374,6 +374,13 @@ class OffCPU(): Logger().warning("当前内核版本下,工具暂不提供off-cpu采集功能.") return False + @GlobalCall.monitor_info_thread_pool.threaded_pool + def do_offcputime_collect(self): + try: + self.__do_offcputime_flamegraph() + except Exception as e: + Logger().debug("do offcpu collect error: {}".format(e)) + # hotspot main function class Hotspot(): def __init__(self):