From c75077f2702cb7fa2012db3e2b81387f0f7b44c7 Mon Sep 17 00:00:00 2001 From: rr_cn Date: Tue, 22 Jul 2025 18:09:28 +0800 Subject: [PATCH] =?UTF-8?q?freeze=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rr_cn --- frameworks/native/appkit/dfr/appfreeze_inner.cpp | 5 ----- services/appdfr/src/application_anr_listener.cpp | 4 ---- 2 files changed, 9 deletions(-) diff --git a/frameworks/native/appkit/dfr/appfreeze_inner.cpp b/frameworks/native/appkit/dfr/appfreeze_inner.cpp index 636cf599155..b56ae785ecf 100644 --- a/frameworks/native/appkit/dfr/appfreeze_inner.cpp +++ b/frameworks/native/appkit/dfr/appfreeze_inner.cpp @@ -244,11 +244,6 @@ void AppfreezeInner::ThreadBlock(std::atomic_bool& isSixSecondEvent) #ifdef APP_NO_RESPONSE_DIALOG isSixSecondEvent.store(false); #endif - int32_t pid = static_cast(getpid()); - int ret = HiSysEventWrite(HiviewDFX::HiSysEvent::Domain::RELIABILITY, "LOWMEM_DUMP", - HiviewDFX::HiSysEvent::EventType::STATISTIC, "PID", pid, "MSG", "THREAD_BLOCK_6S"); - TAG_LOGI(AAFwkTag::APPDFR, "hisysevent pid=%{public}d, eventName=LOWMEM_DUMP, MSG=THREAD_BLOCK_6S," - "ret=%{public}d", pid, ret); } else { faultData.errorObject.name = AppFreezeType::THREAD_BLOCK_3S; isSixSecondEvent.store(true); diff --git a/services/appdfr/src/application_anr_listener.cpp b/services/appdfr/src/application_anr_listener.cpp index 545d97caee2..de66ff43429 100644 --- a/services/appdfr/src/application_anr_listener.cpp +++ b/services/appdfr/src/application_anr_listener.cpp @@ -50,10 +50,6 @@ void ApplicationAnrListener::OnAnr(int32_t pid, int32_t eventId) const faultData.notifyApp = false; faultData.forceExit = false; faultData.eventId = eventId; - int ret = HiSysEventWrite(HiviewDFX::HiSysEvent::Domain::RELIABILITY, "LOWMEM_DUMP", - HiviewDFX::HiSysEvent::EventType::STATISTIC, "PID", pid, "MSG", "APP_INPUT_BLOCK"); - TAG_LOGI(AAFwkTag::APPDFR, "hisysevent pid=%{public}d, eventName=LOWMEM_DUMP, MSG=APP_INPUT_BLOCK," - "ret=%{public}d", pid, ret); DelayedSingleton::GetInstance()->NotifyAppFaultBySA(faultData); } } // namespace AAFwk -- Gitee