From 3221f930c4240af5748ffee1d233f9fda64d2114 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Mon, 21 Jul 2025 21:17:30 +0800 Subject: [PATCH] Add info log message for plugin constructors --- Flow.Launcher.Core/Plugin/PluginsLoader.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Flow.Launcher.Core/Plugin/PluginsLoader.cs b/Flow.Launcher.Core/Plugin/PluginsLoader.cs index 8b8a14723..381772ea8 100644 --- a/Flow.Launcher.Core/Plugin/PluginsLoader.cs +++ b/Flow.Launcher.Core/Plugin/PluginsLoader.cs @@ -113,7 +113,9 @@ namespace Flow.Launcher.Core.Plugin plugins.Add(new PluginPair { Plugin = plugin, Metadata = metadata }); }); + metadata.InitTime += milliseconds; + API.LogInfo(ClassName, $"Constructor cost for <{metadata.Name}> is <{metadata.InitTime}ms>"); } if (erroredPlugins.Count > 0)