[gnome-software] trivial: Report how long the post-setup AppStream search takes



commit f798b806dfcd47c38a940aca4555125b5be14888
Author: Richard Hughes <richard hughsie com>
Date:   Wed Oct 30 17:29:28 2013 +0000

    trivial: Report how long the post-setup AppStream search takes

 src/plugins/gs-plugin-appstream.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index 0c66333..5722df6 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -751,6 +751,7 @@ gs_plugin_add_search (GsPlugin *plugin,
        }
 
        /* search categories for the search term */
+       gs_profile_start (plugin->profile, "appstream::search");
        array = appstream_cache_get_items (plugin->priv->cache);
        for (i = 0; i < array->len; i++) {
                item = g_ptr_array_index (array, i);
@@ -762,6 +763,7 @@ gs_plugin_add_search (GsPlugin *plugin,
                        gs_plugin_add_app (list, app);
                }
        }
+       gs_profile_stop (plugin->profile, "appstream::search");
 out:
        return ret;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]