Performance

From Wikitech

Data

Metrics

Logs

  • Logstash. Primary log file database. Runtime errors, warnings and notices from MediaWiki, Apache, and other servers and services. Queryable from ElasticSearch through Kibana, and from the command-line on fluorine.

Module loading

[wikitech-l] Inspecting page performance with mw.loader.inspect(), Ori Livneh, October 2013

Get module source

function getSource( module ) {
	var version = mw.loader.getVersion( module );
	if ( !version ) {
		console.warn('Unknown module: ' + module );
		return false;
	}
	$.ajax( {
		url: mw.config.get('wgScriptPath') + '/load.php',
		data: {
			debug: true,
			only: 'scripts',
			modules: module,
			lang: mw.config.get('wgUserLanguage'),
			skin: mw.config.get('skin'),
			version: version,
			raw: 1
		},
		dataType: 'text',
	} ).done( function ( data ) {
		console.log( data );
	} );
}

Ideas

Ideas for improving site performance

See also