Skip to content

Commit 3221f93

Browse files
committed
Add info log message for plugin constructors
1 parent e024078 commit 3221f93

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Flow.Launcher.Core/Plugin/PluginsLoader.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ private static List<PluginPair> DotNetPlugins(List<PluginMetadata> source)
113113

114114
plugins.Add(new PluginPair { Plugin = plugin, Metadata = metadata });
115115
});
116+
116117
metadata.InitTime += milliseconds;
118+
API.LogInfo(ClassName, $"Constructor cost for <{metadata.Name}> is <{metadata.InitTime}ms>");
117119
}
118120

119121
if (erroredPlugins.Count > 0)

0 commit comments

Comments
 (0)