Skip to content

Commit 72bd4c2

Browse files
committed
Info favorite icons cost
1 parent a761ec8 commit 72bd4c2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Plugins/Flow.Launcher.Plugin.BrowserBookmark/ChromiumBookmarkLoader.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ protected List<Bookmark> LoadBookmarks(string browserDataPath, string name)
5555
var faviconDbPath = Path.Combine(profile, "Favicons");
5656
if (File.Exists(faviconDbPath))
5757
{
58-
LoadFaviconsFromDb(faviconDbPath, profileBookmarks);
58+
Main._context.API.StopwatchLogInfo(ClassName, $"Load {profileBookmarks.Count} favorite icons cost", () =>
59+
{
60+
LoadFaviconsFromDb(faviconDbPath, profileBookmarks);
61+
});
5962
}
6063
}
6164

Plugins/Flow.Launcher.Plugin.BrowserBookmark/FirefoxBookmarkLoader.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ protected List<Bookmark> GetBookmarksFromPath(string placesPath)
8484
var faviconDbPath = Path.Combine(Path.GetDirectoryName(placesPath), "favicons.sqlite");
8585
if (File.Exists(faviconDbPath))
8686
{
87-
LoadFaviconsFromDb(faviconDbPath, bookmarks);
87+
Main._context.API.StopwatchLogInfo(ClassName, $"Load {bookmarks.Count} favorite icons cost", () =>
88+
{
89+
LoadFaviconsFromDb(faviconDbPath, bookmarks);
90+
});
8891
}
8992
}
9093

0 commit comments

Comments
 (0)