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:
Mark Holmquist 2014-01-08 09:22:52 -08:00
parent 65db71572c
commit da86c5f750
2 changed files with 6 additions and 2 deletions

View file

@ -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,

View file

@ -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.' );