Profile mobile Safari (iPad) javascript?

后端 未结 2 1441
生来不讨喜
生来不讨喜 2021-01-17 13:03

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 tak

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-17 13:58

    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 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.

    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

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

    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.

提交回复
热议问题