Merge lp:~mvo/software-center/more-performance-measurement into lp:software-center
Proposed by
Michael Vogt
Status: | Merged |
---|---|
Merged at revision: | 3043 |
Proposed branch: | lp:~mvo/software-center/more-performance-measurement |
Merge into: | lp:software-center |
Diff against target: |
229 lines (+43/-32) 7 files modified
softwarecenter/ui/gtk3/app.py (+4/-11) softwarecenter/ui/gtk3/models/appstore2.py (+4/-3) softwarecenter/ui/gtk3/panes/availablepane.py (+13/-6) softwarecenter/ui/gtk3/panes/softwarepane.py (+9/-7) softwarecenter/ui/gtk3/session/viewmanager.py (+3/-2) softwarecenter/ui/gtk3/views/appview.py (+3/-1) softwarecenter/utils.py (+7/-2) |
To merge this branch: | bzr merge lp:~mvo/software-center/more-performance-measurement |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Natalia Bidart | Approve | ||
Review via email: mp+111249@code.launchpad.net |
Description of the change
This branch adds some more "probe" points that run "with ExecutionTime()" to get a better idea where the
time is spend on startup. To run:
$ ./software-center --measure-
It also adds a new limit of "0.1"s by default to avoid reportng time intervals that are mostly irrelevant.
Running this on my box shows that e.g. out of 4.6s startup until the window is fully ready about 1.2s
are spend in the apt cache open, 0.4s are spend parsing the applications menu and 0.6s creating the
LobbyViewGtk. So this branch should help figuring out what needs speedup or could be delayed/loaded in
the background.
To post a comment you must log in.
Branch looks good.
This is the output from my box, but is worth noting that this was run using a 'warm' disk cache:
nessita@ dali:~/ canonical/ software- center/ review_ more-performanc e-measurement$ PYTHONPATH=. ./software-center --measure- startup- time performance - DEBUG - create review loader: 0.164757013321 performance - DEBUG - create SoftwareCenterApp: 0.29595708847 performance - DEBUG - ** main window visible after: 1.1121571064 seconds performance - DEBUG - open the apt cache (in event loop): 0.562124013901 performance - DEBUG - AvailablePane. init_view pending events: 0.834131002426 performance - DEBUG - cat_parser. parse_applicati ons_menu( ): 0.198755025864 performance - DEBUG - Appview.__init__ create AppPropertiesHe lper: 0.198960065842 performance - DEBUG - SoftwarePane. AppView: 0.205328941345 performance - DEBUG - SoftwarePane. AppDetailsView: 0.20628619194 performance - DEBUG - SoftwarePane. init_view( ): 0.430808067322 performance - DEBUG - populate model from query: 'Xapian: :Query( (<alldocuments> AND ATapplication))' (threaded: False): 0.152559041977 performance - DEBUG - create LobbyViewGtk: 0.447153091431 performance - DEBUG - view_widget. init_view( ) (<AvailablePane object at 0x3276e60 (softwarecenter +ui+gtk3+ panes+available pane+AvailableP ane at 0x311a6a0)>): 1.90255093575 performance - DEBUG - show() & gtk events until visible: 1.99886608124 performance - DEBUG - ** main window fully ready after: 2.72254014015 seconds
2012-06-20 13:33:37,600 - softwarecenter.
2012-06-20 13:33:37,607 - softwarecenter.
1340210018.0
2012-06-20 13:33:37,996 - softwarecenter.
2012-06-20 13:33:38,538 - softwarecenter.
2012-06-20 13:33:38,538 - softwarecenter.
2012-06-20 13:33:38,738 - softwarecenter.
2012-06-20 13:33:38,738 - softwarecenter.
2012-06-20 13:33:38,744 - softwarecenter.
2012-06-20 13:33:38,952 - softwarecenter.
2012-06-20 13:33:38,969 - softwarecenter.
2012-06-20 13:33:39,334 - softwarecenter.
2012-06-20 13:33:39,449 - softwarecenter.
2012-06-20 13:33:39,606 - softwarecenter.
2012-06-20 13:33:39,606 - softwarecenter.
2.72254014015
2012-06-20 13:33:39,606 - softwarecenter.