Page MenuHomePhabricator

Add performance metrics for first load
Closed, ResolvedPublic3 Estimated Story Points


I recommend that you track performance from the user's perspective. For instance, the time it takes between requesting the special page to them being able to see all the elements from their global watchlist. This can be done fairly simply with mw.track. The data will then go to EventLogging and be easily displayed in a dashboard. Looking at the high percentiles, you should be able to see if there are some serious outliers worth investigating. You should track as many timings this way that you think are relevant, for instance you might want to track "fast mode" separately.

Event names (based on other extensions):
timing.MediaWiki.GlobalWatchlist.firstload.display.normal and timing.MediaWiki.GlobalWatchlist.firstload.display.fastmode
(display corresponds to using GlobalWatchlistSiteDisplay, vue is for GlobalWatchlistSiteVue in case that loads faster or slower when it becomes available)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
DannyS712 triaged this task as Medium priority.Sep 13 2020, 5:44 PM
DannyS712 moved this task from Unsorted to Next on the User-DannyS712 board.
DannyS712 set the point value for this task to 3.

Change 628559 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[mediawiki/extensions/GlobalWatchlist@master] Add performance metrics for first load

DannyS712 updated the task description. (Show Details)
DannyS712 moved this task from Next to Awaiting review and deployment on the User-DannyS712 board.

@Gilles since I'm not the most familiar with mw.track, would you mind taking a look at the patch?

Change 628559 merged by jenkins-bot:
[mediawiki/extensions/GlobalWatchlist@master] Add performance metrics for first load

DannyS712 claimed this task.
DannyS712 moved this task from In progress to Done on the MediaWiki-extensions-GlobalWatchlist board.
DannyS712 set Final Story Points to 3.