add bussiness thread freeze detection

Signed-off-by: hhl <yinhuiling@huawei.com>
This commit is contained in:
hhl 2024-07-25 19:59:18 +08:00
parent e6edca1118
commit d7854d7c9d
2 changed files with 3 additions and 1 deletions

View File

@ -114,7 +114,7 @@ int AppfreezeInner::AppfreezeHandle(const FaultData& faultData, bool onlyMainThr
bool AppfreezeInner::IsExitApp(const std::string& name)
{
if (name == AppFreezeType::THREAD_BLOCK_6S || name == AppFreezeType::APP_INPUT_BLOCK ||
name == AppFreezeType::LIFECYCLE_TIMEOUT) {
name == AppFreezeType::LIFECYCLE_TIMEOUT || name == AppFreezeType::BUSSINESS_THREAD_BLOCK_6S) {
return true;
}
return false;

View File

@ -47,6 +47,8 @@ public:
static constexpr char THREAD_BLOCK_3S[] = "THREAD_BLOCK_3S";
static constexpr char THREAD_BLOCK_6S[] = "THREAD_BLOCK_6S";
static constexpr char APP_INPUT_BLOCK[] = "APP_INPUT_BLOCK";
static constexpr char BUSSINESS_THREAD_BLOCK_3S[] = "BUSSINESS_THREAD_BLOCK_3S";
static constexpr char BUSSINESS_THREAD_BLOCK_6S[] = "BUSSINESS_THREAD_BLOCK_6S";
};
/**
* @struct FaultData