Lua code profiler wishes?
I wrote an event counter that I'm turning into a general purpose code profiler. It's a simple mod that hooks functions matching a pattern and keeps stats on how many times (and times/sec) they've been called.
Anybody have any wishes for profiling Lua code? Most Lua code runs fast, but often. This makes them hard to time because the resolution of GetTime isn't quite good enough to measure one call. I've noticed that most code is side-effect free and can be called repeatedly. I was thinking about adding an option to have the profiling hook call a function repeatedly to get better accuracy. Can anybody think of a better solution to the timer accuracy problem? |
(Was this moved? Sorry if I posted in the wrong place. Script request forum is only for players, not requests from mod authors?)
|
Aye I moved it. I thought it would be more appropriate in this area of the boards, since this is where folks dealing with actual code hang out more. ;)
It is entirely possible that I misunderstood the general direction of your thread, and shouldn't have moved it. I can move it back if you would prefer. :) |
I'm too new; I trust you.
Was just hoping to get some ideas from people who are trying to performance tune their code. (WoW's scripting features are amazing, but no development tools? It's a niche I hope to carve out in the mod world :) |
Okay, so I didn't misunderstand. Yeah, this is definitely *developer*, not random_end_user_01. Which is not an insult to random_end_user_01, it's just saying that they aren't gonna care about this, whereas dev's will. :)
|
I've finished up the next version of my Lua code profiler. First paragraph from the web page:
Quote:
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! |
LittleJohn, could I ask you to please upload it to our site, instead? We don't like links to external downloads, as we can't guarantee the safety of them. Most folks wouldn't do anything wrong, but unfortunately ....
So, for the protection of everyone involved (users, the site, yourself), we prefer that the program/mod/whatever actually reside on the site, so that we may verify that there isn't anything malicious in it. |
Ok, I'm sure it's really easy, but in the 37 seconds I had before going to eat I couldn't figure it out... Can I keep the link to my web page? Or do you want to host that too?
|
You can keep it if you wish. As for uploading, go to the downloads section, go to Dev Tools (since that's the applicable category in this case), at the top and bottom of the listing are buttons for uploading and the forums ... I think you can guess which to use. ;)
Path to your zip file Attach a picture Add a description, remember to put a link to this thread, and hit submit. :) Thank you for understanding. We aren't trying to be unreasonable, we just need to make sure that we protect everyone, you included. |
Ok. Yeah, that was easy. I'm sure if I had maybe 39 seconds I could have done it... ;)
So how often do you all approve uploads? (Do you actually fire up WoW and test them?!) |
|
Quote:
You should start a new thread for this, since you've got an actual working program for folks to use now ... |
New post in General Authoring? or somewhere else?
BTW, the upload system is really nice. |
Glad you like it. :)
Is this "finished" or beta? |
It "works" and I've fixed the "known" bugs so it must be "finished". :)
|
Released Interfaces forum then. :)
Changed my mind. New forum available ... |
"Released" thread here.
|
All times are GMT -6. The time now is 07:19 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI