Selaa lähdekoodia

Renames performanceTimes to ConnectionTimes

j8
hristoterezov 9 vuotta sitten
vanhempi
commit
655b7019d1
2 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 3
    3
      app.js
  2. 1
    1
      modules/UI/videolayout/SmallVideo.js

+ 3
- 3
app.js Näytä tiedosto

@@ -52,7 +52,7 @@ const APP = {
52 52
         handler: null
53 53
     },
54 54
     // Used for automated performance tests
55
-    performanceTimes: {
55
+    connectionTimes: {
56 56
         "index.loaded": window.indexLoadedTime
57 57
     },
58 58
     UI,
@@ -103,7 +103,7 @@ function obtainConfigAndInit() {
103 103
             // Get config result callback
104 104
             function(success, error) {
105 105
                 if (success) {
106
-                    var now = APP.performanceTimes["configuration.fetched"] =
106
+                    var now = APP.connectionTimes["configuration.fetched"] =
107 107
                         window.performance.now();
108 108
                     console.log("(TIME) configuration fetched:\t", now);
109 109
                     init();
@@ -124,7 +124,7 @@ function obtainConfigAndInit() {
124 124
 
125 125
 
126 126
 $(document).ready(function () {
127
-    var now = APP.performanceTimes["document.ready"] = window.performance.now();
127
+    var now = APP.connectionTimes["document.ready"] = window.performance.now();
128 128
     console.log("(TIME) document ready:\t", now);
129 129
 
130 130
     URLProcessor.setConfigParametersFromUrl();

+ 1
- 1
modules/UI/videolayout/SmallVideo.js Näytä tiedosto

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

Loading…
Peruuta
Tallenna