--enable-precise-memory-info无法在移动Chrome上运行

问题描述 投票:1回答:2

在下面:

 chrome://flags

我没找到

--enable-precise-memory-info

试图运行:

ChromeOptions options = new ChromeOptions();
options.AddArguments("--enable-precise-memory-info");

也没有成功,价值观四舍五入。

它甚至可能吗?

如果您需要有关此问题的更多详细信息,请告诉我们

注意:它不仅仅是桌面,移动浏览器浏览!

appium selenium-chromedriver performance-testing mobile-chrome
2个回答
0
投票

这样做的一种方法是使用adb

adb -s $deviceId shell am start -n com.android.chrome/com.google.android.apps.chrome.Main argv --args='--enable-precise-memory-info'

获取设备ID:

adb devices

但是它不会为下一个会话保存标志,如果你试图用SeleniumWebDriver打开它可能应该通过添加DesiredCapabilities来完成ChromeOptions ...但它仍然是一个问题如何做到这一点


0
投票

目前是Appium 1.7.1问题。

在这里按照修复进度:https://github.com/appium/appium/issues/9838

© www.soinside.com 2019 - 2024. All rights reserved.