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

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

Issue 337123002: Support counter graphs in Timeline based on trace 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/TimelinePanel.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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelinePanel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698