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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2112442
Title:
noble regression: update-manager takes > 30s to start
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/2112442/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs