From 5c178e7e9e328fdf905f1207a4447db5bf025c3e Mon Sep 17 00:00:00 2001 From: yuzhouhang Date: Tue, 30 Apr 2024 19:04:48 +0800 Subject: [PATCH] modify api to get ffrt dump info --- .../samgr/native/source/system_ability_manager_dumper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/samgr/native/source/system_ability_manager_dumper.cpp b/services/samgr/native/source/system_ability_manager_dumper.cpp index 7be8876c..7c14409b 100644 --- a/services/samgr/native/source/system_ability_manager_dumper.cpp +++ b/services/samgr/native/source/system_ability_manager_dumper.cpp @@ -16,7 +16,7 @@ #include "system_ability_manager_dumper.h" #include "accesstoken_kit.h" -#include "c/ffrt_watchdog.h" +#include "ffrt_inner.h" #include "file_ex.h" #include "ipc_skeleton.h" #include "system_ability_manager.h" @@ -118,7 +118,7 @@ void SystemAbilityManagerDumper::GetSAMgrFfrtInfo(std::string& result) { char* buffer = new char[FFRT_BUFFER_SIZE + 1](); buffer[FFRT_BUFFER_SIZE] = 0; - ffrt_watchdog_dumpinfo(buffer, FFRT_BUFFER_SIZE); + ffrt_dump(ffrt_dump_cmd_t::DUMP_INFO_ALL, buffer, FFRT_BUFFER_SIZE); if (strlen(buffer) == 0) { HILOGE("get samgr FfrtDumperInfo failed"); delete[] buffer; -- Gitee