Download
(16Kb)
Download
Updated: 08-16-18 01:52 PM
Pictures
File Info
Compatibility:
Battle for Azeroth (8.0.1)
Updated:08-16-18 01:52 PM
Created:03-01-10 09:14 PM
Downloads:43,152
Favorites:427
MD5:
Categories:Data Broker, Other, ToolTip, Plug-Ins & Patches

shPerformance (mem/fps/ms)  Popular! (More than 5000 hits)

Version: 8.0
by: shUI [More]

shPerformance
An extremely light-weight and beautiful data broker addon that monitors system information and works right out of the box!

NOTE: I will not be updating or maintaining my secondary patch addon shMem. If you are interested in updating/maintaining it, send me a message.

Why use this addon instead of some of the other famous system monitors? Simple: elegance, ease of use, and efficiency. Other addons similar to shPerformance are extremely "busy" and highly inefficient when it comes to coding.

IMPORTANT: You must have a data broker display addon in order to enable this addon. I recommend Docking Station or you can find a list of other LDB display addons here. Changing the fonts of the tooltips is handled via a tooltip addon. I highly recommend using TipTac.

This addon displays and has the following options:

  • Frames per second (fps)
  • Latency (ms) (both HOME/local and WORLD ms)
  • Addon memory usage (mb or kb)
  • Option that allows sorting in two different ways: alphabetically or by descending memory usage
  • Option to change update period (seconds) and/or memory threshold (kb)
  • Option to change color gradient variable (for higher usage systems) and number of max addons displayed
I was completely baffled when I saw some coding of other author's data broker addons that displayed this information. My goals in creating this addon are:
  • Make the code as efficient as possible and to maintain < 30kb of memory usage
  • Be visually appealing and easy to read
  • Be updated in real time via the tooltip AND data broker text
  • Display relevant data that is important (NO FLUFF or Techno Babble)
  • Allow user to decide on sorting methods, memory threshold, and updating time
**For more technical information, details, and how to change settings please see LUA file within addon folder labeled shPerformance.lua or shMem.lua

Disclaimer: I want to thank Tekkub for his fantastic addon: picoFPS for inspiration and some code ideas, kudos!

Bug Reports and/or Requests:
All bug reports, requests (with this addon or another), errors, suggestions, and problems will be handled via the forum-comments page.

If you liked this mod, please check out my other addons:
shClock: Data Broker simple clock
shNameplates: Lightweight, simple, and sexy nameplates

Click here to lend your support!

8.0
-Updated TOC file for BFA
-----------------------
6.2
-Updated TOC file and cleaned up some code
-----------------------
6.1
- Fixed latency to show WORLD latency
- Code clean up for deprecated items
-----------------------
6.0
- Code clean up of deprecated items and some basic spring cleaning
- Updated toc for legion
- Updated some global calls to Blizzard API regarding addons
- Fixed up tooltip to clean up colors and information
- Added config option to show both FPS and Latency in broker text as well as in tooltip
-----------------------
r5.1
- Code clean up of deprecated items
- Fixed OnUpdate/OnEnter event handlers to properly render tooltip in right place
-----------------------
r5.0
- Updated minor issue with getting addon list and putting into table to manipulate
- TOC Bump
-----------------------
r4.1
- TOC Bump
-----------------------
r4.0
- ToC bump: got it right this time and set to 50001
- Optimized code with a few new tricks!
------------------------
r3.0
- ToC bump -> 5.0
- Should be working fine for MoP
------------------------
r2.6b
- ToC bump -> 4.3
-------------------------
r2.6a
- ToC bump
-------------------------
r2.6
- TOC update to 4.1
- Minor improvement in OnUpdate function
--------------------------
r2.5
- More optimizations to code, specifically removed the redundant IsAddOnLoaded() function call
- ADDED: Local/Home ms to latency tooltip
- Changed how the latency LDB text was display to show XXms/XX(w) ms instead of the stupid hyphen
--------------------------
r2.4
- Big code clean up and localized a lot of code
- You gotta ask yourself in LUA, are you local ;) -> Thanks Treeston
---------------------------
r2.3
- Changed the latency db text to make it look better and clearly decipher between world and local ms
---------------------------
r2.2
- Cleaned up some code and reduced the coloring of unimportant tooltip items
- ADDED: latency for both HOME and WORLD server ms to show in real time on databroker
----------------------------
r2.1
- Cleaned up unused functions
- REMOVED formatMem2 function and integrated it into formatMem
-----------------------------
r2.0
- Cleaned up coding and added shMem LDB as a separate module
- ADDED code to see if shMem is loaded and if it is loaded, to only show memory detailed tooltip over shMem LDB instead of shPerformance LDB (MUST have both addons installed - as separate addon folders)
------------------------------
r1.1
- Small update to ToC file and removed the ##Version attribute
- Fixed up some function names so I can work on big update...
------------------------------
r1 - new updating system (newer than v8.1)
- REMOVED the shMem data broker completely (again, sigh I know). But it will run better this way with a lot less lag. If you really want to see your memory usage, just hover over and see the tooltip.
- ADDED line at bottom of tooltip to show how many addons are "hidden" (not above the memory threshold) and what the total amount of memory used for those addons.
- Optimized some more code
-------------------------------
v8.1
- ADDED the shMem broker back
- After lots of hours trying to find a work around for the jittering/fps decrease, I have figured out a way to decrease it by a lot. NOTE: for having an addon like this calls the UpdateAddOnMemoryUsage() function a lot, it's natural to have some cpu/memory usage. I minimized that by making the broker update slower than if you were hovered over it.
- Optimized lots of code with major rewrites
--------------------------------
v8.0
- MAJOR update: overhauled OnUpdate methods for LDB's (this was causing too many performance issues and jittering on lots of computers)
- REMOVED memory LDB and added all pertaining information to ONLY display on FPS broker
- Optimized some more code to fit the changes
- REMOVED "wantOnClickUpdating", thought the addon was getting too "busy" with too many options. Now the tooltip will ALWAYS update in real time and onclick. However, OnUpdate now doesn't call the UpdateAddOnMemoryUsage() and iterates over a table (saving a lot of CPU cycles). This will only happen by hovering over the LDB
- REMOVED option to show TOTAL UI memory in LDB (see above)
----------------------------------
v6.9
- Fixed minor error when using the coloring option and cleaned up initial addon table
-----------------------------------
v6.8
- Fixed color scheme to show coloring of addon names based on the ToC file or can use the coloring option
-----------------------------------
v6.7
- Optimized some small snippets of code
- Returned to wantonclickupdating = false default so the tooltip updates in real time (per popular demand)
-----------------------------------
v6.5
- Updated ToC for 4.0.1
------------------------------------
v6.3
- Fixed bug that was not allowing the fps and latency databroker objects to update correctly
------------------------------------
v6.2
- Minor update: reset a bunch of defaults to take less memory and fix the jittering that some people are having (just a temporary fix)
- Fixed some code to allow the broker object to keep updating every 2 seconds and not based on the UPDATEPERIOD variable
-------------------------------------
v6.1
- Removed second set of icons (no one wanted them)
- Updated code and added IsAddOnLoaded() function call to clean up and optimize
- Updated ToC file
--------------------------------------
v6.0
- Updated tooltip to make it display shPerformance addon memory usage by itself at the bottom!
- ADDED fps and latency display on tooltip itself for users who don't want to turn on the other databroker objects
- ADDED option to turn off coloring of the addon names (but the memory usage stays the same)
- Updated some function calls and minor cleanup of code
---------------------------------------
v5.1
- Updated TOC file
- Added another set of icons that can be changed via lua file (check for easy instructions)
- Fixed some small issues with formatting
---------------------------------------
v5.0
- Updated TOC a bit
- Due to popular demand, the default sorting method is back to alpha order
- Fixed the formatter to change 1000kb to 1.0mb (instead of < 1024)
----------------------------------------
v4.9
- Updated TOC finally
- Changed some redundant local variable calls and tried to clean up some code
- Changed default update time to every 1 second instead of 2 seconds
- Changed memory threshold back up to 60kb
-----------------------------------------

v4.8
- Changed default values for better optimization
-----------------------------------------
v4.7
- Made some more locals..optimized
------------------------------------------
v4.6
- Further optimized coding and got rid of some unnecessary global calls
------------------------------------------
v4.5
- Cosmetic changes and visual optimization
- Default, out of the box, changes to match user's needs
------------------------------------------
v4.4
- Updated garbage collecting methods and optimized function calls
- Added a more appealing garbage collecting display at the bottom of tooltip
- Added error handling if LibStub is not installed
------------------------------------------
v4.3
- Fixed information of options in lua file to make a bit more sense
- Added color gradient and max addon displaye options (CHECK LUA FILE)
- Added "Garbage churn" display similar to picoFPS' option at bottom of tooltip
-------------------------------------------
v4.2
- Removed garbage collection when OnLeave event is triggered
--------------------------------------------
v4.0
- Added garbage collection amount into chatframe when databroker clicked
- Cosmetic and visual changes to make it a bit easier to read
- COMPLETELY revamped several functions and optimized even further than before, should see a big change in overall efficiency.
--------------------------------------------
v3.2
- Added some color changes to mem list
- Optimized onclick function to call onenter function, reduces mem usage by 25%
--------------------------------------------
v3.1
- Added TOTAL UI memory usage line in shMem tooltip
- Cosmetic coloring of items
- Optimized "OnEnter" and "OnClick": external function calls
--------------------------------------------
v2.3
- Fixed default settings to emulate what most people have.
--------------------------------------------
v2.1
- Cosmetic changes and optimized search function
--------------------------------------------
v2.0
- Added boolean statement in config section of shPerformance.lua: IF YOU WANT to disable automatic updating of tooltip (and possible frame 'stuttering' just set this boolean value to "true"
--------------------------------------------
v1.2
- Changed UPDATEPERIOD from 0.5 seconds to 2 seconds to improve performance on some machines
NOTE: this can always be changed manually by changing the UPDATEPERIOD variable at top of LUA file
--------------------------------------------
v1.1
- Added icons for each separate broker
- Fixed ToC file up a bit
- New screenshots
- Fixed some wording to make it consistent with rest of tootips
Optional Files (1)
File Name
Version
Size
Author
Date
Type
v1.1
12kB
02-22-11 11:36 PM
Patch


Post A Reply Comment Options
Unread 11-16-10, 06:35 PM  
joshmiller83
Premium Member
Premium Member

Forum posts: 12
File comments: 54
Uploads: 0
So I guess I either won't be using any future versions of this or I'll be switching... I loved this addon with all 3 LDB objects and had 0 (zero) issues with it.
Report comment to moderator  
Reply With Quote
Unread 11-16-10, 07:08 PM  
shUI
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 340
Uploads: 5
Originally posted by joshmiller83
So I guess I either won't be using any future versions of this or I'll be switching... I loved this addon with all 3 LDB objects and had 0 (zero) issues with it.
I recommend the last version with the three LDB's together for now. There is almost no code difference. My new project which I will be working on for cata will be this addon with ingame config and the ability to add or remove the third LDB!

Stay tuned in the next three weeks
__________________
shPerformance: Data Broker memory/latency/fps usage display utility
shNameplates: Lightweight, simple, and sexy nameplates
shClock: Lightweight and simple data broker clock
Report comment to moderator  
Reply With Quote
Unread 11-17-10, 12:03 PM  
mythrilgolem
A Kobold Labourer

Forum posts: 1
File comments: 34
Uploads: 0
heads up, finally got around to disabling a few mods at a time to narrow down an error, I have lots of mods, and found that with your mod enabled alongside all my others I will crash 100% of the time immediately after zoning into a BG. disable this one and I stop crashing.

I have not done more testing and I don't know at what release this issue started so I can only confirm it is happening with 8.1r1.

More to come.
Report comment to moderator  
Reply With Quote
Unread 11-17-10, 12:32 PM  
shUI
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 340
Uploads: 5
Originally posted by mythrilgolem
heads up, finally got around to disabling a few mods at a time to narrow down an error, I have lots of mods, and found that with your mod enabled alongside all my others I will crash 100% of the time immediately after zoning into a BG. disable this one and I stop crashing.

I have not done more testing and I don't know at what release this issue started so I can only confirm it is happening with 8.1r1.

More to come.
That is really weird. My addon only deals with the LDB display addon (whatever it may be: docking station, bazooka, etc) and the WoW API to get the information per addon. Do some more research for me, I don't understand why it would cause that.
__________________
shPerformance: Data Broker memory/latency/fps usage display utility
shNameplates: Lightweight, simple, and sexy nameplates
shClock: Lightweight and simple data broker clock
Report comment to moderator  
Reply With Quote
Unread 11-17-10, 12:55 PM  
mythrilgolem
A Kobold Labourer

Forum posts: 1
File comments: 34
Uploads: 0
Originally posted by shUI
That is really weird. My addon only deals with the LDB display addon (whatever it may be: docking station, bazooka, etc) and the WoW API to get the information per addon. Do some more research for me, I don't understand why it would cause that.
i do use dockingstation
I'll test more


[edit]
been crashing today with shP disabled, not crashing 100% though. starting to get nervous for my ram. sorry for the false report.
Last edited by mythrilgolem : 11-17-10 at 01:16 PM.
Report comment to moderator  
Reply With Quote
Unread 11-17-10, 01:34 PM  
shUI
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 340
Uploads: 5
Originally posted by mythrilgolem
i do use dockingstation
I'll test more


[edit]
been crashing today with shP disabled, not crashing 100% though. starting to get nervous for my ram. sorry for the false report.
No problem bud, shPerformance usually only used between 20 and 45kb or so, I don't think it will alone cause the crash . I recommend deleting your cache folder and checking one addon at a time.
__________________
shPerformance: Data Broker memory/latency/fps usage display utility
shNameplates: Lightweight, simple, and sexy nameplates
shClock: Lightweight and simple data broker clock
Report comment to moderator  
Reply With Quote
Unread 11-19-10, 10:04 AM  
Skylinee
A Murloc Raider

Forum posts: 5
File comments: 371
Uploads: 0
An easy way to keep everyone happy is to just release the Mem part as a plugin, no need to make an ingame GUI for this simple addon (why would you even need it anyway?). Changing a few variables in the LUA file really doesn't take long to do anyway.
Report comment to moderator  
Reply With Quote
Unread 11-19-10, 10:36 AM  
shaggy7
A Kobold Labourer

Forum posts: 0
File comments: 10
Uploads: 0
Two huge thumbs up for this mod. It's far and away the most nicely-done mod of its kind.

Since the most recent update, I have noticed one funny little bug. I sort by descending memory, not alphabetically, and what I've seen is that the list is alpha sorted to begin with and requires a refresh (either automatic or manual) to sort by memory descending.

Hardly a big issue, but if I can help make the best even better, then I consider myself happy!
Report comment to moderator  
Reply With Quote
Unread 11-19-10, 11:09 AM  
shUI
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 340
Uploads: 5
Originally posted by shaggy7
Two huge thumbs up for this mod. It's far and away the most nicely-done mod of its kind.

Since the most recent update, I have noticed one funny little bug. I sort by descending memory, not alphabetically, and what I've seen is that the list is alpha sorted to begin with and requires a refresh (either automatic or manual) to sort by memory descending.

Hardly a big issue, but if I can help make the best even better, then I consider myself happy!
Thanks bud for the compliments! That small issue happens b/c, to save memory/cpu usage, I only have the sorting method called after the first OnEnter event/function is fired. I think a simply fix to this is just adding one more line of code right after the table of addons is created to sort depending on what the user wants. I'll get that in on the next update.

@Skylinee: I completely agree about having an ingame UI. It is too simple, and after thinking about it, I am just going to create a separate config file similar to what I did with my nameplate addon. I will also work on having a config attribute that will allow for the shMem module to be added.

Thanks for the feedback guys and keep it coming. I will be updating this addon and my others as we get closer to Cata.
__________________
shPerformance: Data Broker memory/latency/fps usage display utility
shNameplates: Lightweight, simple, and sexy nameplates
shClock: Lightweight and simple data broker clock
Report comment to moderator  
Reply With Quote
Unread 11-23-10, 01:04 PM  
wolftech
A Deviate Faerie Dragon

Forum posts: 14
File comments: 62
Uploads: 0
Originally posted by shUI
I recommend the last version with the three LDB's together for now. There is almost no code difference. My new project which I will be working on for cata will be this addon with ingame config and the ability to add or remove the third LDB!

Stay tuned in the next three weeks
There may not be a 'code difference', but there are some of us that preferred having all 3 LDB objects. Thank you for planning on putting that functionality back in a future version.
Report comment to moderator  
Reply With Quote
Unread 11-27-10, 04:41 PM  
keLston
A Deviate Faerie Dragon

Forum posts: 11
File comments: 174
Uploads: 0
I just downloaded the most recent version from a previous version and for some reason, shMem is now greyed out on the list of plugins and i'm unable to enable it.

If I attempt to enable it, I am given the lua error:

1x DockingStation-0.4.6 (Beta)\FontStrings.lua:139: attempt to index local 'data' (a nil value)
DockingStation-0.4.6 (Beta)\Plugins.lua:177: in function `UpdateChildren'
DockingStation-0.4.6 (Beta)\Plugins.lua:119: in function `Refresh'
DockingStation-0.4.6 (Beta)\Plugins.lua:154: in function `SetState'
DockingStation-0.4.6 (Beta)\Plugins.lua:521: in function `CreatePlugin'
DockingStation_Config\Core.lua:427: in function <DockingStation_Config\Core.lua:419>
(tail call): ?:
<in C code>: ?
<string>:"safecall Dispatcher[2]":9: in function <[string "safecall Dispatcher[2]"]:5>
(tail call): ?:
AceConfigDialog-3.0-53:798: in function <...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:613>
(tail call): ?:
<in C code>: ?
<string>:"safecall Dispatcher[3]":9: in function <[string "safecall Dispatcher[3]"]:5>
(tail call): ?:
AceGUI-3.0-33 (Ace3):314: in function `Fire'
...ns\Ace3\AceGUI-3.0\widgets\AceGUIWidget-CheckBox.lua:68: in function <...ns\Ace3\AceGUI-3.0\widgets\AceGUIWidget-CheckBox.lua:57>:

---
Report comment to moderator  
Reply With Quote
Unread 11-28-10, 11:42 AM  
shUI
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 340
Uploads: 5
Originally posted by wolftech
There may not be a 'code difference', but there are some of us that preferred having all 3 LDB objects. Thank you for planning on putting that functionality back in a future version.
@wolftech: I will be definitely adding some kind of functionality back and adding the third LDB. Look for it in the next update before Cata.

@keLston: Please read the change long, I have gotten rid of the shMem LDB for now. A lot of people want it back, but I am not going to have it as a default option. Look for it in the next update to be able to add it back.
__________________
shPerformance: Data Broker memory/latency/fps usage display utility
shNameplates: Lightweight, simple, and sexy nameplates
shClock: Lightweight and simple data broker clock
Report comment to moderator  
Reply With Quote
Unread 11-28-10, 03:23 PM  
keLston
A Deviate Faerie Dragon

Forum posts: 11
File comments: 174
Uploads: 0
Yep, that was my fault not noticing the changelog. I was mass downloading addon updates at 6am and I must've been groggy eyed when I looked it over.

However, if you were curious, I did pop the LUA error over to Vrul at Docking Station and turns out it was a display error with Docking Station which he so kindly wrote a quick fix for and updated Docking Station.

If I had a religion, addon authors would be the first to sainthood. I love you guys.

On an unrelated note, I know this seems like a really dumb cosmetic request, but when you updated the addon and seemingly merged the memory display into shFPS, the shFPS icon changed from the little LCD screen/computer monitor icon into shMem's memory bar icon.

Is there a way for me to bring back shFPS's original computer monitor icon?
Last edited by keLston : 11-28-10 at 03:27 PM.
Report comment to moderator  
Reply With Quote
Unread 11-28-10, 03:33 PM  
shUI
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 340
Uploads: 5
Originally posted by keLston
Yep, that was my fault not noticing the changelog. I was mass downloading addon updates at 6am and I must've been groggy eyed when I looked it over.

However, if you were curious, I did pop the LUA error over to Vrul at Docking Station and turns out it was a display error with Docking Station which he so kindly wrote a quick fix for and updated Docking Station.

If I had a religion, addon authors would be the first to sainthood. I love you guys.

On an unrelated note, I know this seems like a really dumb cosmetic request, but when you updated the addon and seemingly merged the memory display into shFPS, the shFPS icon changed from the little LCD screen/computer monitor icon into shMem's memory bar icon.

Is there a way for me to bring back shFPS's original computer monitor icon?
Orly, that's excellent that he was able to fix it so quickly. Thanks for the help!
__________________
shPerformance: Data Broker memory/latency/fps usage display utility
shNameplates: Lightweight, simple, and sexy nameplates
shClock: Lightweight and simple data broker clock
Report comment to moderator  
Reply With Quote
Unread 11-30-10, 09:40 PM  
xandora
A Chromatic Dragonspawn
 
xandora's Avatar

Forum posts: 188
File comments: 51
Uploads: 0
After updating both Docking Station and shPerformance today, I can no longer activate the shPerformance part of this LDB display.

shLatency is working perfectly, but no matter what I try it just won't load the Performance and FPS modules and keeps them greyed out.

Help?

EDIT: FPS seems to be working now, but still no luck on Performance.
__________________
Last edited by xandora : 11-30-10 at 09:43 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: