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]LoopMonitor内存问题 #203
Comments
是的,之前测试过上面的代码,确实会存在内存抖动的情况,比较极端,主要还是因为这里有个字符串拼装。
暂时没有想到更完美的方案。有什么好的建议吗 |
TraceCanary 是使用 Looper.getMainLooper().setMessageLogging() 的方式实现卡顿帧率检测的吧?为什么我看有的地方说是使用 Choreographer 的方式实现的呢?是版本差异吗 |
老版本是用Choreographer,现在是依赖Looper.getMainLooper().setMessageLogging() |
@changelcai 这种差异的原因是? |
@changelcai 能否解释下,为啥改用Looper.getMainLooper().setMessageLogging()方案; 有啥考虑呢? |
@changelcai 能否解释下,为啥改用Looper.getMainLooper().setMessageLogging()方案; 有啥考虑呢? |
1 similar comment
@changelcai 能否解释下,为啥改用Looper.getMainLooper().setMessageLogging()方案; 有啥考虑呢? |
一直没人回答,小白盲猜一下,可能有几点原因:
|
异常类型:bug
matrix版本: 0.5.1
gradle版本: 3.0.1
问题描述:LoopMonitor对于内存的印象
因为LoopMonitor在监听的时候会加入一个printer进行日志的输出
所以一旦有多个message快速进入的时候会存在内存不停增加的问题
The text was updated successfully, but these errors were encountered: