[gnome-software/gnome-3-22] trivial: Add some more profiling in the flatpak plugin
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-22] trivial: Add some more profiling in the flatpak plugin
- Date: Tue, 7 Mar 2017 16:27:42 +0000 (UTC)
commit fee68b4c07988165bf719e54ec18fdf8dc2574a4
Author: Richard Hughes <richard hughsie com>
Date: Sat Sep 17 14:03:53 2016 +0100
trivial: Add some more profiling in the flatpak plugin
src/plugins/gs-flatpak.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index 01d97d2..7e6eb93 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -1032,6 +1032,13 @@ gs_plugin_refine_item_origin_hostname (GsFlatpak *self, GsApp *app,
{
g_autoptr(FlatpakRemote) xremote = NULL;
g_autofree gchar *url = NULL;
+ g_autoptr(AsProfileTask) ptask = NULL;
+
+ /* profile */
+ ptask = as_profile_start (gs_plugin_get_profile (self->plugin),
+ "flatpak::refine-origin-hostname{%s}",
+ gs_app_get_id (app));
+ g_assert (ptask != NULL);
/* already set */
if (gs_app_get_origin_hostname (app) != NULL)
@@ -1666,6 +1673,14 @@ gs_flatpak_refine_appstream (GsFlatpak *self, GsApp *app, GError **error)
{
AsApp *item;
const gchar *unique_id = gs_app_get_unique_id (app);
+ g_autoptr(AsProfileTask) ptask = NULL;
+
+ /* profile */
+ ptask = as_profile_start (gs_plugin_get_profile (self->plugin),
+ "flatpak::refine-appstream{%s}",
+ gs_app_get_id (app));
+ g_assert (ptask != NULL);
+
if (unique_id == NULL)
return TRUE;
item = as_store_get_app_by_unique_id (self->store,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]