How to profile performance - Valheim-Modding/Wiki GitHub Wiki
There are a few .NET profilers you can use. This guide will focus on using dotTrace by JetBrains.
-
First follow this guide on setting up a debug version of valheim: https://github.com/Valheim-Modding/Wiki/wiki/Debugging-Plugins-via-IDE
-
Then follow this guide on how to setup a Unity configuration in dotTrace.
-
Inside your dotTrace configuration, specify the path to your mods PDB files (symbol files). If these don't exist you must follow steps in this guide to create them.