Extension:NavigationTiming

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual
Crystal Clear action run.png
NavigationTiming

Release status: experimental

Implementation Ajax, Database
Description Logs perceived latency measurements from client-side
Author(s) Asher Feldman, Ori Livneh, Patrick Reilly
Latest version 0.0.1 (2013-03-16)
MediaWiki 1.21+
PHP 5.3+
Database changes no
License GNU General Public License 2.0 or later
Download
README
Parameters
  • $wgNavigationTimingSamplingFactor
Hooks used
BeforePageDisplay

ResourceLoaderGetConfigVars

Translate the NavigationTiming extension if possible

Check usage and version matrix; code metrics
Bugs: list open list all report

The NavigationTiming extension allows logging perceived latency measurements, exposed by browsers as part of the proposed Navigation Timing API, which «defines an interface for web applications to access timing information related to navigation and elements».

What data is logged?[edit | edit source]

How is the information used?[edit | edit source]

Engineers at the Wikimedia Foundation intend to use this data to assess the impact (positive and negative) of changes to code or server configuration, and thus to help guide ongoing work on site performance.

Sample configuration[edit | edit source]

require_once( "$IP/extensions/EventLogging/EventLogging.php" );  // required dependency
require_once( "$IP/extensions/NavigationTiming/NavigationTiming.php" );
$wgNavigationTimingSamplingFactor = 10000;  // log 1:10,000 requests.

Additional resources[edit | edit source]