Page MenuHomePhabricator

Measure time spent in rIC and $.ready with mw.loader.profiler.
Open, MediumPublic


The initial version that landed for T133646 ( measures the time spent in execute() and in runScript() for a given module.

This currently misses out on anything asynchronous, such as a $.ready or mw.requestIdleCallback closure.

The idea is to, when the profiler is enabled, instrument these during execution and measure their time as well.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 454465 had a related patch set uploaded (by Krinkle; owner: Krinkle):
[mediawiki/core@master] [WIP] resourceloader: Add rIC and $.ready tracking to mw.inspect

Tagging Fresnel as this data should automatically be picked up by the new probe for T221178.

Krinkle triaged this task as Medium priority.May 6 2019, 7:52 PM

Change 454465 abandoned by Krinkle:

[mediawiki/core@master] [WIP] resourceloader: Add rIC and $.ready tracking to mw.inspect