Page MenuHomePhabricator

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

Description

The initial version that landed for T133646 (https://gerrit.wikimedia.org/r/444773) 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

https://gerrit.wikimedia.org/r/454465

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

Reason:

https://gerrit.wikimedia.org/r/454465