Hierarchy Viewer Setup
来源:互联网 发布:sas怎么导入excel数据 编辑:程序博客网 时间:2024/06/14 01:01
最近做性能优化,发现需要使用Hierarchy Viewer进行布局分析。
但是发现手机必须root或者允许模拟器才可以查看,但是记忆里是可以直接看的,难道看错了?
果断google,原来google已经有办法处理了。需要在环境变量里配置一下就行了。鉴于现在都是4.0以上的手机,4.0以下的就不介绍了。
方案如下:
Windows
- Click My Computer > Property > Advanced > Environment Variables.
- Click New.
- In variables name put: ANDROID_HVPROTO
- In variable value put: ddm
- Click OK
Mac
- Edit ~/.bash_profile
- Add: # Hierarchy Viewer Variable
export ANDROID_HVPROTO=ddm - source ~/.bash_profile
Linux
- Edit ~/.bash_profile
- Add: #Hierarchy Viewer Variable
export ANDROID_HVPROTO=ddm - source ~/.bash_profile
简单几步就可以使用Hirarchy Viewer进行布局查看了
参考链接:https://developer.android.com/studio/profile/hierarchy-viewer-setup.html
0 0
- Hierarchy Viewer Setup
- Hierarchy Viewer
- Hierarchy Viewer
- Hierarchy Viewer
- 【Hierarchy Viewer】Android 实用工具Hierarchy Viewer实战
- 【Hierarchy Viewer】利用Hierarchy Viewer优化布局
- Hierarchy Viewer测试工具
- Android Hierarchy Viewer
- Android Hierarchy Viewer
- Using Hierarchy Viewer
- Android Hierarchy Viewer
- Android Hierarchy Viewer
- Code viewer hierarchy
- Android Hierarchy Viewer
- Hierarchy Viewer 理解
- Android Hierarchy Viewer
- hierarchy viewer bug
- Android工具Hierarchy Viewer
- BZOJ2085 [Poi2010]Hamsters
- 从零开始学习音视频编程技术(二) 音频格式讲解
- Oracle 密码文件
- java基础
- GDB 常用命令
- Hierarchy Viewer Setup
- Codeforces Round #372 (Div. 2) A.B.C
- sqlite3实例
- 欢迎使用CSDN-markdown编辑器
- 号线项目,百度SDK定位开发总结
- QT QTableWidget 用法总结
- 29. Divide Two Integers
- 神经网络-训练集 验证集 测试集
- iOS 10新特技