add performance logging on demand, fix minion issues

This commit is contained in:
rootdarkarchon
2023-02-19 16:11:40 +01:00
parent 6cf0ecdef1
commit 44450b24b4
29 changed files with 580 additions and 294 deletions

View File

@@ -24,7 +24,7 @@ namespace MareSynchronos;
public sealed class Plugin : IDalamudPlugin
{
private readonly MarePlugin plugin;
private readonly MarePlugin _plugin;
public string Name => "Mare Synchronos";
private readonly ILogger<Plugin> _pluginLogger;
@@ -73,6 +73,7 @@ public sealed class Plugin : IDalamudPlugin
collection.AddSingleton<MareCharaFileManager>();
collection.AddSingleton<NotificationService>();
collection.AddSingleton<GameObjectHandlerFactory>();
collection.AddSingleton<PerformanceCollector>();
collection.AddSingleton<UiShared>();
collection.AddSingleton<SettingsUi>();
@@ -96,12 +97,12 @@ public sealed class Plugin : IDalamudPlugin
var mediator = serviceProvider.GetRequiredService<MareMediator>();
var logger = serviceProvider.GetRequiredService<ILogger<MarePlugin>>();
plugin = new MarePlugin(logger, serviceProvider, mediator);
_plugin = new MarePlugin(logger, serviceProvider, mediator);
}
public void Dispose()
{
_pluginLogger.LogTrace($"Disposing {GetType()}");
plugin.Dispose();
_plugin.Dispose();
}
}