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

疑问 #6

Open
lpl-9527 opened this issue Mar 11, 2021 · 1 comment
Open

疑问 #6

lpl-9527 opened this issue Mar 11, 2021 · 1 comment

Comments

@lpl-9527
Copy link

想问下那个任务分析的Thread Info能看出什么?

@Carlyle-Lee
Copy link
Collaborator

Carlyle-Lee commented Mar 20, 2021

目前的任务分析:是基于ART method hook。(hook 的实现在另外的项目中)。在抓取到任务的时候同时记录了线程名字 线程id & 线程创建位置信息。
现在在hook 到一个任务被执行的时候,执行了一个解释器回调。这个回调开放给业务方面,用于解释这个任务是什么,从而定位到是什么任务在执行。
如果没有解释器,那么就展示当前的对象toString,如果这个对象的类是一个匿名内部类,那么就可以直接定位到代码实现位置。

LensTrace 的主要功能就是一键分析,发现阶段内任务耗时点,发现任务调度问题,通过解释器进一步分析具体耗时问题,进而解决问题。
功能还在进化中。未来有时间可以继续分享出来。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants