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

android 帧率 cpu 内存 无法查看 miui10 android8.1 未root #41

Closed
manondidi opened this issue Feb 12, 2019 · 7 comments
Closed

android 帧率 cpu 内存 无法查看 miui10 android8.1 未root #41

manondidi opened this issue Feb 12, 2019 · 7 comments
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers

Comments

@manondidi
Copy link

manondidi commented Feb 12, 2019

Please complete the following informations.

Expected behavior and actual behavior.
Steps to reproduce the problem.
Android or iOS? OS version? Brand?
More informations such as error messages and stack traces are welcomed.

请补充如下信息。

期望的表现和实际的表现。(如有)
android 帧率 cpu 内存无法查看
问题重现的步骤。(如有)
按文档进行下列步骤接入sdk

dependencies {
	
    debugImplementation 'com.didichuxing.doraemonkit:doraemonkit:1.0.5'
    releaseImplementation 'com.didichuxing.doraemonkit:doraemonkit-no-op:1.0.5'
  
}

    DoraemonKit.install(application)

进入具体某个页面点击悬浮窗开启 cpu ram 帧率 这三个 按返回键 ,

内存cpu frame始终是0

Android 还是 iOS?系统版本是多少?手机品牌是什么?(如有)

android 红米5plus miui10 android8.1

其他的错误信息和堆栈信息如果有也可以一并提供出来。(如有)

@manondidi
Copy link
Author

kotlin工程 androidX控件

@LinJZong
Copy link
Contributor

LinJZong commented Feb 13, 2019

cpu、内存功能是通过解析/proc目录文件实现的,但是android 8.0开始系统收紧了权限,不允许读取读取/proc目录文件。目前实现了使用adb命令来获取性能参数,不过操作有点繁琐。正在调研是否有替代方案。

@LinJZong LinJZong added bug Something isn't working enhancement New feature or request good first issue Good for newcomers labels Feb 13, 2019
@manondidi
Copy link
Author

gt可以看
https://github.com/Tencent/GT

@LinJZong
Copy link
Contributor

1.1.0版本已增加8.0设备支持

@wholegale39
Copy link

1.1.0版本之前是使用cat /proc/PID/stat方式获取CPU信息的吗?1.1.0是改为adb shell top命令获取了?

@LinJZong
Copy link
Contributor

LinJZong commented Mar 8, 2019

1.1.0版本之前是使用cat /proc/PID/stat方式获取CPU信息的吗?1.1.0是改为adb shell top命令获取了?

是的

@wytiger
Copy link

wytiger commented Mar 23, 2021

小米6 android9不能看,top命令拿到的也一直是0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants