Slouken: What dictates the "current" addon?
by Ckknight | 20/04/2007 12:13:41

I've been struggling with this for quite a while now, and it has led me into more confusion than I had been in before.
What dictates what is the "current" addon? i.e. the one that 2.1 says causes the CPU usage and memory gain.
do __bad__ = true local _,n = issecurevariable("__bad__") DEFAULT_CHAT_FRAME:AddMessage(n ) __bad__ = nil end
That's what I've used to figure out the current addon, and seeing as I've been handling most of the Ace2 addon framework, it has been trouble to no end to shift the blame off of Ace2 and onto the respective addons.
Can any light be shed on this subject? FuBar author, Cartographer author, Ace2 developer (Find em at wowace.com or wowinterface.com)
Show your appreciation by donating to my paypal: ckknight at gmail dot com |
by Slouken | 20/04/2007 12:38:51

Q u o t e:
What dictates what is the "current" addon? i.e. the one that 2.1 says causes the CPU usage and memory gain.
do __bad__ = true local _,n = issecurevariable("__bad__") DEFAULT_CHAT_FRAME:AddMessage(n ) __bad__ = nil end
In this case, it's the addon that loaded the do ... end block that is billed for the CPU time in that code block. |
by Slouken | 20/04/2007 12:46:07

It should be. Can you put together a simple test case?
BTW, CPU usage is tracked on the actual closure being executed. Memory usage is tracked based on the current taint, so they'll be slightly different. |
by Slouken | 20/04/2007 21:33:14

Whichever AddOn defined the current function that's executing is the one that will be billed for CPU usage. I don't think there's currently a way to query that though. |
Hot: Grab one of our RSS feeds to stay updated with what's happening with your class!