Ludeon Forums

RimWorld => Mods => Releases => Topic started by: mospidatru on February 19, 2020, 05:29:27 PM

Title: [1.2][1.1][1.0] HarmonyProfiler - Profile your mods or modpacks
Post by: mospidatru on February 19, 2020, 05:29:27 PM
HarmonyProfiler
Need some code refactoring but all features work fine. And sorry for my bad english  :)

For example (on my low cpu 3 x 3ghz):
In HardcoreSK modpack + another 98 mods profiler set his patches for all mods and all harmony instances(exclude transpiled methods) in ~2 minutes. 5000 patches.
With transpiled methods ~30 minutes, how the game runs on my PC.

My tps on savegame without profiler patches ~200, with 5000 profiler patches for all mods ~60-100

Download
Github (https://github.com/bananasss00/RW-HarmonyProfiler/archive/master.zip)

Features

Work window can be accessed from developer mode:
(https://i.imgur.com/mNEYObc.png)

Profiler window:
(https://i.imgur.com/oRgXCUs.png)

Results in Excel(all timings in ms):
(https://i.imgur.com/Ue2ru8o.png)

Credits
HugsLib (https://github.com/UnlimitedHugs/RimworldHugsLib/blob/e965062118f2c93a80469acc0dfe82d4d3171b9e/Source/Patches/DebugWindowsOpener_Patch.cs) for debug button

License
Mod and source code or his parts feel free to use. Credit is optional.
Title: Re: [1.0] HarmonyProfiler - Profile your mods or modpacks
Post by: garfu on March 17, 2020, 05:30:56 PM
Any plans to update for 1.1?
Title: Re: [1.0] HarmonyProfiler - Profile your mods or modpacks
Post by: mospidatru on March 18, 2020, 05:34:30 AM
Quote from: garfu on March 17, 2020, 05:30:56 PM
Any plans to update for 1.1?
Yes, it will be soon.

New for RW1.0:
1) Added full assembly profiling by dllname
2) Added feature for harmony patches dumper. Dump possible harmony patches conflicts, where Prefix patch can disable another prefixes or transpilers
3) some fixes
Title: Re: [1.0] HarmonyProfiler - Profile your mods or modpacks
Post by: Kiame on March 25, 2020, 11:59:59 PM
Wow i am very interested in profiling all my mods. I am watching this for 1.1!
Title: Re: [1.0] HarmonyProfiler - Profile your mods or modpacks
Post by: mospidatru on March 26, 2020, 11:29:14 AM
Hot update for RW1.1:
https://github.com/bananasss00/RW-HarmonyProfiler/releases/tag/0.2_v1.1-pre

quickly looked through, like everything works.
Title: Re: [1.1pre][1.0] HarmonyProfiler - Profile your mods or modpacks
Post by: Kiame on March 26, 2020, 03:49:40 PM
Awesome I'll test it out tonight. Just curious do mod need to implent/use hugslib or does this mod support all mods? My mods do use Harmony but I do not use hugslib
Title: Re: [1.1pre][1.0] HarmonyProfiler - Profile your mods or modpacks
Post by: mospidatru on March 26, 2020, 06:55:12 PM
Ye, support all mods. HugsLib not needed, but profiler if find in mod implemented hugslib tick he set profiler for him too.
Title: Re: [1.1pre][1.0] HarmonyProfiler - Profile your mods or modpacks
Post by: Kiame on March 26, 2020, 08:25:25 PM
Thanks for the clarification!
Title: Re: [1.1pre][1.0] HarmonyProfiler - Profile your mods or modpacks
Post by: Kirmz on April 06, 2020, 05:02:15 AM
This is... it's too much man too much too much.
Title: Re: [1.1pre][1.0] HarmonyProfiler - Profile your mods or modpacks
Post by: Kiame on April 06, 2020, 09:28:56 PM
Thank you again for this great mod! It's helped me find slow spots in some of my mods - especially change dresser - and find other mods that cause intermitant slow downs. Amazingly helpful!
Title: Re: [1.1pre][1.0] HarmonyProfiler - Profile your mods or modpacks
Post by: mospidatru on April 08, 2020, 01:37:57 PM
Quote from: Kiame on April 06, 2020, 09:28:56 PM
Thank you again for this great mod! It's helped me find slow spots in some of my mods - especially change dresser - and find other mods that cause intermitant slow downs. Amazingly helpful!
Thanks for feedback. I'm glad the mod was useful  :)
Title: Re: [1.1pre][1.0] HarmonyProfiler - Profile your mods or modpacks
Post by: hilllcheald on April 24, 2020, 01:16:37 PM
oh wow. thanks a lot for all the extremely informative and helpful information and links, i need for my healthy recipes (https://delicerecipes.com/) project. that was just way too much. appreciating your effort.