Total War: THREE KINGDOMS

Total War: THREE KINGDOMS

Not enough ratings
Zez's Lua Profiler for 3K
   
Award
Favorite
Favorited
Unfavorite
Tags: mod, campaign
File Size
Posted
23.739 KB
26 Oct @ 3:43pm
1 Change Note ( view )

Subscribe to download
Zez's Lua Profiler for 3K

Description
This is an adaption for Zez's Lua Profiler from WH3, all credits to him.


This mod is a in-game Lua performance profiler intended for modders and whoever wants to make their scripts more efficient. Automatic logging, finds slow scripts, listeners, end turn lag causes.

Requires Script Debugger

[out] <176.2s> [PROFILER] ============= TURN 2 REPORT ============= [out] <176.2s> ================================================================ [out] <176.2s> [PROFILER] Top 20 functions (sort=total, threshold=0.001s) [out] <176.2s> [PROFILER] Total measured time: 2.251s [out] <176.2s> ---------------------------------------------------------------- [out] <176.2s> Function Total Avg Max Min Calls [out] <176.2s> ---------------------------------------------------------------- [out] <176.2s> callback:WealthOutSideKorea 1.259s 0.0023s 0.0240s 0.0010s 554 [55.9%] [out] <176.2s> callback:campaign_experience_battle_logged 0.142s 0.0023s 0.0030s 0.0010s 63 [6.3%] [out] <176.2s> callback:OnDeathCommands 0.140s 0.0350s 0.0580s 0.0120s 4 [6.2%] [out] <176.2s> callback:ancillaries_character_created 0.123s 0.0031s 0.0150s 0.0010s 40 [5.5%] [out] <176.2s> callback:traits_personality_campaign_battle_logged 0.068s 0.0017s 0.0100s 0.0010s 39 [3.0%] [out] <176.2s> ================================================================ [out] <176.2s> [out] <176.2s> ================================================================ [out] <176.2s> [PROFILER] Listener Analysis (sort=total_time, top 25) [out] <176.2s> ---------------------------------------------------------------- [out] <176.2s> Listener Cond Call | Checks Eff% Fires [out] <176.2s> ---------------------------------------------------------------- [out] <176.2s> WealthOutSideKorea 0.002s 1.447s | 1524 97% 1477 [out] <176.2s> campaign_experience_battle_logged 0.000s 0.144s | 0 0% 65 [out] <176.2s> OnDeathCommands 0.000s 0.140s | 6 67% 4 [out] <176.2s> !!!! SLOW CALLBACK: max=0.058s avg=0.035s [out] <176.2s> ancillaries_character_created 0.000s 0.125s | 48 96% 46 [out] <176.2s> traits_personality_campaign_battle_logge 0.000s 0.079s | 0 0% 65 [out] <176.2s> !!!! INEFFICIENT: 100% of checks fail (65/65) [out] <176.2s> ambient_faction_round_start_listener 0.000s 0.022s | 0 0% 349 [out] <176.2s> traits_legendary 0.005s 0.013s | 1524 68% 1043 [out] <176.2s> ErrorCheck 0.000s 0.017s | 1 100% 1 [out] <176.2s> ================================================================ [out] <176.2s> [out] <176.2s> ================================================================ [out] <176.2s> [PROFILER] INEFFICIENT LISTENERS (< 5% success rate) [out] <176.2s> ---------------------------------------------------------------- [out] <176.2s> cdir_events_manager_application_listener | 11807 checks | 0.0% success | 0.016s wasted [out] <176.2s> → TRUE: 0 | FALSE: 11807 [out] <176.2s> DLC06NanmanSkillsgoal_pins | 2675 checks | 0.4% success | 0.008s wasted [out] <176.2s> → TRUE: 12 | FALSE: 2663 [out] <176.2s> achievements_a_man_of_many_names | 2416 checks | 0.0% success | 0.006s wasted