Renames performanceTimes to ConnectionTimes
This commit is contained in:
parent
702eb8cbbe
commit
655b7019d1
6
app.js
6
app.js
|
@ -52,7 +52,7 @@ const APP = {
|
||||||
handler: null
|
handler: null
|
||||||
},
|
},
|
||||||
// Used for automated performance tests
|
// Used for automated performance tests
|
||||||
performanceTimes: {
|
connectionTimes: {
|
||||||
"index.loaded": window.indexLoadedTime
|
"index.loaded": window.indexLoadedTime
|
||||||
},
|
},
|
||||||
UI,
|
UI,
|
||||||
|
@ -103,7 +103,7 @@ function obtainConfigAndInit() {
|
||||||
// Get config result callback
|
// Get config result callback
|
||||||
function(success, error) {
|
function(success, error) {
|
||||||
if (success) {
|
if (success) {
|
||||||
var now = APP.performanceTimes["configuration.fetched"] =
|
var now = APP.connectionTimes["configuration.fetched"] =
|
||||||
window.performance.now();
|
window.performance.now();
|
||||||
console.log("(TIME) configuration fetched:\t", now);
|
console.log("(TIME) configuration fetched:\t", now);
|
||||||
init();
|
init();
|
||||||
|
@ -124,7 +124,7 @@ function obtainConfigAndInit() {
|
||||||
|
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(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);
|
console.log("(TIME) document ready:\t", now);
|
||||||
|
|
||||||
URLProcessor.setConfigParametersFromUrl();
|
URLProcessor.setConfigParametersFromUrl();
|
||||||
|
|
|
@ -160,7 +160,7 @@ SmallVideo.createStreamElement = function (stream) {
|
||||||
|
|
||||||
element.onplay = function () {
|
element.onplay = function () {
|
||||||
var type = (isVideo ? 'video' : 'audio');
|
var type = (isVideo ? 'video' : 'audio');
|
||||||
var now = APP.performanceTimes[type + ".render"]
|
var now = APP.connectionTimes[type + ".render"]
|
||||||
= window.performance.now();
|
= window.performance.now();
|
||||||
console.log("(TIME) Render " + type + ":\t",
|
console.log("(TIME) Render " + type + ":\t",
|
||||||
now);
|
now);
|
||||||
|
|
Loading…
Reference in New Issue