Improve startup performance tracking

This commit is contained in:
Ottermandias 2023-03-09 15:37:25 +01:00
parent 9c6bcb2409
commit 5c6c96b6c0
3 changed files with 7 additions and 6 deletions

@ -1 +1 @@
Subproject commit 9ee5721e317457e98f2b8a4500776770f57d204e
Subproject commit d7867dfa6579d4e69876753e9cde72e13d3372ce

View file

@ -38,6 +38,7 @@ public partial class PathResolver : IDisposable
public unsafe PathResolver( ResourceLoader loader )
{
using var tApi = Penumbra.StartTimer.Measure( StartTimeType.PathResolver );
SignatureHelper.Initialise( this );
_loader = loader;
_animations = new AnimationState( DrawObjects );

View file

@ -1,6 +1,4 @@
using Lumina.Excel.GeneratedSheets;
using OtterGui.Classes;
using Penumbra.GameData;
using System;
namespace Penumbra.Util;
@ -15,8 +13,9 @@ public enum StartTimeType
Backup,
Mods,
Collections,
Api,
PathResolver,
Interface,
Api,
}
public enum PerformanceType
@ -63,6 +62,7 @@ public static class TimingExtensions
StartTimeType.Collections => "Loading Collections",
StartTimeType.Api => "Setting Up API",
StartTimeType.Interface => "Setting Up Interface",
StartTimeType.PathResolver => "Setting Up Path Resolver",
_ => $"Unknown {(int) type}",
};