View Single Post
07-05-05, 04:31 PM   #6
Littlejohn
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Jun 2005
Posts: 90
I've finished up the next version of my Lua code profiler. First paragraph from the web page:

TraceEvent collects function call counts, calls/second, peak calls/second and average per-call memory usage of Lua global functions. The previous release was designed to trace all OnEvent functions, but v1.2 allows you to specify functions by name or pattern.
If people could play with it a bit and give me feedback, I'd really appreciate it. Parts of the UI are a little clunky, but it's still fun to play with. (Or maybe I'm just hopelessly weird.)

If anybody has downloaded Blizzard's UI customization kit, my mod can help you find the stuff you want. Trace "^%a+_" and then watch the functions as you do stuff. For example, if you want to customize mail, reset the trace stats, open a mailbox, then sort the trace stats. The top functions listed will be related to mail. (Sometimes you have to stop tracing some "noisy" code like ActionButtons in order to find the good stuff.)

http://www.vulpes.com/TraceEvent/

Thanks!