www.17一起草:点燃创意火花,共筑数字梦想

核心内容摘要

八戒宝藏库:不止猪八戒,更是你我寻宝的智慧结晶!
哥也是娱乐中文网:你的专属娱乐圈风向标,从这里,解锁无限可能!

一起草网站

http://tools.android-studio.org/index.php/sdk 下载sdk显示设备adb devices连接设备:adb connect IPadb connect 127,

0.

1:7555断开设置:adb disconnect IP adb disconncct

127.

0.

1:7555adb install -r -r 表示保留数据和缓存文件adb install 包名adb uninstall 包名 -k 保留数据启动app adb shell am start 包/activity名 adb shell am start -w 包/activity名停止app adb shell am force-stop apk包adb shell am force-stop com.tpshop.mallsadb shell pm list packages 列出手机上的所有包 加参数-s 列出所有的包 -3 列出第三方应用Windows:adb shell dumpsys window | findstr mCurrentFocus*Mac/Linux:adb shell dumpsys window | grep mCurrentFocus*adb kill-serveradb start-serveradb shell pm clear (apk包名–清缓存adb logcat 查看日志 ,adb logcat kkk.logadb push 电脑文件上传 手机的文件夹adb push aa/b.txt /sdcardadb pull 手机的文件路径 电脑的文件夹路径 ,adb pull /sdcard/b.txt cc/c.txt启动ThisTime:该界面(activity)启动耗时(毫秒)TotalTime:应用自身启动耗时ThisTime应用application 等资源启动时间(毫秒)WaitTime:系统启动应用耗时TotalTinve系统资源启动时间(毫秒)-S:表示每次启动前先强行停止-R:表示重复测试次数adb shell am start -W -S -R3com.myhome/com.myhome.SplashActivity获取内存信息adb shell dumpsys meminfo 包/activity名Native/Dalvik 的 Heap 信息如果发现这个值一直增长,则代表程序可能出现了内存泄漏(Out of memary)。

Total 的 PSS 信息这个值是应用真正占据的内存大小,通过这个信息,可以轻松判别手机中哪些程序占内存比较大查看CPU占用情况各式:adb shell top -s 列号例如adb shell top说明:[-s]按指定行排序参数含义:PID:进程IDUSER:进程所有者用户名PR:优先级NI: nice值VIRT:进程使用的虚拟内存总量RES:进程实际使用内存SHR:共享内存大小S:进程的状态%CPU:进程所占用的CPU百分比%MEM:进程所占用的物理内存百分比TIME:进程使用的CPU时间总和ARGS:程序adb shell 进入命令获取App 进程获取进程pidwin: adb shell ps | findstr com.amallsmac: adb shell ps | grep 包名如:adb shell ps | findstr 包名获取App 流量adb shell cat /proc/{pid}/net/dev 执行显示如下:Wlan0: wifi网卡Receive是接受(下行、Transmit是发送(上行结束:ctrlCexitmonkey 稳定性稳定性测试:通过长时间对应用程序进行无序操作,检验应用程序是否会出现异常。

如闪退crash、无响应ANR等。

Monkey是一个命令行工具,是由安卓官方提供的。

测试人员可以通过Monkey来模拟用户的触摸、点击、滑动以及系统按键等操作(操作事件都是随机的),从而实现对APP压力的测试和稳定性测试。

adb shell monkey -p 包名 -v 次数 d:\日志.txtadb shell monkey -s1000-- throttle300p com. tpshop. malls -v1000D:/monkey

txtsolopi性能测试工具

下载3.0.3每天无限免费大全苹果-下载3.0.3每天无限免费大全苹果应用

百度百家号客服电话人工服务

123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123