一臺電腦控制多臺手機進行DDR壓力測試
阿新 • • 發佈:2018-12-13
原創文章,轉載請註明出處和作者
出自:http://blog.csdn.net/xl19862005
作者:Xandy
使用如下bat批處理可以用一臺電腦控制多臺手機進行DDR壓力測試
其中stressapptest為google開發的壓力測試工具,可以到google官網獲取@echo off set testTimeInsecond=1800 set mbytes=512 set threads=8 @echo off echo 等待裝置連線…… :NOCONNECTED @echo off adb devices | findstr "\<device>\" > NULL IF ERRORLEVEL 1 goto NOCONNECTED setlocal enabledelayedexpansion set devices= for /f "tokens=1,3,5,7,9,11,13,15,17 skip=1" %%t in ('adb devices') do ( set "devices=!devices! %%t" ) for %%d in (%devices%) DO adb -s %%d root for %%d in (%devices%) DO start adb -s %%d shell stressapptest -s %testTimeInSecond% -M %mbytes% -m %threads% -W -l /sdcard/memtest.log pause