应该不算性能数据,只是一个耗时,而且准确性有待商榷
cpu {'timestamp': 1657282966612, 'pid': 87211, 'value': 200.91855056704622, 'sys_value': 298.95241550901926, 'count': 6}
use_cpu 和 sys_cpu 分别对应的是 value 和 sys_value 吗
cpu_rate 返回只有 1 点几,2 点几的样子,和实际不符啊
找到问题了,是命令行里面加了代理,注释掉就好了
我
./TraceUtility /Users/liming/instrumentscli0.trace >> TraceResult 2>&1 执行这个命令后没有任何反应,错误码 126,xcode 版本是 11.1,文件为 mac 启动 QQ 保存下的 instruments,是不是 traceutility 这个 git 项目太老了
请问一下 Encountered internal error running command: TypeError: Invalid Version: android-4.4.2 你这个报错修复了吗?遇到了同样的问题
2018-04-17 19:29:47 INFO [AppCrawler$.parseParams.219] Set Platform=Android
2018-04-17 19:29:47 INFO [AppCrawler$.parseParams.234] app path = /Users/liming/Desktop/apk/app-easylive-debug.apk
2018-04-17 19:29:47 INFO [AppCrawler$.parseParams.245] use default appium address 4723
2018-04-17 19:29:47 INFO [AppCrawler$.parseParams.252] appium address = Some(http://127.0.0.1:4723/wd/hub)
2018-04-17 19:29:47 INFO [AppCrawler$.parseParams.264] result directory = Android_20180417192947
2018-04-17 19:29:48 INFO [DataRecord.initLog.30] alread exist
2018-04-17 19:29:48 INFO [DataRecord.append.13] append 1
2018-04-17 19:29:48 INFO [Crawler.start.126] set xpath attribute with List(name, label, value, resource-id, content-desc, index, text)
2018-04-17 19:29:48 INFO [Crawler.start.129] set xpath
2018-04-17 19:29:48 INFO [Crawler.loadPlugins.82] dynamic load plugin in /Users/liming/Downloads/appcrawler%e8%b5%84%e6%ba%90/plugins/
2018-04-17 19:29:50 WARN [Runtimes$.loadPlugins.83] no /Users/liming/Downloads/appcrawler%e8%b5%84%e6%ba%90/plugins/ directory, skip
2018-04-17 19:29:50 INFO [Crawler.loadPlugins.84] found dynamic plugins size 0
2018-04-17 19:29:50 INFO [Crawler.$anonfun$loadPlugins$5.86] com.testerhome.appcrawler.plugin.TagLimitPlugin@79e66b2f
2018-04-17 19:29:50 INFO [Crawler.$anonfun$loadPlugins$5.86] com.testerhome.appcrawler.plugin.ReportPlugin@7544ac86
2018-04-17 19:29:50 INFO [Crawler.$anonfun$loadPlugins$5.86] com.testerhome.appcrawler.plugin.FreeMind@b1534d3
2018-04-17 19:29:50 INFO [TagLimitPlugin.init.17] com.testerhome.appcrawler.plugin.TagLimitPlugin init
2018-04-17 19:29:50 INFO [ReportPlugin.init.17] com.testerhome.appcrawler.plugin.ReportPlugin init
2018-04-17 19:29:50 INFO [FreeMind.init.17] com.testerhome.appcrawler.plugin.FreeMind init
2018-04-17 19:29:50 INFO [ReportPlugin.start.21] reportPath=/Users/liming/Downloads/appcrawler 资源/Android_20180417192947
2018-04-17 19:29:50 INFO [ReportPlugin.start.24] create /Users/liming/Downloads/appcrawler 资源/Android_20180417192947/tmp/ directory
2018-04-17 19:29:50 INFO [Crawler.start.132] prepare setup Appium
2018-04-17 19:29:50 INFO [Crawler.setupAppium.262] use AppiumClient
Exception in thread "main" org.openqa.selenium.WebDriverException: Connection refused (Connection refused)
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'bogon', ip: 'fe80:0:0:0:893:bcc0:8356:6df2%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.3', java.version: '1.8.0_131'
Driver info: driver.version: AndroidDriver
at io.appium.java_client.remote.AppiumCommandExecutor.lambda$2(AppiumCommandExecutor.java:101)
at java.util.Optional.orElseGet(Optional.java:267)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:100)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:586)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:217)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:140)
at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:83)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:93)
at io.appium.java_client.android.AndroidDriver.(AndroidDriver.java:72)
at com.testerhome.appcrawler.driver.AppiumClient.appium(AppiumClient.scala:163)
at com.testerhome.appcrawler.driver.AppiumClient.(AppiumClient.scala:39)
at com.testerhome.appcrawler.Crawler.setupAppium(Crawler.scala:263)
at com.testerhome.appcrawler.Crawler.start(Crawler.scala:133)
at com.testerhome.appcrawler.AppCrawler$.startCrawl(AppCrawler.scala:344)
at com.testerhome.appcrawler.AppCrawler$.parseParams(AppCrawler.scala:312)
at com.testerhome.appcrawler.AppCrawler$.main(AppCrawler.scala:92)
at com.testerhome.appcrawler.AppCrawler.main(AppCrawler.scala)
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:75)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:359)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at org.openqa.selenium.remote.internal.ApacheHttpClient.fallBackExecute(ApacheHttpClient.java:138)
at org.openqa.selenium.remote.internal.ApacheHttpClient.execute(ApacheHttpClient.java:86)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:337)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:136)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:89)
... 18 more
appcrawler-2.1.3 无法运行
我这一般是失败了就得重启,然后再跑
此页面未登录状态在首页无法点击跳过