| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 /** | 4 /** |
| 5 * @unrestricted | 5 * @unrestricted |
| 6 */ | 6 */ |
| 7 WebInspector.ServerTiming = class { | 7 WebInspector.ServerTiming = class { |
| 8 /** | 8 /** |
| 9 * @param {string} metric | 9 * @param {string} metric |
| 10 * @param {number} value | 10 * @param {number} value |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 var serverTimings = rawServerTimingHeaders.reduce((memo, header) => { | 50 var serverTimings = rawServerTimingHeaders.reduce((memo, header) => { |
| 51 var timing = createFromHeaderValue(header.value); | 51 var timing = createFromHeaderValue(header.value); |
| 52 Array.prototype.push.apply(memo, timing); | 52 Array.prototype.push.apply(memo, timing); |
| 53 return memo; | 53 return memo; |
| 54 }, []); | 54 }, []); |
| 55 serverTimings.sort((a, b) => a.metric.toLowerCase().compareTo(b.metric.toLow
erCase())); | 55 serverTimings.sort((a, b) => a.metric.toLowerCase().compareTo(b.metric.toLow
erCase())); |
| 56 return serverTimings; | 56 return serverTimings; |
| 57 } | 57 } |
| 58 }; | 58 }; |
| 59 | |
| 60 | |
| OLD | NEW |