Profile 介绍
Profiles calls to jQuery(selector), so that you can see which calls to
jQuery are taking time.
This plugin is meant to complement tools such as the Firebug profiler, which
profile all the function calls in your script, but don’t (at present) allow
you to drill down into the different arguments to a single call.
Call $.profile.start() to start profiling calls to $(selector), and then
$.profile.done() to stop profiling and print out something like this:
`Selector Count Total Avg+/-stddev
script, script, scri… 100 101ms 1.01ms+/-1.01
script 200 58ms 0.29ms+/-0.53
html body #output 100 55ms 0.55ms+/-0.74
script, #output 100 54ms 0.54ms+/-0.73
output 100 6ms 0.06ms+/-0.24`
You can also include the ?jquery.profile.start query parameter in your page
URL to begin profiling automatically as soon as the plugin is loaded.
Profile 官网
http://plugins.jquery.com/project/profile
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。