(9 Kb)
Updated: 09-03-09 08:09 PM
File Info
Updated:09-03-09 08:09 PM
Created:06-22-09 06:00 PM

Addon Profiler  Popular! (More than 5000 hits)

Version: r20090903
by: Shadowed [More]

Memory and CPU profiling addon, let's you set a period of time in seconds to profile over where it will keep track of total CPU used, CPU used per second as well as (tries) to keep track of how much garbage an addon creates over the duration it is profiling.

Includes an option to group any modules into their parents so you can more accurately see how much addons are really using, if you have addon Orange that lists Apple as a required depedency (And that's its only dependency) then Apple will list its own stats combined with Oranges as well, you can click on the main addon to see what it's modules are using specifically.

Slash commands: /profiler (/ap)

Author: Shadowed <[email protected]>
Date: Wed Sep 2 19:45:38 2009 -0700
- Fixed issues related to profiling with filters up
- Fixed children not showing if their parent is filtered (Orphaning children is always a sad thing)

Date: Wed Aug 5 14:21:36 2009 -0700
- Fixed CPU to show in seconds instead of milliseconds, CPU/Sec still shows in milliseconds thought
- Added text indicating CPU is shown in seconds, CPU/Sec in milliseconds
TOC Bump + AddonLoader support
* Split localization into its own file

Date: Sun Jul 12 11:12:55 2009 -0700
* Fixed average cpu used a second being off when modules are enabled

Date: Sun Jul 5 01:18:52 2009 -0700
* Fixed profiler interrupted message
* Changed addon modules to be expanded by default
* Added how long the profiling was to the finished message
* Increased displayed rows from 12 to 18

Date: Tue Jun 23 15:30:41 2009 -0700
* Changed garbage collection detection, now stops the GC during profile and manually runs a step and then restarts the GC once profiling is done. This should keep the GC numbers at least somewhat accurate without killing performance by having to check memory in a OnUpdate

Date: Mon Jun 22 21:56:17 2009 -0700
* Actually changed to .- in case multiple underscores are used in a folder name
* Fixed sorting not working correctly when you had include modules enabled
* Fixed sorting not using average CPU when scan finished
* Fixed module detection, now attempts to use <parent>_<module> to find the owner first, then it falls back to check if it has only one dependency and associates it that way
* Changed to formating to the second decimal place instead of the first for all stats
* Changed to chat frame background as it's easier to read the text when the frame isn't 70% alpha
* Added an addon filter so you can only profile an addon or two if wanted
* After profiling finishes, CPU/Sec will turn into Avg/Sec and show the average CPU time in seconds over the profile time
* Fixed a few things that I broke when renaming
* Quick profiling addon that you can set to run for X amount of seconds, stats are reset at the start when it profiles, also attempts to keep track of how much garbage an addon creates. Includes support to group any "modules" into their parents, so if addon Apple has Orange as it's only dependency, then Orange will list its own stats combined with Apple's as well.
* Git being a pain
* Quick profiling addon, lets you set a profile duration where it'll keep track of total CPU used over the passed period of time, as well as total amount of garbage created. Profiling stats are reset when you start a new profiler.
Optional Files (0)

Post A Reply Comment Options
Unread 10-14-11, 07:46 PM  
A Deviate Faerie Dragon

Forum posts: 12
File comments: 42
Uploads: 0
Last edited by rashkaldo : 10-14-11 at 07:46 PM.
Report comment to moderator  
Reply With Quote
Unread 12-03-10, 09:37 PM  
A Kobold Labourer
kaustos's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 42
Uploads: 1
Re: 'CPU' units on context

I just wanted to throw out there that after using this you will need to reset scriptprofiling if you disable the addon or you will be left with an infuriating freeze upon entering/leaving combat or changing action bars. It's a console command, and isn't defaulted to 0 upon restarting WoW.

/console scriptprofiling 0
Report comment to moderator  
Reply With Quote
Unread 10-19-10, 04:44 PM  
A Kobold Labourer

Forum posts: 0
File comments: 22
Uploads: 0
'CPU' units on context

Hi folks.

I've recently started using Addon Profiler, and am confused about what to make of the 'CPU' unit. How many CPUs is too much to allow a single addon? What is an acceptable range for, say, action bars? Unit frames? Etc.
Report comment to moderator  
Reply With Quote
Unread 09-02-09, 08:40 PM  
Featured Addon Author

Forum posts: 387
File comments: 2513
Uploads: 83
Got distracted with other things sorry, it's been fixed I'll do a push tomorrow but in the meantime get https://github.com/Shadowed/AddonProfiler/ to fix it
Report comment to moderator  
Reply With Quote
Unread 08-21-09, 05:02 AM  
A Deviate Faerie Dragon
Lunarion's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 12
File comments: 73
Uploads: 1
I also recieved the error mentioned below. Any chance of fixing the problem if you are able to identify it?
Report comment to moderator  
Reply With Quote
Unread 08-10-09, 04:07 PM  
A Murloc Raider

Forum posts: 6
File comments: 20
Uploads: 0
got the following error

[02:05:05] Interface\AddOns\AddonProfiler\AddonProfiler.lua:35: attempt to index field '?' (a nil value)
[C]: ?
Interface\AddOns\AddonProfiler\AddonProfiler.lua:35: in function <Interface\AddOns\AddonProfiler\AddonProfiler.lua:10>
Interface\AddOns\AddonProfiler\AddonProfiler.lua:79: in function <Interface\AddOns\AddonProfiler\AddonProfiler.lua:74>
Report comment to moderator  
Reply With Quote
Unread 07-01-09, 05:53 AM  
A Cliff Giant
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
Seems like an excellent, more usable version of what was available in OptionlessHouse. But it throws an error and bugs out when testing with a metric ton of mods/disembedded libraries active (a few hundred).

r20090624, USEnglish client/server, WoW 3.1.3 live. Checkmark all three option boxes in the mod and reload UI to activate CPU profiling. Use the default "profile duration" of 60 seconds. Have nothing listed in the "Addon filter".

Click the "Start" button and:
[2009/07/01 07:36:59-664-x138]: AddonProfiler\AddonProfiler.lua:60: attempt to index field '?' (a nil value)
AddonProfiler\AddonProfiler.lua:106: in function <Interface\AddOns\AddonProfiler\AddonProfiler.lua:101>

The seconds counter at the top of the Addon Profiler frame freezes at "59 seconds left". No numbers change in the mod listing. Press "Stop" and all entries in the "Avg/Sec" column read "-1.#]". The error above repeats several times every time you click the "Start/Stop" button. Reproducible on every UI reload.

Tested again with just a handful of mods/disembedded libraries active (less than 10) under the same conditions as the second paragraph. No errors, the timer counted down properly and got accurate readings in the mod listing.
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.