Download
(10Kb)
Download
Updated: 08-05-09 03:02 PM
Pictures
File Info
Updated:08-05-09 03:02 PM
Created:unknown
Downloads:4,841
Favorites:41
MD5:

Resource Tools

Version: r20090805
by: Shadowed [More]

Profiling addon for developers who want finer control and easier access to the new CPU and memory functions that were introduced in WoW 2.1, you can use the slash commands for quick access to these functions, or you can type /rt ui to pull up the profiling panel.

Author: Shadowed <[email protected]>
Date: Wed Aug 5 14:01:40 2009 -0700
Fixed another bug with saving settings
Moved to SetFormattedText
Moved to MiB/KiB instead of MB/KB
Fixed CPU stats showing up in milliseconds instead of seconds
Fixed errors related to logging out and variables not being saved
Fixed leaked globals
Localization update
* TOC Bump + Made it support AddonLoader

Date: Thu Jul 23 23:12:14 2009 -0700
* Moved to using _G instead of getglobal
* Fixed an error when logging out
* Fixed weird formatting I was using 3 years ago
* Fixed blacklist.lua file reference that didn't exist
* TOC update

Date: Sat Nov 1 04:35:49 2008 +0000
* Updated for 3.0

Date: Fri Sep 21 23:24:21 2007 +0000
* Moving rophy's version to trunk

Date: Fri Jun 29 15:21:05 2007 +0000
Things changed, no idea what.

Date: Fri Jun 15 01:10:01 2007 +0000

Date: Sun Jun 3 20:10:37 2007 +0000
Changed function name clipping, will do it at >= 36 characters and it'll instead keep 0 through 36 instead of the same method as events use, as you usually need the later part of the function to know what to modify.
Improved CPU profiling detection, will only let you use CPU profiling enabled features after a reloadui instead of right after /rt cpu
Cleaned up the /rt event code, will handle multiple events better and will also accept "all" even with multiple events passed.
Added /rt ui for toggling the new profiling window
Added a profiling UI that lets you view total CPU/Memory of all addons, along with profiling all of the functions inside a namespace, you can also view the time taken and how many times all of the events were called.
Search boxes can be used to narrow down what functions or events will be shown.

Date: Sun May 27 17:50:54 2007 +0000
Fixed /rt event not accepting multiple events when separated by a comma.
Fixed /rt func not matching regular functions instead of Foo.Bar formatted ones, also fixed no error message when the function didn't exist
Added an average seconds of time used for function and event profiling.
Added /rt reset to reset the CPU profiling stats
Added messages that the function or event was never called instead of showing 0 seconds, called 0 times.

Date: Sat May 26 17:19:34 2007 +0000
Forgot to remove the UpdateEventList function call for now.
Initial Commit.
Resource tools is for developers who want to profile their addon without having to mess around with the functions directly, you can access all of the profiling functions through /rt.
Optional Files (0)


Post A Reply Comment Options
Unread 06-10-07, 11:09 PM  
Niightblade
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 21
File comments: 67
Uploads: 3
Latest Version?

Are you sure you uploaded the latest version? The changelog for the version I just downloaded (using the big download button) doesn't even mention the /rt gui command, and it doesn't work in-game.
Report comment to moderator  
Reply With Quote
Unread 06-11-07, 12:38 PM  
Shadowed
...
Featured Addon Author

Forum posts: 387
File comments: 2513
Uploads: 83
Cause it's /rt ui not /rt gui
Report comment to moderator  
Reply With Quote
Unread 06-11-07, 09:50 PM  
Niightblade
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 21
File comments: 67
Uploads: 3
Originally posted by Shadowd
Cause it's /rt ui not /rt gui
Yeah sorry, typo. I meant /rt ui. Doesn't work.
Report comment to moderator  
Reply With Quote
Unread 06-14-07, 02:35 AM  
arkayenro
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 12
File comments: 403
Uploads: 3
same here, download r37 and /rt ui does not work

changelog text file only goes up to r15 - which is probably why we're wondering if the right zip file got uploaded for r37.
Report comment to moderator  
Reply With Quote
Unread 06-15-07, 11:55 AM  
Shadowed
...
Featured Addon Author

Forum posts: 387
File comments: 2513
Uploads: 83
Indeed, it's fixed.
Report comment to moderator  
Reply With Quote
Unread 10-28-08, 04:08 PM  
Saiket
A Chromatic Dragonspawn
 
Saiket's Avatar
AddOn Author - Click to view AddOns

Forum posts: 154
File comments: 330
Uploads: 9
Broken in 3.0.2.

Are there any plans to update this addon to 3.0.2? Currently the "/rt ui" command throws the following error:
Code:
ResourceTools\ResourceTools.lua:461: attempt to call method 'GetFont' (a nil value)
ResourceTools\ResourceTools.lua:285: in function `?'
ResourceTools\Dongle.lua:1008: in function <Interface\AddOns\ResourceTools\Dongle.lua:996>
ResourceTools\Dongle.lua:1045: in function `value'
Interface\FrameXML\ChatFrame.lua:3212: in function `ChatEdit_ParseText':
Interface\FrameXML\ChatFrame.lua:2911: in function `ChatEdit_SendText':
Interface\FrameXML\ChatFrame.lua:2932: in function `ChatEdit_OnEnterPressed':
<string>:"*:OnEnterPressed":1: in function <[string "*:OnEnterPressed"]:1
Report comment to moderator  
Reply With Quote
Unread 10-28-08, 05:01 PM  
Shadowed
...
Featured Addon Author

Forum posts: 387
File comments: 2513
Uploads: 83
I'll see about getting it updated, but it's not high on my list, should be able to get around to it tomorrow or Friday.
Report comment to moderator  
Reply With Quote
Unread 11-07-08, 08:56 PM  
vithos
A Kobold Labourer

Forum posts: 0
File comments: 25
Uploads: 0
I get this error during reloadui (have to enable error saving in bugsack and view all errors, not session errors):
Code:
[2008/11/07 20:42:18-227-x1]: ResourceTools\ResourceTools.lua:999: attempt to index global 'self' (a nil value)

  ---
Report comment to moderator  
Reply With Quote
Unread 12-18-08, 06:13 AM  
Mike-N-Go
A Theradrim Guardian
 
Mike-N-Go's Avatar
AddOn Author - Click to view AddOns

Forum posts: 68
File comments: 147
Uploads: 18
Is there a way to sort by CPU usage with the addon, via a /rt command or the GUI?

Other then:
Code:
/run RT.extrasFrame.sortType = "cpu"
__________________
Currently contemplating coming back to Authorship.. been away for years. Please let me know you care, by commenting on what addon(s) of mine you want to see updated.

Author of Daily Bean Counter, MyNameTogglesWhenIAFKorDND, Extended Shutdown Warning, Auto Mail Director, Duel Nullify, Spec Transmiter, Say Again, Window Teller, Who Crafts, Ad Repeater, Privy Cork, Mac Backup, and more.
Last edited by Mike-N-Go : 12-18-08 at 06:21 AM.
Report comment to moderator  
Reply With Quote
Unread 07-20-09, 12:43 AM  
Elkano
A Flamescale Wyrmkin
 
Elkano's Avatar
AddOn Author - Click to view AddOns

Forum posts: 131
File comments: 167
Uploads: 6
Shadowed, I found a small bug in RT:

ResourceTools\\ResourceTools.lua:999: attempt to call field '?' (a nil value)

this is caused on reload/logout due to the fact, that you are calling
self[event](self, ...)
but self is pointing to your event frame instead of the RT table as it should.
So changing this to
RT[event](RT, ...)
should work.
__________________
This posting is made of 100% recycled electrons.
Report comment to moderator  
Reply With Quote
Unread 07-24-09, 12:04 AM  
Shadowed
...
Featured Addon Author

Forum posts: 387
File comments: 2513
Uploads: 83
Fixed
Report comment to moderator  
Reply With Quote
Unread 10-18-10, 11:04 PM  
Mikord
A Theradrim Guardian
AddOn Author - Click to view AddOns

Forum posts: 61
File comments: 503
Uploads: 2
Bug in 4.0.1

Hey Shadowed,

There is a new bug introduced by the removal of some global variables that used to be set prior to calling event functions in 4.0.1.

Fix:Line 38 of ResourceTools.lua
Change
lua Code:
  1. self.eventFrame:SetScript("OnEvent", function()
to
lua Code:
  1. self.eventFrame:SetScript("OnEvent", function(frame, event)


Error:
Code:
Message: Interface\AddOns\ResourceTools\ResourceTools.lua:40: table index is nil
Time: 10/18/10 23:58:38
Count: 1
Stack: Interface\AddOns\ResourceTools\ResourceTools.lua:40: in function <Interface\AddOns\ResourceTools\ResourceTools.lua:38>
[C]: in function `LoadAddOn'
[string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:7: in function <[string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:4>
[C]: ?
Interface\AddOns\ResourceTools\ResourceTools.lua:40: in function <Interface\AddOns\ResourceTools\ResourceTools.lua:38>
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.