adb shell 查看当前进程和窗口信息_fan-james的博客-程序员秘密_adb 查看当前占用屏幕进程

技术标签: 进程  查看窗口  手机性能  

adb shell 查看当前进程和窗口信息可以使用如下命令:

>adb shell

>dumpsys window windows |grep "Window #"

显示信息如下:

 

2:打开AMS、WMS的命令行如下:

adb shell dumpsys activity log x on
adb shell dumpsys window -d enable a

 

3:查看屏幕分辨率和GPU频率

adb shell “cat /proc/gpufreq/gpufreq_opp_dump”

还有wm size,adb shell wm size

 

4:

adb shell wm size WXH 命令是按witch x hight 设置分辨率。如果分辨率设置的过大,图标会变大,反之则变小

adb shell wm size reset 命令是将分辨率设置为LCD原始分辨率

 

5:抓起loading 和fps 和freq

adb shell "setprop debug.egl.traceGpuCompletion 1"

adb shell "setprop debug.atrace.tags.enableflags 0x3fe"

adb shell "setprop debug.egl.trace systrace"

adb shell "stop;start"

 

   2,请帮忙抓一下卡顿场景的GPU loading 和freq和FPs, 可以同时起三个命令行抓取,把得到的结果提供给我们。

    // loading 

    adb shell "while(true) ; do cat /d/ged/hal/gpu_utilization;sleep 0.1; done" 

   

    // freq

   adb shell "while(true) ; do cat /proc/gpufreq/gpufreq_var_dump | grep g_cur_gpu_freq; sleep 1; done"

   // FPS

    adb shell "while(true) ; do cat /d/ged/hal/ged_kpi; sleep 1; done"

 

6:读取Settings db中的属性值

 adb shell settings list global | grep game

 adb shell settings list secure| grep game

 

7:使用adb命令过滤logcat中的命令信息。

(1) adb shell findstr | grep service_to_fd

(2)adb shell

    logcat | grep service_to_fd

 

Line 526: 12-06 15:11:32.074  1526  1526 I ADB_SERVICES: service_to_fd shell:am start -W -S 'com.android.contacts/.activities.PeopleActivity'
    Line 2430: 12-06 15:12:05.530  1526  1526 I ADB_SERVICES: service_to_fd shell:dumpsys -t 30 meminfo --package com.android.contacts
    Line 2433: 12-06 15:12:06.127  1526  1526 I ADB_SERVICES: service_to_fd shell:am force-stop 'com.android.contacts'

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/fan380485838/article/details/81939780

智能推荐

java volatile关键字 transien 关键字_weixin_33854644的博客-程序员秘密

为什么80%的码农都做不了架构师?>>> ...

sql语句创建mysql数据库常见错误以及解决方法_sql数据表的创建经常出现的问题_txhljjb的博客-程序员秘密

Error Code: 1366. Incorrect string value: '\xE5\xAD\xA6\xE5\xB7\xA5...'    将该表中的每一列的字符集都改为utf-8    SQL语句:alter table dept change loc loc varchar(50) character set utf8;Error Code: 1062. Duplicate entr...

怎么查看gpu服务器的系统和版本,linux 查看服务器gpu_weixin_39611725的博客-程序员秘密

linux 查看服务器gpu 内容精选换一换GPU加速型云服务器,需要安装Tesla驱动和CUDA工具包以实现计算加速功能。使用公共镜像创建的计算加速型(P系列)实例默认已安装特定版本的Tesla驱动。使用私有镜像创建的GPU加速型云服务器,需在创建完成后安装Tesla驱动,否则无法实现计算加速功能。本节操作介绍GPU云服务器安装Tesla驱动及CUDA工具包的操作步骤。云服务器已在GPU实例中,...

iPhone 4S_zweitian的博客-程序员秘密

iPhone4S是iPhone4的升级版(“4S”is “for steve”另一说法是英文“Speed”的缩写)。于2011年10月由苹果新任CEO蒂姆·库克在2011苹果秋季产品发布会上发布。2012年1月13日,首批iPhone 4S由中国联通独家引进在中国内地开售。2012年1月29日,据中国电信内部人士透露,中国电信集团近日已向各省分公司发文,要求各地营业厅在春节后做好iPhone4

Faster RCNN需要的两个make文件:cython_bbox.cpython-35m-x86_64-linux-gnu.so;cython_bbox.so_wxyhv的博客-程序员秘密

Faster-RCNN在linux tensorflow python3.5下运行时需要的make生成文件。编译通过。请点击下面链接:cython_bbox.cpython-35m-x86_64-linux-gnu.socython_bbox.so

随便推点

30.html5画轮播图_html5轮播图_Keeling1720的博客-程序员秘密

自己写的有点low,有个致命缺点是一旦离开小圆点,小圆点就不是红边框加灰色背景的了。<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>轮播图</title> <style> .img1,.img2,.img3,.img4{ position: absolute

【目标检测】YOLOv1论文理解_yolov1为什么要计算网格没有目标的损失_不断进步的咸鱼的博客-程序员秘密

一、介绍1.1 YOLOv1和Faster RCNN系列的区别Faster R-CNN系列:        1)two-state目标检测算法;        2)重用分类器执行检测:该系列的算法,首先产生候选区域 通过一些搜索算法(例select search算法)或者区域建议网络(RPN网络)产生候选区域。...

李沐动手学深度学习pytorch :问题:找不到d2l包,No module named ‘d2l’_no module named 'd2l_取个名字真难呐的博客-程序员秘密

下载d2lzh_pytorch直接百度云:链接:https://pan.baidu.com/s/1ndV7qloDG7vIGrZmEdasWw提取码:hwn4将文件夹 d2lzh_pytorch 【记住这个是 小写 L 不是 数字 1 】 放到anaconda 你自己创建的环境下:C:\ProgramData\Anaconda3\envs\pytorchzc\Lib\site-packages重点:要放到自己创建的环境下,别放错了。在Anaconda Prompt 下查看环境: conda.

rocketmq死信队列问题。_can not find message queue for this topic_kenick的博客-程序员秘密

1.多次消费消息未成功,未进入重试队列。 检查消息监听器类型,如果类型是MessageListenerOrderly,重复消费并不会进入重试队列,只有类型为MessageListenerConcurrently时才会。2.无法查询死信队列消息:Can not find Message Queue for this topic, %DLQ%hello-consumer↵See http://rocketmq.apache.org/docs/faq/ for further details。解决方.

php simplexmlelement,实例演示SimpleXMLElement的用法_weixin_39850150的博客-程序员秘密

使用PHP解析XML时,常用simplexml_load_string,缺省是一个SimpleXMLElement的包装函数,今天不说simplexml_load_string,只说SimpleXMLElement。本文以Android软件中的AndroidManifest.xml文档为例,先看一下演示文档的内容:package="PACKAGE" android:versionName="VER...

Unprocessed Shipping Transactions Troubleshooting Techniques (文档 ID 262979.1)_kikiwhq的博客-程序员秘密

转自:https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=424746486989148&id=262979.1&displayIndex=5&_afrWindowMode=0&_adf.ctrl-state=1c8kev1z9c_278#q1In this Document Purpose

推荐文章

热门文章

相关标签