diff --git a/frameworks/native/appkit/dfr/appfreeze_inner.cpp b/frameworks/native/appkit/dfr/appfreeze_inner.cpp index 636cf599155f558f0f1d229cb2029c3921699c8e..b56ae785ecff73722360a4644059b40f19b403bc 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 545d97caee224a03d7d2ca675e0800829512363d..de66ff43429579b6ea030934d230ecb199636103 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