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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 * @return {string} | 600 * @return {string} |
601 */ | 601 */ |
602 type: function() | 602 type: function() |
603 { | 603 { |
604 return this._event.name; | 604 return this._event.name; |
605 }, | 605 }, |
606 | 606 |
607 /** | 607 /** |
608 * @return {?Object} | 608 * @return {?Object} |
609 */ | 609 */ |
| 610 counters: function() |
| 611 { |
| 612 return this.type() === WebInspector.TracingTimelineModel.RecordType.Upda
teCounters ? this._event.args.data : null; |
| 613 }, |
| 614 |
| 615 /** |
| 616 * @return {?Object} |
| 617 */ |
610 highlightQuad: function() | 618 highlightQuad: function() |
611 { | 619 { |
612 return this._event.highlightQuad || null; | 620 return this._event.highlightQuad || null; |
613 }, | 621 }, |
614 | 622 |
615 /** | 623 /** |
616 * @return {string} | 624 * @return {string} |
617 */ | 625 */ |
618 frameId: function() | 626 frameId: function() |
619 { | 627 { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 { | 694 { |
687 var tokens = [this.title()]; | 695 var tokens = [this.title()]; |
688 var data = this._event.args.data; | 696 var data = this._event.args.data; |
689 if (data) { | 697 if (data) { |
690 for (var key in data) | 698 for (var key in data) |
691 tokens.push(data[key]); | 699 tokens.push(data[key]); |
692 } | 700 } |
693 return regExp.test(tokens.join("|")); | 701 return regExp.test(tokens.join("|")); |
694 } | 702 } |
695 } | 703 } |
OLD | NEW |