Category: Data Broker
Addon Information
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Mera's Portal Bug Reports Feature Requests
Author:
Version:
30100.16
Date:
04-27-2009 08:21 AM
Size:
18.30 Kb
Downloads:
12,275
Favorites:
358
MD5:
Pictures
Click to enlarge
BrokerCPU w/ LibQTip + Merah w/ her baby Loque'nahak ;D
Click to enlarge
BrokerCPU w/ LibQTip + Merah w/ Blizzard Bear Mount w/ Toundra travel mammoth All in one Lmao ;D
Broker CPU / Memory / Performance   Popular! (More than 5000 hits)
French support: Pour des questions/commentaires en Français vous pouvez utiliser JeuxOnline ou JudgeHype


A lightweight Data Broker plugin to visualize AddOn CPU/Memory usage, Framerate and Latency.
  • Automatic tooltip actualisation w/ configurable thresholds
  • Can use a simple GameTooltip or advanced LibQTip
  • No required librairies, they are just enhancements
  • Can force to not use a library if it's detected but not needed
  • Designed to be the most performance friendly it can
  • Less resources usage and better readability than PerformanceFu w/ Tablet
  • TekkubcolorGradients, Garbage collect, Detachable tooltip and more...
  • /cpu, /brokercpu or /broker_cpu to show usage

Reminder for beginners with LDB plugins:
Any LDB plugin from this site section doesn't work in standalone, for a minimal use you need at least LibDBIcon OR for an optimal use choose a LDB display plugin, but in the case of BrokerCPU it's recommanded to use a LDB display rather than LibDBIcon if do you want to see short resources usages infos displayed on the screen.

To get optional features you can (none mandatory)
  • Install LibQTip for cpudiff, memorydiff, icons columns & a cleaner tooltip
  • Install LibDBIcon for a minimap icon
  • Install DewdropLib for a quick menu to set options without using command lines
  • The mod also supports AddonLoader

Known LDB displays: (none mandatory if you are using LibDBIcon)
Click here for an updated list

LDB (LibDataBroker) is a neat & lightweight library developed by Tekkub™ allowing developers to build very short or strong codes compatible with all "FuBar" like mods, more infos here.

Note: CPU profiling which is by default to OFF in the Blizzard client should remain OFF when you don't need it, this is much a debugging option rather than a permanent performance meter, enabling CPU profiling could affects gaming performance, but helps a lot benchmarking addons, finding bugs, etc...



















Note that when you run with libraries embedded in your addons, their CPU and memory usage will be reported as belonging to that addon, which is not entirely true if you use other addons that make use of the same libraries. It is preferred to run only standalone libraries (one copy installed like a standard AddOn with the .toc file) so you can show resources used per AddOns and libraries separately.

Some hints to install a standalone library correctly:
  • You just install a standalone library like any other addon in the same Interface\AddOns\ folder
  • The library must have a .toc file and the library folder must have the same name than the .toc file, example with DewdropLib the path should looks like Interface\AddOns\DewdropLib\DewdropLib.toc
  • Then the longuest part is to remove the library you just installed in standalone from every addon you use that could embed it, then you are sure that only the standalone library is called and the consumed resources are correctly belonging to it.
  • Some libraries are NOT to dis-embed, so if do you see the most popular embeds LibDataBroker, AceLibrary, LibStub, CallBackHandler, just leave them embedded, they are not designed to be standalone (If a library does not provide a .toc file it's not designed to be standalone)
  Change Log - Broker CPU / Memory / Performance
Revision: 16
Author: Mera-92869
Date: 14:18:56, lundi 27 avril 2009
Message:
Broker_CPU:
-toc update
-some code cleanup
----
Modified : /trunk/Broker_CPU/Broker_CPU.lua
Modified : /trunk/Broker_CPU/Broker_CPU.toc

Revision: 15
Author: Mera-92869
Date: 9:32:26 PM, Wednesday, March 11, 2009
Message:
Broker_CPU:
-fix: db not properly saved when no savedvariables
----
Modified : /trunk/Broker_CPU/Broker_CPU.lua

Revision: 14
Author: Mera-92869
Date: 9:34:16 PM, Tuesday, March 10, 2009
Message:
Broker_CPU:
-perf: kill again abnormal memory uses, small gain
----
Modified : /trunk/Broker_CPU/Broker_CPU.lua

Revision: 13
Author: Mera-92869
Date: 9:04:34 PM, Monday, March 09, 2009
Message:
Broker_CPU:
-fix: db nil error
-workaround: to new caveat added in LibDBIcon revision 7
-desc: no need to be that nice with them
----
Modified : /trunk/Broker_CPU/Broker_CPU.lua

Revision: 12
Author: Mera-92869
Date: 10:55:18 PM, Sunday, March 08, 2009
Message:
Broker_CPU:
-add: simplified localization system
-add: more options to simplify what is shown in tooltips and ldb texts
----
Modified : /trunk/Broker_CPU/Broker_CPU.lua

Revision: 11
Author: Mera-92869
Date: 9:18:35 PM, Thursday, March 05, 2009
Message:
Broker_CPU:
-add: colors (tekkubs colorgradient wowwiki.com/ColorGradient)
-fix: conflict on apis UpdateAddOn...Usages between tooltip & ldbtext
-perf: simpler check of cpu diff if tooltip threshold <= 2
-perf: significant lower of the memory usage, was creating too much tables and so on garbage
-add: autoresising if tooltips goes outside the screen (for n00bs like yess ;pp)
-fix: less chat flood with some dewdrop options
----
Modified : /trunk/Broker_CPU
Modified : /trunk/Broker_CPU/Broker_CPU.lua
Modified : /trunk/Broker_CPU/Broker_CPU.toc

Revision: 10
Author: Mera-92869
Date: 11:42:40 PM, Thursday, February 26, 2009
Message:
Broker_CPU:
-add: option to force lib detection
-fix: let ldb displays handling GameTooltip scales otherwise too conflicting, scale option now requires QTip
-perf: QTip icons are no more buttons and no more table stored, just SetBackdrop() is enough since cells are Frames & simple OnHide script to set back...
-perf: QTip does not more create more columns than required, so no more fantom cells taking extra cpu usage for nothing helpful.
-perf: QTip does no more recreate each lines to each loops, instead create them only once and just update the cells
-small code cleanups
----
Modified : /trunk/Broker_CPU
Modified : /trunk/Broker_CPU/Broker_CPU.lua

Revision: 9
Author: Mera-92869
Date: 1:09:27 AM, Monday, February 23, 2009
Message:
Broker_CPU:
-memory collection does no more require scriptProfiling
-better recycling of strings & tables
-can detach tooltip
-configurable throttle ldb &/or tooltip text
-configurable scale
-can toggle icons on/off
-can collect latency and framerate
-added AddonLoader support
-all globals are sent to locals for better peformances
----
Modified : /trunk/Broker_CPU/Broker_CPU.lua
Modified : /trunk/Broker_CPU/Broker_CPU.toc

Revision: 8
Author: Mera-92869
Date: 11:35:16 AM, Friday, February 13, 2009
Message:
Broker_CPU:
-option for an easier cpu profiling toggling
----
Modified : /trunk/Broker_CPU/Broker_CPU.lua

Revision: 7
Author: Mera-92869
Date: 1:53:55 AM, Friday, February 13, 2009
Message:
Broker_CPU:
-command lines
-optional DewdropLib support
----
Modified : /trunk/Broker_CPU/Broker_CPU.lua
Modified : /trunk/Broker_CPU/Broker_CPU.toc

Revision: 6
Author: Mera-92869
Date: 3:27:52 PM, Wednesday, February 11, 2009
Message:
Broker_CPU:
-typo
----
Modified : /trunk/Broker_CPU/Broker_CPU.lua

Revision: 5
Author: Mera-92869
Date: 3:20:07 PM, Wednesday, February 11, 2009
Message:
Broker_CPU:
-could now check memory (/script _G.BROKERCPUDB["memory"] = 0) to disable
----
Modified : /trunk/Broker_CPU/Broker_CPU.lua
Modified : /trunk/Broker_CPU/Broker_CPU.toc

Revision: 4
Author: Mera-92869
Date: 8:14:40 PM, Tuesday, February 10, 2009
Message:
Broker_CPU:
-less QTip resizes
----
Modified : /trunk/Broker_CPU
Modified : /trunk/Broker_CPU/Broker_CPU.lua
Modified : /trunk/Broker_CPU/Broker_CPU.toc

Revision: 3
Author: Mera-92869
Date: 2:18:01 PM, Tuesday, February 10, 2009
Message:
-revert some debug test
----
Modified : /trunk/Broker_CPU/Broker_CPU.lua
Modified : /trunk/Broker_CPU/Broker_CPU.toc

r3
some icons

r2
-added ommitted gametooltip secure checks
-fixed nil bug
-removed AceTimer3
  Archived Versions - Broker CPU / Memory / Performance
File Name
Version
Size
Author
Date
30000.15
18kB
Mera
03-11-2009 04:35 PM
  Comments - Broker CPU / Memory / Performance
Post A Reply Comment Options
Old 03-29-2009, 12:18 PM  
SaberHawke
Premium Member
Premium Member

Forum posts: 21
File comments: 61
Uploads: 0
No tooltip with DockingStation

I don't get a tooltip at all with DockingStation.

Also noticed, download says I am downloading r15. Revision in the .toc says it is r11.

Lastly, could you add the option to toggle the memory display to Addon + Blizzard on the LDB display?

Last edited by SaberHawke : 04-04-2009 at 12:51 PM.
SaberHawke is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-23-2009, 03:42 PM  
Mera
A Rage Talon Dragon Guard
 
Mera's Avatar
Interface Author - Click to view interfaces

Forum posts: 314
File comments: 104
Uploads: 7
//out of topic//
got a computer technician job at dynamips, I should repair broken computers, also lots of noob's computers with virus and spywares lol, that's a funny and interesting job there is always something to work on, and so on I will also release less update but I think it runs almost fine now I have just started and in mind a code cleanup, lesser functions and upvalues, I should also cleanup OneCompanion's code which is a bit ugly to read I agree
Mera is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-11-2009, 03:36 PM  
Mera
A Rage Talon Dragon Guard
 
Mera's Avatar
Interface Author - Click to view interfaces

Forum posts: 314
File comments: 104
Uploads: 7
//fixed in revision 15, thanks xska//

I see the prob I didnt checked a condition, if the SavedVariables file isnt created my code doesn't generate the db, I will patch that sorry again I must have deleted my savedvariable file before releasing changes to the db.

yet if yu cant wait you can probably bypass that caveat with /cpu reset

Last edited by Mera : 03-11-2009 at 04:49 PM.
Mera is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-11-2009, 03:14 PM  
xska
A Kobold Labourer

Forum posts: 1
File comments: 10
Uploads: 0
Noticed that if I turn off Memory usage display on LDB, it comes back after reload. Could it be persisted?
xska is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-10-2009, 04:53 PM  
Mera
A Rage Talon Dragon Guard
 
Mera's Avatar
Interface Author - Click to view interfaces

Forum posts: 314
File comments: 104
Uploads: 7
Yes I know this bug is already fixed since r13, thanks for reporting it.
Mera is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-10-2009, 04:44 PM  
slickwalker
A Deviate Faerie Dragon

Forum posts: 16
File comments: 120
Uploads: 0
Quote:
Originally posted by Mera
could you show me the content of your file

WTF\Account\<Your Account>\SavedVariables\Broker_CPU.lua
Surely, only one line.


BROKERCPUDB = nil

The only thing i get on DockingStation is the icon, with a '-' next to it. No other display or tooltip.
slickwalker is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-10-2009, 10:03 AM  
vandyn
A Kobold Labourer
 
vandyn's Avatar

Forum posts: 0
File comments: 11
Uploads: 1
Quote:
Originally posted by jadakren
This isnt a fubar addon, and if you use an LDB presentor (like dockingstation or buttonbin) you will notice two maybe three(if you use sharedMedia too) things.

first is that each LDB plugin provides an icon, a label and a value. these three things can be toggled & modified in the presentors config ui.

second thing is that presentors will be using far less cpu cycles & memory than fubar...

third thing is that if you are using sharedMedia & aharedMediaAdditionalFonts then you will notice that you can choose more fonts and textures.
You do know you can add most things to Fubar with broker2Fubar right? My question was to only show the FPS and latency value in the bar (whether that be fubar, fortress, etc) but still show memory usage in the tooltip.

I use Fubar because frankly there are certain Fubar only addons that don't have a good broker equivelent that I like (moneyFu, portalFu, etc). I am trying to eventually phase out the Fubar stuff when I find something that offers the same functionality as what I originally had. This addon recently replaced PerformanceFu, which up until now had no broker equivelent that did the same things as that did.

I am also using SharedMediaLib. See my interface Vandyn UI.

Last edited by vandyn : 03-10-2009 at 10:05 AM.
vandyn is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-10-2009, 09:01 AM  
Mera
A Rage Talon Dragon Guard
 
Mera's Avatar
Interface Author - Click to view interfaces

Forum posts: 314
File comments: 104
Uploads: 7
just to bump that suggestion I'm tempted to add it but I won't use it
because I play alone yet and don't need it but maybe a few others than
HereNow need that too so feel free to comment on HereNow's suggestion
so I could have an idea if it is really worse adding

Quote:
Originally posted by HereNow
Is there anyplace I can get some information on addon usage of resources? Like a comparative listing of how addons perform in a raid setting. Specifically cpu, memory, and bandwidth. (addon channel)

Like I know I can do my own testing in a raid with this addon, and definitely will, but I wanted to read up more on what others have found to help me see how much resources the addons I have use, and how others compare.

Thanks.
Mera is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-09-2009, 03:43 PM  
neo-data
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Quote:
Originally posted by Mera
investigating that bug, difficult because I couldnt trigger it yet here but I think I see what is wrong

if someone having this error could test to delete that line

local BROKERCPUDB = _G.BROKERCPUDB

and let me now if that is better

works fine for me thx
neo-data is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-09-2009, 03:34 PM  
Mera
A Rage Talon Dragon Guard
 
Mera's Avatar
Interface Author - Click to view interfaces

Forum posts: 314
File comments: 104
Uploads: 7
investigating that bug, difficult because I couldnt trigger it yet here but I think I see what is wrong

if someone having this error could test to delete that line

local BROKERCPUDB = _G.BROKERCPUDB

and let me now if that is better
Mera is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-09-2009, 03:05 PM  
neo-data
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
[2009/03/09 19:54:58-5376-x1]: Broker_CPU-30000.$Revision: 11 $\Broker_CPU.lua:651: attempt to index upvalue 'db' (a nil value)
Broker_CPU-30000.$Revision: 11 $\Broker_CPU.lua:1120: in function <Interface\AddOns\Broker_CPU\Broker_CPU.lua:1097>

---

same for me

this ist the line

if scriptProfile or db.memory_ldb or db.latency_ldb or db.framerate_ldb then

or what do you mean?
neo-data is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-09-2009, 02:25 PM  
Mera
A Rage Talon Dragon Guard
 
Mera's Avatar
Interface Author - Click to view interfaces

Forum posts: 314
File comments: 104
Uploads: 7
Quote:
Originally posted by slickwalker
[2009/03/09 12:23:26-52-x1]: Broker_CPU-30000.$Revision: 11 $\Broker_CPU.lua:651: attempt to index upvalue 'db' (a nil value)
Broker_CPU-30000.$Revision: 11 $\Broker_CPU.lua:1120: in function <Interface\AddOns\Broker_CPU\Broker_CPU.lua:1097>
<in C code>: in function `LoadAddOn'
could you show me the content of your file

WTF\Account\<Your Account>\SavedVariables\Broker_CPU.lua
Mera is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-09-2009, 12:30 PM  
slickwalker
A Deviate Faerie Dragon

Forum posts: 16
File comments: 120
Uploads: 0
Bugsack error

[2009/03/09 12:23:26-52-x1]: Broker_CPU-30000.$Revision: 11 $\Broker_CPU.lua:651: attempt to index upvalue 'db' (a nil value)
Broker_CPU-30000.$Revision: 11 $\Broker_CPU.lua:1120: in function <Interface\AddOns\Broker_CPU\Broker_CPU.lua:1097>
<in C code>: in function `LoadAddOn'
slickwalker is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-09-2009, 10:06 AM  
jadakren
A Warpwood Thunder Caller
 
jadakren's Avatar
Interface Author - Click to view interfaces

Forum posts: 99
File comments: 112
Uploads: 2
Quote:
Originally posted by vandyn
I got this the other day and I really like it, great job. One question I have though is there a way to monitor memory usage but not have that number show in the bar (fubar, etc)? I'm trying to get it to be like PerformanceFu where the addon only shows FPS and latency in the display bar, but the tooltip shows memory usage (and fps and latency).
This isnt a fubar addon, and if you use an LDB presentor (like dockingstation or buttonbin) you will notice two maybe three(if you use sharedMedia too) things.

first is that each LDB plugin provides an icon, a label and a value. these three things can be toggled & modified in the presentors config ui.

second thing is that presentors will be using far less cpu cycles & memory than fubar...

third thing is that if you are using sharedMedia & aharedMediaAdditionalFonts then you will notice that you can choose more fonts and textures.
jadakren is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-09-2009, 08:32 AM  
Mera
A Rage Talon Dragon Guard
 
Mera's Avatar
Interface Author - Click to view interfaces

Forum posts: 314
File comments: 104
Uploads: 7
no prob Zas, else I have comitted a few changes some users have
requested however you will notice it is impossible to show/hide cpu
access times, this is intended as a security prevention to not forget
to disable the CPU profiling when not needed, I find this method better
than spawning a boring notification warning window telling that the
profiling is still enable.
Mera is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.