Signed-off-by: hhl <yinhuiling@huawei.com>
This commit is contained in:
hhl 2024-10-28 15:47:59 +08:00
parent 1d793f96f0
commit 0a1cc36709
3 changed files with 2 additions and 3 deletions

View File

@ -24,8 +24,8 @@ static constexpr int WAIT_CHILD_PROCESS_COUNT = 300;
int DumpStacktrace(int fd, int pid);
int WriteKernelStackToFd(int originFd, const std::string& msg, int pid);
void FormatFileName(std::string& processName);
FFRT_TYPE GetFfrtDumpType(int pid);
void FormatFileName(std::string& processName);
void ReadShellToFile(int fd, const std::string& serviceName, const std::string& cmd, int& count);
}
} // namespace HiviewDFX

View File

@ -188,7 +188,7 @@ void EventLogger::StartFfrtDump(std::shared_ptr<SysEvent> event)
LogCatcherUtils::WAIT_CHILD_PROCESS_COUNT;
if (type == LogCatcherUtils::TOP) {
#ifdef WINDOW_MANAGER_ENABLE
FileUtil::SaveStringToFd(ffrtFd, "ffrt dump topWindowInfos, process infos:\n");
FileUtil::SaveStringToFd(ffrtFd, "dump topWindowInfos, process infos:\n");
std::string cmdAms = "--ffrt ";
std::string cmdSam = "--ffrt ";
int size = static_cast<int>(windowInfos.size());

View File

@ -66,7 +66,6 @@ private:
static const inline std::string DOMAIN_LONGPRESS = "KERNEL_VENDOR";
static const inline std::string STRINGID_LONGPRESS = "COM_LONG_PRESS";
static const inline std::string LONGPRESS_LEVEL = "CRITICAL";
static const inline std::string FFRT_HEADER = "=== ffrt info ===\n";
static const inline std::string MONITOR_STACK_FLIE_NAME[] = {
"jsstack",
};