Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8543017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:12:16+00:00 2026-06-11T12:12:16+00:00

I am working on a relatively large ExtJS MVC application with around >40 Controllers,

  • 0

I am working on a relatively large ExtJS MVC application with around >40 Controllers, >100 Stores, >100 Models and so on. I don’t follow the possible MVC way strict so I implemented a lazy controller initialization which initialize the controller first when it is required and so the stores. I also don’t register any view within any controller, but that simply cause I don’t need to.

Now it comes that forms (opened within a Ext.window.Window) take around 1-2 second until they shown up while the same form within a rather small project pops up immediately.
So the form (layout) can not be the problem here what brought me to the events. But I don’t really know how would be the best way or is there already a good tutorial how to do this. I guess it would be nice to profile this, to see how long the whole pipe takes (not only the EventPipe itself).

Event structure:

Most of the events get registered via control() of the responsible controller. All other events are at most registered with { single: true }. The windows get closed and reinstantiated when reused.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:12:17+00:00Added an answer on June 11, 2026 at 12:12 pm

    I’m afraid but ExtJS doesn’t provide any event profiling. It use custom event system.

    Here is how I see the solution of this issue.

    There are Ext.util.Event class that provides functionality to dispatching and handling any event used in the framework and Ext.app.EventBus that provide single point to dispatch all framework events (fireEvent is just wrapper for Ext.app.EventBus.dispatch method).

    Classes are private so I recommend to see its source code.

    You can override these classes to see how much it takes from calling Ext.app.EventBus.dispatch method and calling event listener within Ext.util.Event.fire method smth like that (EventProfiler is supposed to be your own class)

    Ext.app.EventBus

    dispatch: function (/* event name or Ext.util.Event */event, /* Target class */ target, args) {
        //start timing
        var start = new Date();
    
        /* ... */
    
        for (i = 0, ln = events.length; i < ln; i++) {
            event = events[i];
            // Fire the event!
            if (event.fire.apply(event, Array.prototype.slice.call(args, 1)) === false) {
                return false;
            }
            // start event profiling
            // here we are sure that event is dispatched and it's instance of Ext.util.Event
            EventProfiler.startProfile(event, /* time passed from dispath method started */new Date() - start);
        }
    
        /* rest of dispatch method call */
    }
    

    Ext.util.Event

    fire: function () {
        /* ... */
        if (listener.o) {
            args.push(listener.o);
        }
    
        EventProfiler.endProfile(this);
    
        if (listener && listener.fireFn.apply(listener.scope || me.observable, args) === false) {
            return (me.firing = false);
        }
    
        /* ... */       
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First some background, I am currently working on a relatively large Asp.Net MVC application
I'm currently working on a relatively large MVC project I would like to organize
I have developed a PHP application that processes relatively large text files, and stores
I am currently working on a large project and will relatively soon need a
I'm relatively new to working with XML and am working with some rather large
I'm working on a project involving enlisting a large number of relatively unskilled workers
I'm currently working on a (relatively) basic web application that functions as a time
Working with a relatively large data set I have a situation where I need
I'm working with a relatively large SQL Server 2000 DB at the moment. It's
So I've been working on a relatively large project by myself, and I've come

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.