Thread Tools Display Modes
12-21-14, 06:44 PM   #1
laukond
A Black Drake
Join Date: Dec 2011
Posts: 87
Loading Screen AddOn

I've recently stumbled into quite long loading screens, so I'm looking for an AddOn to analyze which other AddOns are delaying it so long.

Any updated AddOns like WarmUp around?

General tips about troubleshooting this stuff would be greatly appreciated. Takes about 1 second to RL without AddOns, 10 seconds with AddOns and this is on a SSD.

Last edited by laukond : 12-21-14 at 06:50 PM.
  Reply With Quote
12-21-14, 07:23 PM   #2
Tim
A Rage Talon Dragon Guard
 
Tim's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 309
Try starting with only 1 addon loaded and keep re-logging while adding an extra addon everytime.
__________________
AddOns: Tim @ WoWInterface
Battle Tag: Mysterio#11164
Current PC Setup: PCPartPicker List
  Reply With Quote
12-21-14, 07:24 PM   #3
laukond
A Black Drake
Join Date: Dec 2011
Posts: 87
Originally Posted by Tim View Post
Try starting with only 1 addon loaded and keep re-logging while adding an extra addon everytime.
I did that and figured out TomTom takes quite a bit of time, would be nice to see how much each AddOn consumes though :-)
  Reply With Quote
12-21-14, 08:55 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
My initial response was "that should still work" but then I tried it, and looked in its code, and there's simply no way that file could ever work since it's attempting to call methods on a global frame reference that doesn't exist.

Here's a version that actually works. Just overwrite the Lua file from the download you linked with the attached file. TomTom is indeed fat and sluggish.

Edit: Oh, I also commented out the nonsense that makes it disable itself after each run. I'm perfectly capable of deciding when I'm done debugging and turning it off myself, thanks.

Edit #2: Attachment removed. See here for updated files.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.

Last edited by Phanx : 12-24-14 at 12:39 AM.
  Reply With Quote
12-21-14, 09:14 PM   #5
laukond
A Black Drake
Join Date: Dec 2011
Posts: 87
This is awesome! It works on most of my AddOns, but something makes it get these errors:

Code:
Line 25: You should never use debugprofilestart()! (x10)
Line 152: attempt to perform arithmetic on local 'lastmem' (a nil value) (x7)
  Reply With Quote
12-22-14, 12:52 AM   #6
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Fixed the first one. Not really sure what's up with the second one, as I've never used or looked into the memory debugging API at all, so for now I just monkey-patched it by setting it to 0 if it doesn't exist, so it can be math'ed. However, I'm not sure the memory reporting is accurate at all, especially the garbage collected (the last number) which seems unbelievably high for many addons, so this and the other memory-related value I added a fallback to 0 for probably need further investigation. The load time is the most important thing, though, and that seems correct, so I probably won't spend much (if any) time on the memory stuff.

Edit: Attachment removed. See here for updated files.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.

Last edited by Phanx : 12-24-14 at 12:38 AM.
  Reply With Quote
12-22-14, 05:55 AM   #7
laukond
A Black Drake
Join Date: Dec 2011
Posts: 87
Thanks a lot, it works on all the AddOns now I agree only the loading time stuff is relevant.
  Reply With Quote
12-23-14, 05:18 AM   #8
natassja72
A Wyrmkin Dreamwalker
Join Date: Aug 2008
Posts: 59
How do I use this mod? I suffer from long loading screens so I decided to try it. All I'm getting on login is stuff unrelated to addons printed to chat:

(...)
[12:13:13] 40 (0) | UPDATE_WORLD_STATES
[12:13:13] 13 (0) | USE_GLYPH
[12:13:13] 1 (0) | VARIABLES_LOADED
[12:13:13] 2 (0) | VEHICLE_ANGLE_SHOW
[12:13:13] 2 (0) | VEHICLE_POWER_SHOW

And then only two lines that actually say something about times, that repeat on 3 different toons:

[12:13:33] 0.089 sec | Blizzard_GarrisonUI (1125 KiB - 874 KiB)
[12:13:33] 0.035 sec | MasterPlan (353 KiB - 728 KiB)

but first one is not even an addon and secondly, the times being 0,035 sec don't seem to have much impact on login times. I'm sure there must be more addons slowing it down.

I did download the latest .lua linked here.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Loading Screen AddOn


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off