Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(434)

Side by Side Diff: Source/devtools/front_end/timeline/TracingTimelineModel.js

Issue 342473003: Use isProgram method to detect Program events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/timeline/TimelinePresentationModel.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelinePresentationModel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698