分析 Javascript 语句计数
我最近在 IE 中遇到了长时间运行的脚本错误,但在其他浏览器中没有遇到这种情况。在进一步调查中,我了解到 IE 将长时间运行的脚本定义为执行超过 5,000,000 条语句的脚本,而所有其他浏览器都基于执行时间。在查看我能找到的所有分析器(例如 Firebug)时,它们提供了大量有关内存使用情况、执行时间、函数调用数量的信息,但没有提供有关执行的语句数量的信息。
有谁知道分析器可以帮助我识别执行的语句数量(最好按函数调用分组)?
I recently ran into a long-running script error in IE but no other browsers. In investigatng further, I learned that IE defines a long-running script as one that executes more than 5,000,000 statements while all other browsers based in on execution time. In looking at all of the profilers I could find such as Firebug, they give a lot of information about memory usage, execution time, number of function calls but nothing about the number of statements executed.
Does anyone know of a profiler that can help me identify the number of statements executed (ideally grouped by function call)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
dynaTrace AJAX Edition 是一个优秀工具(专门分析 IE) ,并且可以免费启动。
您可以调试/分析 JavaScript、请求、CPU 使用情况,查看所有处理时间都花在哪里、哪些方法被调用了多少次等。 开始使用此处的教程。
dynaTrace AJAX Edition is an excellent tool for this (profiling IE specifically), and it's free to boot.
You can debug/profile JavaScript, requests, CPU usage, see where you're spending all your processing time, which methods are called how many times, etc. Get started with the tutorials here.