Commit 1363c9a0 authored by twanvl's avatar twanvl

profile the loading of package images

parent 5bb79f8f
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include <gui/control/package_list.hpp> #include <gui/control/package_list.hpp>
#include <util/io/package_manager.hpp> #include <util/io/package_manager.hpp>
#include <util/alignment.hpp> #include <util/alignment.hpp>
#include <script/profiler.hpp>
DECLARE_TYPEOF_COLLECTION(PackagedP); DECLARE_TYPEOF_COLLECTION(PackagedP);
...@@ -64,9 +65,13 @@ void PackageList::showData(const String& pattern) { ...@@ -64,9 +65,13 @@ void PackageList::showData(const String& pattern) {
packages.clear(); packages.clear();
// find matching packages // find matching packages
vector<PackagedP> matching; vector<PackagedP> matching;
{
PROFILER(_("find matching packages"));
package_manager.findMatching(pattern, matching); package_manager.findMatching(pattern, matching);
}
FOR_EACH(p, matching) { FOR_EACH(p, matching) {
// open image // open image
PROFILER(_("load package image"));
InputStreamP stream = p->openIconFile(); InputStreamP stream = p->openIconFile();
Image img; Image img;
Bitmap bmp; Bitmap bmp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment