简体   繁体   English

跨平台,跨浏览器的Javascript性能分析

[英]Cross-platform, cross-browser Javascript performance profiling

In addition to my recent question on server-side profiling of a PHP app, an app can have a ton of javascript, being all AJAXy in content. 除了我最近关于PHP应用程序的服务器端分析的问题 ,一个应用程序可以拥有大量的javascript,内容中都是AJAXy。

This begs the question of cross-platform, cross-browser javascript profiling tools - do they exist, what ones do people use, and what benefits are there for each one? 这引出了跨平台,跨浏览器的JavaScript分析工具的问题 - 它们是否存在,人们使用什么,以及每个工具有什么好处?

Much appreciated. 非常感激。

你可以在firebug中进行分析,虽然不知道chrome的控制台

Check out HTML 5 Boilerplate . 查看HTML 5 Boilerplate

It includes a Javascript profiler that works for IE6/7 as well. 它包括一个适用于IE6 / 7的Javascript探查器。 Watch the video on further explanation on how to do this. 观看有关如何执行此操作的进一步说明的视频。 There are lots of other neat stuff in there too related to latest web standards/practices. 其中有许多其他整洁的东西也与最新的Web标准/实践相关。

如果您的代码抽象得很好,使用良好的跨浏览器框架和库,并避免在任何可能的情况下使用本机JavaScript,您不必担心有工具来帮助您跨所有不同的浏览器进行测试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM