摘要: 1.GPU渲染 简介:每振16毫秒的速度作为对比基准 每个竖线代表一个帧,高度代表花费时间 2.开启GPU分析器 设置 系统 开发者选项 GPU呈现模式分析 3.分析GPU速度 4.开启GPU过度绘制 5.分析GPU过度 优化: 删除布局中不需要的背景 展平视图层次结构 降低透明度 简单了解,一般开 阅读全文
posted @ 2020-02-04 23:50 张珊33 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 1.adb shell dumpsys batterystats reset重置电池数据 2.adb shell dumpsys batterystats 获取电池数据 adb shell dumpsys batterystats batterystats.txt输入到txt文件中 也可用 adb 阅读全文
posted @ 2020-02-04 23:39 张珊33 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 1.安装Homebrew 安装命令:ruby e "$(curl fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 2.使用Homebrew 1.安装软件:brew install 软件名 例如:brew 阅读全文
posted @ 2020-02-04 22:15 张珊33 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1.下载go 命令安装 brew install go 2.安装go 查看go版本号 brew info go 3.配置环境变量 ROOT安装目录 PATH工作目录 BIN可执行文件目录 PATH包含:src pkg bin src目录下主要存放go的源文件 pkg目录存放编译好的库文件,主要是 . 阅读全文
posted @ 2020-02-04 21:35 张珊33 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1.下载battery historian 下载地址:https://github.com/google/battery historian 简介:go语言开发的,分析电池耗电工具,Android5.0以上 https://developer.android.com/topic/performanc 阅读全文
posted @ 2020-02-04 21:30 张珊33 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 1.adb shell dumpsys cpuinfo 获取cpu情况 2.adb shell 'top n 1|grep com.douban.frodo' 获取单个应用最高的CPU占用 3.启动monitor 路径:android sdk macosx/tools/lib/monitor.bat 阅读全文
posted @ 2020-02-04 12:24 张珊33 阅读(300) 评论(0) 推荐(0) 编辑