个人资料手机Safari(iPad)javascript? [英] Profile mobile Safari (iPad) javascript?

查看:83
本文介绍了个人资料手机Safari(iPad)javascript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

移动版Safari(iPad)上的Javascript性能对我的桌面应用程序更加敏感。一些在桌面上运行超顺畅的操作需要一段时间在iPad上,我想追踪瓶颈所在。有没有办法在iPad上分析Javascript代码?

Javascript performance on mobile Safari (iPad) is much more sensitive for my application that it is on the desktop. Some operations that work super-smooth on the desktop take a while on the iPad, and I'd like to track down where the bottlenecks are. Is there some way to profile Javascript code on the iPad?

推荐答案

如果您有权访问Android手机,可以查看应用程序使用桌面Chrome的开发人员工具和USB线(非常方便)。

If you have access to an Android phone, you can profile your application using desktop Chrome's developer tools and a USB cable (very convenient).

Android和iPhone的行为+表现相似,但不完全相同。也就是说,对于90%的用例,如果你在Android上提高性能,你会在iPhone上看到相同的改进。

Android and iPhone behave+perform similarly, but not identically. That said, for 90% of use cases, if you improve performance on Android, you'll see the same improvements on iPhone.

小时,至少对于第一次分析,我认为使用chrome + android配置文件比使用不太丰富的工具集在iPhone上获得更好的结果。

Hour for hour, at least for the first pass of profiling, I think you'll get better results on iPhone using chrome+android to profile than using a less rich toolset.

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

它需要Chrome,能够运行Android Chrome应用的Android设备和USB线。

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

你必须安装和使用ADB控制台命令,但一旦工作,您将拥有可用于调试移动设备的完整chrome开发人员工具界面。

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.

这篇关于个人资料手机Safari(iPad)javascript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆