资 源 简 介
Prototype Profiler
Overview
Prototype Profiler (pro2js) is a utility that can be used to detect poorly performing JavaScript code. In contrast to other profilers, pro2js supports all commonly used browsers (including IE6). It allows you to work with test results easily and performance is excellent.
Features:
Prototype profiler is a "monkey patch" for the prototype library. It does not require modifications of the prototype code and it can be easily disabled (for example, in different environments).
Prototype profiler logs all DOM–selectors and classifies them by selector type (for example: p#id7 ~ p -> element#id~element). Therefore, you can easily detect expensive DOM–selectors and avoid executing similar selectors multiple times.
Prototype profiler will log the number of results returned by each of the selectors. This allows a user to find useles