mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-03 14:23:43 +01:00
Improve startup performance tracking
This commit is contained in:
parent
9c6bcb2409
commit
5c6c96b6c0
3 changed files with 7 additions and 6 deletions
2
OtterGui
2
OtterGui
|
|
@ -1 +1 @@
|
|||
Subproject commit 9ee5721e317457e98f2b8a4500776770f57d204e
|
||||
Subproject commit d7867dfa6579d4e69876753e9cde72e13d3372ce
|
||||
|
|
@ -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 );
|
||||
|
|
|
|||
|
|
@ -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}",
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue