mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-09-25 11:17:54 +00:00
Version our EL profiling
This is just a clever way of marking messages as being useful again - this way I don't need to go through the hassle of deleting old data. Change-Id: I6a0574eaae063014340484ffd2552f8118abb939
This commit is contained in:
parent
65db71572c
commit
da86c5f750
|
@ -882,7 +882,11 @@
|
|||
imgSize = imgSize || {};
|
||||
|
||||
profiling[thisid] = {
|
||||
version: '1.0',
|
||||
/* Changelog:
|
||||
* 1.1 fixed the issue with zeros in every message
|
||||
* 1.0 first release
|
||||
*/
|
||||
version: '1.1',
|
||||
action: type,
|
||||
imageWidth: imgSize.width,
|
||||
imageHeight: imgSize.height,
|
||||
|
|
|
@ -181,7 +181,7 @@
|
|||
|
||||
function checkProfileEventLog( type, msg ) {
|
||||
assert.strictEqual( type, 'MediaViewerPerf', 'EventLogging gets the right event type for profile message ' + msgName + '.' );
|
||||
assert.strictEqual( msg.version, '1.0', 'EventLogging gets the right version number for profile message ' + msgName + '.' );
|
||||
assert.strictEqual( msg.version, '1.1', 'EventLogging gets the right version number for profile message ' + msgName + '.' );
|
||||
assert.strictEqual( msg.action, msgName, 'EventLogging gets the right action name for message ' + msgName + '.' );
|
||||
assert.strictEqual( msg.start, undefined, 'MultimediaViewer#profileEnd deletes the event start time from ' + msgName + ' profiles sent to EventLogging.' );
|
||||
assert.strictEqual( msg.fileSize, expectedFileSize, 'EventLogging sees the correct file size for ' + msgName + ' profiles.' );
|
||||
|
|
Loading…
Reference in a new issue