浏览代码

Renames performanceTimes to ConnectionTimes

j8
hristoterezov 9 年前
父节点
当前提交
655b7019d1
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 3
    3
      app.js
  2. 1
    1
      modules/UI/videolayout/SmallVideo.js

+ 3
- 3
app.js 查看文件

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

+ 1
- 1
modules/UI/videolayout/SmallVideo.js 查看文件

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

正在加载...
取消
保存