[Bug 2112442] Re: noble regression: update-manager takes > 30s to start
Tormod Volden
2112442 at bugs.launchpad.net
Wed Jun 4 09:36:17 UTC 2025
I patched it this way, and now I got the attached profiling output:
--- a/UpdateManager/UpdateManager.py
+++ b/UpdateManager/UpdateManager.py
@@ -31,6 +31,9 @@ GdkX11 # pyflakes
import warnings
+import cProfile
+import re
+
warnings.filterwarnings(
"ignore", "Accessed deprecated property", DeprecationWarning
)
@@ -242,8 +245,12 @@ class UpdateManager(Gtk.Window):
self._start_pane(install_backend)
def start_available(self, cancelled_update=False, error_occurred=False):
+ pr = cProfile.Profile()
+ pr.enable()
self._look_busy()
self.refresh_cache()
+ pr.disable()
+ pr.print_stats()
if self.cache is None:
return
** Attachment added: "upd-man-profiled.txt"
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/2112442/+attachment/5881970/+files/upd-man-profiled.txt
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/2112442
Title:
noble regression: update-manager takes > 30s to start
Status in update-manager package in Ubuntu:
New
Bug description:
After upgrading update-manager from 1:24.04.9 to 1:24.04.12 today,
update-manager now takes more than 30 seconds to start up, with CPU
time of e.g. 47 seconds, before the main GUI is displayed. It is the
same when using the -no-update option, and whether there are packages
to be updated or not.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/2112442/+subscriptions
More information about the foundations-bugs
mailing list