Changeset 67474 in webkit
- Timestamp:
- Sep 14, 2010 9:30:45 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r67471 r67474 1 2010-09-14 Andrey Kosyakov <caseq@chromium.org> 2 3 Reviewed by Yury Semikhatsky. 4 5 Web Inspector: [Resources panel] [HAR] Need a way to save timing data. 6 https://bugs.webkit.org/show_bug.cgi?id=45663 7 8 * http/tests/inspector/resource-har-conversion-expected.txt: 9 * http/tests/inspector/resource-parameters-expected.txt: 10 * http/tests/inspector/resource-test2.js: Added entire timings object to list of non-deterministic fields. 11 * http/tests/inspector/resource-tests.js: Ditto. 12 1 13 2010-09-14 Hans Wennborg <hans@chromium.org> 2 14 -
trunk/LayoutTests/http/tests/inspector/resource-har-conversion-expected.txt
r66735 r67474 26 26 bodySize : <number> 27 27 } 28 timings : { 29 blocked : -1 30 dns : -1 31 connect : -1 32 send : -1 33 wait : <number> 34 receive : <number> 35 ssl : -1 36 } 28 timings : <object> 37 29 } 38 30 1 : { … … 59 51 bodySize : <number> 60 52 } 61 timings : { 62 blocked : -1 63 dns : -1 64 connect : -1 65 send : -1 66 wait : <number> 67 receive : <number> 68 ssl : -1 69 } 53 timings : <object> 70 54 } 71 55 2 : { … … 92 76 bodySize : <number> 93 77 } 94 timings : { 95 blocked : -1 96 dns : -1 97 connect : -1 98 send : -1 99 wait : <number> 100 receive : <number> 101 ssl : -1 102 } 78 timings : <object> 103 79 } 104 80 3 : { … … 129 105 bodySize : <number> 130 106 } 131 timings : { 132 blocked : -1 133 dns : -1 134 connect : -1 135 send : -1 136 wait : <number> 137 receive : <number> 138 ssl : -1 139 } 107 timings : <object> 140 108 } 141 109 } -
trunk/LayoutTests/http/tests/inspector/resource-parameters-expected.txt
r66735 r67474 50 50 bodySize : 14 51 51 } 52 timings : { 53 blocked : -1 54 dns : -1 55 connect : -1 56 send : -1 57 wait : <number> 58 receive : <number> 59 ssl : -1 60 } 52 timings : <object> 61 53 } 62 54 -
trunk/LayoutTests/http/tests/inspector/resource-test2.js
r66672 r67474 7 7 receive: 1, 8 8 headers: 1, 9 timings: 1, 9 10 }; 10 11 -
trunk/LayoutTests/http/tests/inspector/resource-tests.js
r60562 r67474 5 5 receive: 1, 6 6 headers: 1, 7 timings: 1, 7 8 }; 8 9 -
trunk/WebCore/ChangeLog
r67473 r67474 1 2010-09-14 Andrey Kosyakov <caseq@chromium.org> 2 3 Reviewed by Yury Semikhatsky. 4 5 Web Inspector: [Resources panel] [HAR] Need a way to save timing data. 6 Added support for resource timings to HAREntry. 7 https://bugs.webkit.org/show_bug.cgi?id=45663 8 9 * inspector/front-end/HAREntry.js: 10 (WebInspector.HAREntry.prototype._buildTimings): 11 (WebInspector.HAREntry.prototype._toMilliseconds): 12 (WebInspector.HAREntry.prototype._interval): 13 1 14 2010-09-14 Kwang Yul Seo <skyul@company100.net> 2 15 -
trunk/WebCore/inspector/front-end/HAREntry.js
r66669 r67474 96 96 _buildTimings: function() 97 97 { 98 var waitForConnection = this._interval("connectStart", "connectEnd"); 99 var blocked; 100 var connect; 101 var dns = this._interval("dnsStart", "dnsEnd"); 102 var send = this._interval("sendStart", "sendEnd"); 103 var ssl = this._interval("sslStart", "sslEnd"); 104 105 if (ssl !== -1 && send !== -1) 106 send -= ssl; 107 108 if (this._resource.connectionReused) { 109 connect = -1; 110 blocked = waitForConnection; 111 } else { 112 blocked = 0; 113 connect = waitForConnection; 114 if (dns !== -1) 115 connect -= dns; 116 } 117 98 118 return { 99 blocked: -1, // Not available.100 dns: -1, // Not available.101 connect: -1, // Not available.102 send: -1, // Not available.103 wait: this._ toMilliseconds(this._resource.latency),119 blocked: blocked, 120 dns: dns, 121 connect: connect, 122 send: send, 123 wait: this._interval("sendEnd", "receiveHeadersEnd"), 104 124 receive: this._toMilliseconds(this._resource.receiveDuration), 105 ssl: -1 // Not available.125 ssl: ssl 106 126 }; 107 127 }, … … 134 154 { 135 155 return time === -1 ? -1 : Math.round(time * 1000); 156 }, 157 158 _interval: function(start, end) 159 { 160 var timing = this._resource.timing; 161 if (!timing) 162 return -1; 163 var startTime = timing[start]; 164 return typeof startTime !== "number" || startTime === -1 ? -1 : Math.round(timing[end] - startTime); 136 165 } 137 166 };
Note: See TracChangeset
for help on using the changeset viewer.