| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 /** | 5 /** |
| 6 * @param {!WebInspector.TracingModel} tracingModel | 6 * @param {!WebInspector.TracingModel} tracingModel |
| 7 * @constructor | 7 * @constructor |
| 8 * @extends {WebInspector.TimelineModel} | 8 * @extends {WebInspector.TimelineModel} |
| 9 */ | 9 */ |
| 10 WebInspector.TracingTimelineModel = function(tracingModel) | 10 WebInspector.TracingTimelineModel = function(tracingModel) |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 | 606 |
| 607 /** | 607 /** |
| 608 * @return {?Object} | 608 * @return {?Object} |
| 609 */ | 609 */ |
| 610 counters: function() | 610 counters: function() |
| 611 { | 611 { |
| 612 return this.type() === WebInspector.TracingTimelineModel.RecordType.Upda
teCounters ? this._event.args.data : null; | 612 return this.type() === WebInspector.TracingTimelineModel.RecordType.Upda
teCounters ? this._event.args.data : null; |
| 613 }, | 613 }, |
| 614 | 614 |
| 615 /** | 615 /** |
| 616 * @return {boolean} |
| 617 */ |
| 618 isProgram: function() |
| 619 { |
| 620 return this.type() === WebInspector.TracingTimelineModel.RecordType.Prog
ram; |
| 621 }, |
| 622 |
| 623 /** |
| 616 * @return {?Object} | 624 * @return {?Object} |
| 617 */ | 625 */ |
| 618 highlightQuad: function() | 626 highlightQuad: function() |
| 619 { | 627 { |
| 620 return this._event.highlightQuad || null; | 628 return this._event.highlightQuad || null; |
| 621 }, | 629 }, |
| 622 | 630 |
| 623 /** | 631 /** |
| 624 * @return {string} | 632 * @return {string} |
| 625 */ | 633 */ |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 { | 702 { |
| 695 var tokens = [this.title()]; | 703 var tokens = [this.title()]; |
| 696 var data = this._event.args.data; | 704 var data = this._event.args.data; |
| 697 if (data) { | 705 if (data) { |
| 698 for (var key in data) | 706 for (var key in data) |
| 699 tokens.push(data[key]); | 707 tokens.push(data[key]); |
| 700 } | 708 } |
| 701 return regExp.test(tokens.join("|")); | 709 return regExp.test(tokens.join("|")); |
| 702 } | 710 } |
| 703 } | 711 } |
| OLD | NEW |