[gnome-software] trivial: Use the GsFlatpak ID in the profiling results
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Use the GsFlatpak ID in the profiling results
- Date: Tue, 28 Feb 2017 12:00:31 +0000 (UTC)
commit 057d17a19e9f7a5495ba8f9d94d11f50d4163ce7
Author: Richard Hughes <richard hughsie com>
Date: Tue Feb 28 09:23:00 2017 +0000
trivial: Use the GsFlatpak ID in the profiling results
src/plugins/gs-flatpak.c | 58 ++++++++++++++++++++++++++++-----------------
1 files changed, 36 insertions(+), 22 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index e500d14..eb3d0f1 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -208,7 +208,8 @@ gs_flatpak_add_apps_from_xremote (GsFlatpak *self,
/* profile */
ptask = as_profile_start (gs_plugin_get_profile (self->plugin),
- "flatpak::add-apps-from-remote{%s}",
+ "%s::add-apps-from-remote{%s}",
+ gs_flatpak_get_id (self),
flatpak_remote_get_name (xremote));
g_assert (ptask != NULL);
@@ -316,8 +317,9 @@ gs_flatpak_rescan_installed (GsFlatpak *self,
g_autofree gchar *path_apps = NULL;
/* profile */
- ptask = as_profile_start_literal (gs_plugin_get_profile (self->plugin),
- "flatpak::rescan-installed");
+ ptask = as_profile_start (gs_plugin_get_profile (self->plugin),
+ "%s::rescan-installed",
+ gs_flatpak_get_id (self));
g_assert (ptask != NULL);
/* add all installed desktop files */
@@ -389,8 +391,9 @@ gs_flatpak_rescan_appstream_store (GsFlatpak *self,
g_autoptr(GPtrArray) xremotes = NULL;
/* profile */
- ptask = as_profile_start_literal (gs_plugin_get_profile (self->plugin),
- "flatpak::rescan-appstream");
+ ptask = as_profile_start (gs_plugin_get_profile (self->plugin),
+ "%s::rescan-appstream",
+ gs_flatpak_get_id (self));
g_assert (ptask != NULL);
/* remove all components */
@@ -426,8 +429,9 @@ gs_flatpak_setup (GsFlatpak *self, GCancellable *cancellable, GError **error)
g_autoptr(AsProfileTask) ptask = NULL;
g_autoptr(GError) error_md = NULL;
- ptask = as_profile_start_literal (gs_plugin_get_profile (self->plugin),
- "flatpak::setup");
+ ptask = as_profile_start (gs_plugin_get_profile (self->plugin),
+ "%s::setup",
+ gs_flatpak_get_id (self));
g_assert (ptask != NULL);
if (!gs_flatpak_refresh_appstream (self, G_MAXUINT, 0,
@@ -477,7 +481,8 @@ gs_flatpak_refresh_appstream_remote (GsFlatpak *self,
{
g_autoptr(AsProfileTask) ptask = NULL;
ptask = as_profile_start (gs_plugin_get_profile (self->plugin),
- "flatpak::refresh-appstream{%s}",
+ "%s::refresh-appstream{%s}",
+ gs_flatpak_get_id (self),
remote_name);
g_assert (ptask != NULL);
if (!flatpak_installation_update_appstream_sync (self->installation,
@@ -504,8 +509,9 @@ gs_flatpak_refresh_appstream (GsFlatpak *self, guint cache_age,
g_autoptr(GPtrArray) xremotes = NULL;
/* profile */
- ptask = as_profile_start_literal (gs_plugin_get_profile (self->plugin),
- "flatpak::refresh-appstream");
+ ptask = as_profile_start (gs_plugin_get_profile (self->plugin),
+ "%s::refresh-appstream",
+ gs_flatpak_get_id (self));
g_assert (ptask != NULL);
/* get remotes */
@@ -1224,8 +1230,9 @@ gs_plugin_refine_item_origin_ui (GsFlatpak *self, GsApp *app,
return TRUE;
/* find list of remotes */
- ptask = as_profile_start_literal (gs_plugin_get_profile (self->plugin),
- "flatpak::refine-origin-ui");
+ ptask = as_profile_start (gs_plugin_get_profile (self->plugin),
+ "%s::refine-origin-ui",
+ gs_flatpak_get_id (self));
g_assert (ptask != NULL);
xremotes = flatpak_installation_list_remotes (self->installation,
cancellable,
@@ -1261,7 +1268,8 @@ gs_plugin_refine_item_origin_hostname (GsFlatpak *self, GsApp *app,
/* profile */
ptask = as_profile_start (gs_plugin_get_profile (self->plugin),
- "flatpak::refine-origin-hostname{%s}",
+ "%s::refine-origin-hostname{%s}",
+ gs_flatpak_get_id (self),
gs_app_get_id (app));
g_assert (ptask != NULL);
@@ -1431,8 +1439,9 @@ gs_plugin_refine_item_origin (GsFlatpak *self,
return TRUE;
/* ensure metadata exists */
- ptask = as_profile_start_literal (gs_plugin_get_profile (self->plugin),
- "flatpak::refine-origin");
+ ptask = as_profile_start (gs_plugin_get_profile (self->plugin),
+ "%s::refine-origin",
+ gs_flatpak_get_id (self));
g_assert (ptask != NULL);
if (!gs_refine_item_metadata (self, app, cancellable, error))
return FALSE;
@@ -1549,8 +1558,9 @@ gs_plugin_refine_item_state (GsFlatpak *self,
return FALSE;
/* get apps and runtimes */
- ptask = as_profile_start_literal (gs_plugin_get_profile (self->plugin),
- "flatpak::refine-action");
+ ptask = as_profile_start (gs_plugin_get_profile (self->plugin),
+ "%s::refine-action",
+ gs_flatpak_get_id (self));
g_assert (ptask != NULL);
xrefs = flatpak_installation_list_installed_refs (self->installation,
cancellable, error);
@@ -1796,7 +1806,8 @@ gs_plugin_refine_item_metadata (GsFlatpak *self,
/* profile */
ptask = as_profile_start (gs_plugin_get_profile (self->plugin),
- "flatpak::refine-metadata{%s}",
+ "%s::refine-metadata{%s}",
+ gs_flatpak_get_id (self),
gs_app_get_id (app));
g_assert (ptask != NULL);
@@ -1915,8 +1926,9 @@ gs_plugin_refine_item_size (GsFlatpak *self,
}
/* just get the size of the app */
- ptask = as_profile_start_literal (gs_plugin_get_profile (self->plugin),
- "flatpak::refine-size");
+ ptask = as_profile_start (gs_plugin_get_profile (self->plugin),
+ "%s::refine-size",
+ gs_flatpak_get_id (self));
g_assert (ptask != NULL);
if (!gs_plugin_refine_item_origin (self, app,
cancellable, error))
@@ -1998,7 +2010,8 @@ gs_flatpak_refine_appstream (GsFlatpak *self, GsApp *app, GError **error)
/* profile */
ptask = as_profile_start (gs_plugin_get_profile (self->plugin),
- "flatpak::refine-appstream{%s}",
+ "%s::refine-appstream{%s}",
+ gs_flatpak_get_id (self),
gs_app_get_id (app));
g_assert (ptask != NULL);
@@ -2040,7 +2053,8 @@ gs_flatpak_refine_app (GsFlatpak *self,
/* profile */
ptask = as_profile_start (gs_plugin_get_profile (self->plugin),
- "flatpak::refine{%s}",
+ "%s::refine{%s}",
+ gs_flatpak_get_id (self),
gs_app_get_id (app));
g_assert (ptask != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]