PureMVC Architects Lounge

Announcements and General Discussion => Getting Started => Topic started by: hesten on August 19, 2009, 04:39:29



Title: Number of mediators registred?
Post by: hesten on August 19, 2009, 04:39:29
Hi All

I am doing an app that constantly registers mediators and throws them away again, and for debugging I would like to see if the total number of mediators registred increase (which they shouldn't in my app).

Is there a way of asking the facade how many mediators are currently registred?

I'm sorry if this is a documented feature I've overlooked.

Regards


Title: Re: Number of mediators registred?
Post by: puremvc on August 20, 2009, 07:39:59
There's no built in feature for this. But if you're using Flex Builder (or heh 'Flash Builder 4' pfft), you can just run the profiler, it shows you for every class how many have been created in aggregate as well as how many exist at the moment.

-=Cliff>


Title: Re: Number of mediators registred?
Post by: hesten on August 20, 2009, 10:29:39
Ok, unfortunately I'm using the Flash CS4 IDE for compiling (and FlashDevelop for coding). But thanks for the reply :)


Title: Re: Number of mediators registred?
Post by: puremvc on August 20, 2009, 04:00:34
Have a look at the KapLabs PureMVC Console. That might help...

-=Cliff>


Title: Re: Number of mediators registred?
Post by: uncleunvoid on October 23, 2009, 06:43:37
i am working on a big framework and will see to build a tracker of sorts, mainly for debugging reasons as my apps will have to run for 9 hrs straight with lots of restarts so the system needs to stay very clean.

as far as I understand, there is no need to keep track of registered mediators, as puremvc tries to stay as loosely coupled as possible.

But then again , i been into this only for a week.

Why dont you build yourself a proxy that registers mediator names in a list.

might need to extend the facade a bit for this.