android ANR 文件中的 sCount=2 dsCount=1 是什么意思?
What does sCount=2 dsCount=1 mean in android ANR file?
我的 ANR 文件有问题,我在主线程中得到了一个 SUSPENDED 标签,
有人说原因可能 GC , Debugger, 无限循环, 所以我尝试 Debugger 和 infinite loop,我得到了 SUSPENDED ,但区别在于我使用 Debugger 得到 ANR,我得到 sCount=2 dsCount=1,当我使用 无限循环 得到 ANR,我得到sCount=1 dsCount=0..
那么它在 ANR 文件中意味着什么?
以下是ANR的截图
从sources可以判断:
dvmPrintDebugMessage(target, " | group=\"%s\" sCount=%d dsCount=%d s=%c obj=%p
self=%p\n",
groupName, thread->suspendCount, thread->dbgSuspendCount,
thread->isSuspended ? 'Y' : 'N', thread->threadObj, thread);
所以,回答你的问题:
sCount
代表thread->suspendCount
,dsCount
代表thread->dbgSuspendCount
。
我的 ANR 文件有问题,我在主线程中得到了一个 SUSPENDED 标签,
有人说原因可能 GC , Debugger, 无限循环, 所以我尝试 Debugger 和 infinite loop,我得到了 SUSPENDED ,但区别在于我使用 Debugger 得到 ANR,我得到 sCount=2 dsCount=1,当我使用 无限循环 得到 ANR,我得到sCount=1 dsCount=0..
那么它在 ANR 文件中意味着什么?
以下是ANR的截图
从sources可以判断:
dvmPrintDebugMessage(target, " | group=\"%s\" sCount=%d dsCount=%d s=%c obj=%p
self=%p\n",
groupName, thread->suspendCount, thread->dbgSuspendCount,
thread->isSuspended ? 'Y' : 'N', thread->threadObj, thread);
所以,回答你的问题:
sCount
代表thread->suspendCount
,dsCount
代表thread->dbgSuspendCount
。