Merge pull request #602 from jitsi/performanceTime_format

Renames performanceTimes to ConnectionTimes
This commit is contained in:
damencho 2016-04-11 13:41:40 -05:00
commit 47a64190a6
2 changed files with 4 additions and 4 deletions

6
app.js
View File

@ -52,7 +52,7 @@ const APP = {
handler: null
},
// Used for automated performance tests
performanceTimes: {
connectionTimes: {
"index.loaded": window.indexLoadedTime
},
UI,
@ -103,7 +103,7 @@ function obtainConfigAndInit() {
// Get config result callback
function(success, error) {
if (success) {
var now = APP.performanceTimes["configuration.fetched"] =
var now = APP.connectionTimes["configuration.fetched"] =
window.performance.now();
console.log("(TIME) configuration fetched:\t", now);
init();
@ -124,7 +124,7 @@ function obtainConfigAndInit() {
$(document).ready(function () {
var now = APP.performanceTimes["document.ready"] = window.performance.now();
var now = APP.connectionTimes["document.ready"] = window.performance.now();
console.log("(TIME) document ready:\t", now);
URLProcessor.setConfigParametersFromUrl();

View File

@ -160,7 +160,7 @@ SmallVideo.createStreamElement = function (stream) {
element.onplay = function () {
var type = (isVideo ? 'video' : 'audio');
var now = APP.performanceTimes[type + ".render"]
var now = APP.connectionTimes[type + ".render"]
= window.performance.now();
console.log("(TIME) Render " + type + ":\t",
now);