【文件属性】:
文件名称:android-performance:使用 adb 将 Node.js 包装到 android 性能
文件大小:6KB
文件格式:ZIP
更新时间:2021-07-24 00:40:07
android performance JavaScript
android-性能
使用 adb 将 Node.js 包装到 android 性能
分期付款
$ npm i android-performance --save-dev
用法
const perf = new AndroidPerformance ( ) ;
const p1 = new Promise ( ( resolve , reject ) => {
perf
. initDevice ( )
. then ( ( ) => perf . getMeminfoByPackageName ( pkgName ) )
. then ( res => {
resolve ( {
item : 'Meminfo' ,
data : res
} ) ;
} ) ;
} ) ;
const p2
【文件预览】:
android-performance-master
----.jshintrc(528B)
----.jshintignore(23B)
----lib()
--------android-performance.js(6KB)
--------helper.js(121B)
----.travis.yml(891B)
----test()
--------android-performance.test.js(4KB)
--------mocha.opts(32B)
----README.md(4KB)
----.gitignore(44B)
----index.js(70B)
----package.json(844B)