Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(android):处理卡顿检测时,容易触发发现卡顿 但是收集不到 堆栈的bug #1151

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 23, 2023

  1. bug(android):处理卡顿检测时,容易触发发现卡顿 但是收集不到 堆栈的bug

    堆栈检测默认是300ms采集,如果小于这个间隔则会stop dump,从消息队列中移除。
    卡顿检测默认阈值是200ms。
    
    如果一个卡顿是250ms,例如可以把dokit demo中的 BlockMonitorFragment 中的 mockBlock 方法中的 sleep(2000) 改成sleep(250)
    
    此时就会出现能检测到卡顿,isBlock返回true,但是因为只有250ms的卡顿,还不到300ms所以直接stopDump 导致无法收集到堆栈
    punkisnotdead3 committed Nov 23, 2023
    Configuration menu
    Copy the full SHA
    929fccf View commit details
    Browse the repository at this point in the history