[gnome-software/wip/hughsie/vnd.flatpak.ref: 7/12] trivial: Add some more profiling in the flatpak plugin
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/hughsie/vnd.flatpak.ref: 7/12] trivial: Add some more profiling in the flatpak plugin
- Date: Tue, 20 Sep 2016 13:36:24 +0000 (UTC)
commit d61533325f4e18083bc1279a3cb68b1b26110fc4
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 0399dae..3bf6b51 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -920,6 +920,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)
@@ -1519,6 +1526,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]