如何强制Chrome DevTools审核使用桌面(全屏)仿真?

时间:2018-12-16 07:37:16

标签: google-chrome google-chrome-devtools pagespeed lighthouse

我想对以下网站进行性能审核:台式机,不限制网络,不限制CPU。

我正在使用Google Chrome浏览器的DevTools的“审核”标签,然后选择以下选项:

  • 设备:台式机
  • 审计:绩效
  • 节流:不节流
  • 清除存储空间(选中)

我的Chrome版本:

Google Chrome is up to date
Version 71.0.3578.98 (Official Build) (64-bit)

根据“审核”标签,我在Chrome中的Lighthouse版本为3.2.0

单击Run audits按钮后,将生成报告,该报告包含以下运行时设置

URL: https://example.com/
Fetch time: Dec 15, 2018, 11:18 PM PST
Device: Emulated Nexus 5X
Network throttling: 150 ms TCP RTT, 1,638.4 Kbps throughput (Simulated)
CPU throttling: 4x slowdown (Simulated)
User agent (host): Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
User agent (network): Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5 Build/MRA58N) AppleWebKit/537.36(KHTML, like Gecko) Chrome/71.0.3559.0 Mobile Safari/537.36
CPU/Memory Power: 998

那我该如何强制使用我的设置,以便我可以正确地审核台式机?

编辑:已在上游验证为Chrome错误:

https://bugs.chromium.org/p/chromium/issues/detail?id=914387

1 个答案:

答案 0 :(得分:0)

这似乎是Google Chrome浏览器的错误,请参见下面的引号和参考:

We've found the culprit, but it'll require a Chrome-side fix.

Note that it's not just Mobile/Desktop, but the throttling settings and clear storage options are also being ignored at the moment which would explain all of the performance score differences.
-- patrickhulce, paulirish

参考:https://github.com/GoogleChrome/lighthouse/issues/6772#issuecomment-446626154

上游错误:https://bugs.chromium.org/p/chromium/issues/detail?id=914387

Verified the fix on Mac 10.12.6, Windows-10 & Ubuntu 17.10 on Chrome version #73.0.3640.0 as per the comment#0

批准用于Chrome M72分支机构3626