Profiler is a good tool to identify or measure each method call in the qooxdoo classes.
The profiler measures the time taken to execute a method and the total call count of the method. The qooxdoo framework provides this profiler by default and we need to enable this option, if required.
Enabling this profiling feature is very simple. As its implementation is based on the aspects
, the developer should set the qx.aspects
to on
and include qx.dev.Profile
in the first class in the include
list, either by using the #use
directive on the application or by including in the let include
property. We have set the following line in the Application.js:
#use(qx.dev.Profile)
qx.dev.Profile
is a static class and provides all the methods for profiling at a particular duration of time. As this has been implemented purely in the JavaScript, this profiler supports all the different browsers and it is a cross-browser tool. The different methods that are available and help in profiling are as follows...