移动设备上的 Javascript 分析

发布于 2024-12-29 07:37:50 字数 152 浏览 1 评论 0原文

我正在寻找允许在移动设备上执行网站分析的工具,类似于 Firebug 和 Chrome 开发工具允许执行的操作。

我已经相当广泛地使用了 Weinre。虽然它是一个用于真实设备的出色工具,但它不提供运行时分析工具。

有人听说过或使用过任何允许这样做的工具吗?

I am looking for tools that allow to perform profiling of websites on mobile devices similar to what Firebug and Chrome dev tools allow to do.

I have used Weinre quite extensive. While it is an awesome tool to use with real devices, it does not provide facilities for run-time profiling.

Has anyone heard or used any tools that allow to do so?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

半世晨晓 2025-01-05 07:37:53

对于 Mac 上的 iOS 调试,您可以使用桌面 Safari:

  • 使用 USB 线连接您的设备
  • 在设备上启动应用程序
  • 在计算机上启动 Safari
  • 转到“开发”->“ 设备名称 -> file_name.html

(如果开发菜单不适合您,则转到编辑菜单>首选项...> ;高级选项卡并选中在菜单栏中显示开发菜单复选框)

它会启动标准的 Safari Web 检查器,它与 Chrome 开发人员工具非常相似,尽管有些限制与它相比。

For iOS debugging on Mac, you can use desktop Safari:

  • connect your device with a USB cable
  • start the app on the device
  • launch Safari on your computer
  • go to Develop -> device_name -> file_name.html

(if the Develop menu is not available for you, then go to Edit menu > Preferences... > Advanced tab and check Show Develop menu in menu bar checkbox)

It launches standard Safari web inspector, which is pretty similar to Chrome Developer Tools, although somewhat limited compared to it.

哀由 2025-01-05 07:37:52

以下是 Steve Sauders(《高性能网站》一书的作者)提供的移动性能测试工具的精彩列表:

来源:http://stevesouders.com/mobileperf/

更新:

您可以在 Android 设备上使用 Chrome Devtools,也可以在 Mac 上使用 iOS 设备使用 Safari Devtools。

Chrome:https://developer.chrome.com/devtools/docs/remote-debugging

Safari:https://blog.idrsolutions.com/2015/02/remote-debugging-ios-safari-on-os-x-windows-and-linux/

您通过 USB 连接

Here is a great list of mobile performance testing tools from Steve Sauders (the guy that wrote the book "High Performance Web Sites"):

  • Mobile Perf bookmarklet - An uber bookmarklet with links to multiple other bookmarklets useful for mobile (mine)
  • Jdrop - JSON in the cloud for gathering data on mobile devices (mine)
  • Mobitest - Connects WebPagetest.org to Android and iPhone devices (Blaze.io)
  • pcapperf - Get HTTP waterfall charts from your mobile device connected to a wifi hotspot, blog post (open source)
  • WebWait - The only way I can think of to measure page load times on real devices over 3G - load URL in an iframe (Michael Mahemoff)
  • weinre - Web Inspector Remote, very cool way to debug your mobile device remotely (Patrick Mueller)
  • Reflow Timer - Bookmarklet to measure reflow time (Lindsey Simon, open source)
  • Favelet Suite - An uber bookmarklet, tons of features! (slayeroffice)

Source: http://stevesouders.com/mobileperf/

UPDATE:

You can use Chrome Devtools with an Android device and you can use Safari Devtools on a Mac with an iOS device.

Chrome: https://developer.chrome.com/devtools/docs/remote-debugging

Safari: https://blog.idrsolutions.com/2015/02/remote-debugging-ios-safari-on-os-x-windows-and-linux/

You connect via USB

绿萝 2025-01-05 07:37:52

您可以使用桌面 Chrome 开发者工具界面来分析/调试/检查 Android 上的 Chrome:

https ://developers.google.com/chrome/mobile/docs/debugging

它需要 Chrome、能够运行 Chrome 应用的 Android 设备以及 USB 数据线。

设置起来有点烦人,因为您必须安装并使用 ADB 控制台命令,但一旦它工作,您将拥有可用于调试移动设备的完整 chrome 开发人员工具界面。

此外,Google 似乎正在为新的开发工具 Crhome 扩展(例如 PageSpeed)支持此功能。

You can profile/debug/inspect Chrome-on-Android using the desktop Chrome developer tools interface:

https://developers.google.com/chrome/mobile/docs/debugging

It'll require Chrome, an Android device able to run the Chrome app, and a USB cable.

Its a bit annoying to setup, because you have to install and use the ADB console command, but once its working, you'll have the full chrome developer tools interface available for debugging mobile.

Additionally, Google appears to be supporting this feature for new dev-tool Crhome extensions like PageSpeed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文