Thread Tools Display Modes
08-29-24, 10:05 PM   #1
Xully
A Wyrmkin Dreamwalker
Join Date: Jul 2010
Posts: 50
Alternative to warmup addon?

I've been looking for an addon which show me how long are addons taking while in the loading screen, especially during login & reloadui.

I noticed after new expansion my loading screen went up massively..... & I also added a bunch of addons too so I don't want to go through the troubleshooting of uncheck each addon one at a time, thats hectic.

I hope there's an addon out there just like Wormup which also works. Post if you know of one.
  Reply With Quote
08-30-24, 12:47 AM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,360
I don't know about existing addons. I tend to write something myself if I need info. That being said, this script should do the trick.

Lua Code:
  1. EventUtil.RegisterOnceFrameEventAndCallback("PLAYER_ENTERING_WORLD",function()
  2.     if GetCVarBool("scriptProfile") then
  3.         UpdateAddOnCPUUsage();
  4.         UpdateAddOnMemoryUsage();
  5.  
  6.         print("AddOn load times:");
  7.         for i=1,C_AddOns.GetNumAddOns() do
  8.             local ms,kb,name,title=GetAddOnCPUUsage(i),GetAddOnMemoryUsage(i),C_AddOns.GetAddOnInfo(i);
  9.             print(("    %s (%0.3f sec  :  %0.3f KB)"):format(title or name,ms/1000,kb));
  10.         end
  11.     else print("CVar |cffff8800scriptProfile|r is disabled!\nRun |cff00ff00/console scriptProfile 1|r to enable.\n This requires a |cff00ff00/reload|r to apply."); end
  12. end);

Note: The scriptProfile CVar needs to be turned on for this to work. Be sure to turn it back off when you're done as it eats up some performance.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 08-30-24 at 12:50 AM.
  Reply With Quote
08-30-24, 04:20 PM   #3
Xully
A Wyrmkin Dreamwalker
Join Date: Jul 2010
Posts: 50
Thanks, how do I run this though? do I need REHACK addon to put these line inside? or create my own notepad file and put these lines inside then put it inside of a folder which then I should put into the /Interface/AddOns folder?

Sry I'm a complete newb if you havent guessed already.
  Reply With Quote
08-30-24, 04:58 PM   #4
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,360
If you're interested in how addons are detected and run, you can look at Warcraft Wiki: Create a WoW AddOn in 15 Minutes.
Warcraft Wiki: Interface Customization is a good centralized resource for AddOn development.

A good quick tool to package scripts into an addon is https://addon.bool.no/.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
08-30-24, 07:26 PM   #5
Xully
A Wyrmkin Dreamwalker
Join Date: Jul 2010
Posts: 50
Originally Posted by SDPhantom View Post
If you're interested in how addons are detected and run, you can look at Warcraft Wiki: Create a WoW AddOn in 15 Minutes.
Warcraft Wiki: Interface Customization is a good centralized resource for AddOn development.

A good quick tool to package scripts into an addon is https://addon.bool.no/.
Thanks, on it...

called it "Loadingtime" i know dumb name but hah.
  Reply With Quote
09-11-24, 04:14 AM   #6
AngelaWilson
A Kobold Labourer
Join Date: Aug 2024
Posts: 1
Originally Posted by SDPhantom View Post
I don't know about existing addons. I tend to write something myself if I need info. That being said, this script should do the trick.
Try using "Addon Loader" or "ElvUI" for tracking addon load times. Both can help identify which addons are slowing down your login and reload times without needing to disable them one by one. I’ve been using oxessays.com for my assignments, and the service has been fantastic. The quality of the papers is always high, and the writers follow my instructions perfectly. If you’re a student who needs help with your essays or assignments, this is a service you should definitely try. The prices are reasonable, and the support team is very responsive. I’m really happy with the service and will continue to use it for my future assignments.
Lua Code:
  1. EventUtil.RegisterOnceFrameEventAndCallback("PLAYER_ENTERING_WORLD",function()
  2.     if GetCVarBool("scriptProfile") then
  3.         UpdateAddOnCPUUsage();
  4.         UpdateAddOnMemoryUsage();
  5.  
  6.         print("AddOn load times:");
  7.         for i=1,C_AddOns.GetNumAddOns() do
  8.             local ms,kb,name,title=GetAddOnCPUUsage(i),GetAddOnMemoryUsage(i),C_AddOns.GetAddOnInfo(i);
  9.             print(("    %s (%0.3f sec  :  %0.3f KB)"):format(title or name,ms/1000,kb));
  10.         end
  11.     else print("CVar |cffff8800scriptProfile|r is disabled!\nRun |cff00ff00/console scriptProfile 1|r to enable.\n This requires a |cff00ff00/reload|r to apply."); end
  12. end);

Note: The scriptProfile CVar needs to be turned on for this to work. Be sure to turn it back off when you're done as it eats up some performance.

Hehe, you are right.

Last edited by AngelaWilson : 09-20-24 at 05:11 AM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Alternative to warmup addon?

Thread Tools
Display Modes

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