mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-02 05:43:42 +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 )
|
public unsafe PathResolver( ResourceLoader loader )
|
||||||
{
|
{
|
||||||
|
using var tApi = Penumbra.StartTimer.Measure( StartTimeType.PathResolver );
|
||||||
SignatureHelper.Initialise( this );
|
SignatureHelper.Initialise( this );
|
||||||
_loader = loader;
|
_loader = loader;
|
||||||
_animations = new AnimationState( DrawObjects );
|
_animations = new AnimationState( DrawObjects );
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
using Lumina.Excel.GeneratedSheets;
|
using System;
|
||||||
using OtterGui.Classes;
|
|
||||||
using Penumbra.GameData;
|
|
||||||
|
|
||||||
namespace Penumbra.Util;
|
namespace Penumbra.Util;
|
||||||
|
|
||||||
|
|
@ -15,8 +13,9 @@ public enum StartTimeType
|
||||||
Backup,
|
Backup,
|
||||||
Mods,
|
Mods,
|
||||||
Collections,
|
Collections,
|
||||||
Api,
|
PathResolver,
|
||||||
Interface,
|
Interface,
|
||||||
|
Api,
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum PerformanceType
|
public enum PerformanceType
|
||||||
|
|
@ -63,7 +62,8 @@ public static class TimingExtensions
|
||||||
StartTimeType.Collections => "Loading Collections",
|
StartTimeType.Collections => "Loading Collections",
|
||||||
StartTimeType.Api => "Setting Up API",
|
StartTimeType.Api => "Setting Up API",
|
||||||
StartTimeType.Interface => "Setting Up Interface",
|
StartTimeType.Interface => "Setting Up Interface",
|
||||||
_ => $"Unknown {( int )type}",
|
StartTimeType.PathResolver => "Setting Up Path Resolver",
|
||||||
|
_ => $"Unknown {(int) type}",
|
||||||
};
|
};
|
||||||
|
|
||||||
public static string ToName( this PerformanceType type )
|
public static string ToName( this PerformanceType type )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue