PDA

View Full Version : Object instantiation tracer (app optimization)



TheHut
11 Dec 2014, 8:36 AM
Hi,

I'm working on a web application using ExtJS 4.2.1. The application launch is really slow, because there are (too) many elements to load. I would like to make a trace of all ExtJS object created, in order to make a "map" of each instantiation and try to optimize my application afterwards.

I was thinking about modifying the Ext-all-debug.js file. Is there a method called before each object instantiation ? I would like to modify it.

Thanks :)

Sorry for my english ; )

lumberjack
15 Dec 2014, 9:32 AM
Any modifications to Ext source files should be avoided.

Each component that extends from Ext.Component will have a boxready event that is fired once, after the component has been laid out for the first time. You could put in an override to add a listener for this event any time a component is generated.

Regards,
Brian