Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Number of mediators registred?  (Read 6931 times)
hesten
Sr. Member
****
Posts: 52


View Profile Email
« 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
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 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>
Logged
hesten
Sr. Member
****
Posts: 52


View Profile Email
« Reply #2 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 :)
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #3 on: August 20, 2009, 04:00:34 »

Have a look at the KapLabs PureMVC Console. That might help...

-=Cliff>
Logged
uncleunvoid
Full Member
***
Posts: 27


View Profile Email
« Reply #4 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.

 
Logged
Pages: [1]
Print