| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 this._rootRecord = new WebInspector.TimelinePresentationModel.RootRecord
(); | 79 this._rootRecord = new WebInspector.TimelinePresentationModel.RootRecord
(); |
| 80 /** @type {!Object.<string, !WebInspector.TimelinePresentationModel.Reco
rd>} */ | 80 /** @type {!Object.<string, !WebInspector.TimelinePresentationModel.Reco
rd>} */ |
| 81 this._coalescingBuckets = {}; | 81 this._coalescingBuckets = {}; |
| 82 }, | 82 }, |
| 83 | 83 |
| 84 /** | 84 /** |
| 85 * @param {!WebInspector.TimelineModel.Record} record | 85 * @param {!WebInspector.TimelineModel.Record} record |
| 86 */ | 86 */ |
| 87 addRecord: function(record) | 87 addRecord: function(record) |
| 88 { | 88 { |
| 89 if (record.type() === WebInspector.TracingTimelineModel.RecordType.Progr
am) { | 89 if (record.type() === WebInspector.TimelineModel.RecordType.Program) { |
| 90 var records = record.children(); | 90 var records = record.children(); |
| 91 for (var i = 0; i < records.length; ++i) | 91 for (var i = 0; i < records.length; ++i) |
| 92 this._innerAddRecord(this._rootRecord, records[i]); | 92 this._innerAddRecord(this._rootRecord, records[i]); |
| 93 } else { | 93 } else { |
| 94 this._innerAddRecord(this._rootRecord, record); | 94 this._innerAddRecord(this._rootRecord, record); |
| 95 } | 95 } |
| 96 }, | 96 }, |
| 97 | 97 |
| 98 /** | 98 /** |
| 99 * @param {!WebInspector.TimelinePresentationModel.Record} parentRecord | 99 * @param {!WebInspector.TimelinePresentationModel.Record} parentRecord |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 /** | 573 /** |
| 574 * @return {boolean} | 574 * @return {boolean} |
| 575 */ | 575 */ |
| 576 hasWarnings: function() | 576 hasWarnings: function() |
| 577 { | 577 { |
| 578 return false; | 578 return false; |
| 579 }, | 579 }, |
| 580 | 580 |
| 581 __proto__: WebInspector.TimelinePresentationModel.Record.prototype | 581 __proto__: WebInspector.TimelinePresentationModel.Record.prototype |
| 582 } | 582 } |
| OLD | NEW |