Merge "Rename performance.parsoid.domLoad to performance.domLoad"

This commit is contained in:
jenkins-bot 2013-10-17 19:30:58 +00:00 committed by Gerrit Code Review
commit 5dd44dab93

View file

@ -543,7 +543,7 @@ ve.init.mw.Target.prototype.load = function () {
.fail( ve.bind( ve.init.mw.Target.onLoadError, this ) ); .fail( ve.bind( ve.init.mw.Target.onLoadError, this ) );
this.loading.done( function ( data, status, jqxhr ) { this.loading.done( function ( data, status, jqxhr ) {
ve.track( 'performance.parsoid.domLoad', { ve.track( 'performance.domLoad', {
'bytes': $.byteLength( jqxhr.responseText ), 'bytes': $.byteLength( jqxhr.responseText ),
'duration': ve.now() - start, 'duration': ve.now() - start,
'cacheHit': /hit/i.test( jqxhr.getResponseHeader( 'X-Cache' ) ), 'cacheHit': /hit/i.test( jqxhr.getResponseHeader( 'X-Cache' ) ),
@ -602,7 +602,7 @@ ve.init.mw.Target.prototype.save = function ( doc, options ) {
.fail( ve.bind( ve.init.mw.Target.onSaveError, this ) ); .fail( ve.bind( ve.init.mw.Target.onSaveError, this ) );
this.saving.done( function ( data, status, jqxhr ) { this.saving.done( function ( data, status, jqxhr ) {
ve.track( 'performance.parsoid.domSave', { ve.track( 'performance.domSave', {
'bytes': $.byteLength( jqxhr.responseText ), 'bytes': $.byteLength( jqxhr.responseText ),
'duration': ve.now() - start, 'duration': ve.now() - start,
'parsoid': jqxhr.getResponseHeader( 'X-Parsoid-Performance' ) 'parsoid': jqxhr.getResponseHeader( 'X-Parsoid-Performance' )