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

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

Issue 328723002: Timeline: add disabled-by-default-devtools.timeline{,.frame} to category filter (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/core/inspector/TraceEventDispatcher.cpp ('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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 DecodeImage: "Decode Image", 86 DecodeImage: "Decode Image",
87 ResizeImage: "Resize Image", 87 ResizeImage: "Resize Image",
88 DrawLazyPixelRef: "Draw LazyPixelRef", 88 DrawLazyPixelRef: "Draw LazyPixelRef",
89 DecodeLazyPixelRef: "Decode LazyPixelRef", 89 DecodeLazyPixelRef: "Decode LazyPixelRef",
90 90
91 LazyPixelRef: "LazyPixelRef", 91 LazyPixelRef: "LazyPixelRef",
92 LayerTreeHostImplSnapshot: "cc::LayerTreeHostImpl" 92 LayerTreeHostImplSnapshot: "cc::LayerTreeHostImpl"
93 }; 93 };
94 94
95 WebInspector.TracingTimelineModel.defaultTracingCategoryFilter = "*,disabled-by- default-cc.debug,disabled-by-default-devtools.timeline"; 95 WebInspector.TracingTimelineModel.defaultTracingCategoryFilter = "*,disabled-by- default-cc.debug,disabled-by-default-devtools.timeline,disabled-by-default-devto ols.timeline.frame";
96 96
97 WebInspector.TracingTimelineModel.prototype = { 97 WebInspector.TracingTimelineModel.prototype = {
98 /** 98 /**
99 * @param {boolean} captureStacks 99 * @param {boolean} captureStacks
100 * @param {boolean} captureMemory 100 * @param {boolean} captureMemory
101 */ 101 */
102 startRecording: function(captureStacks, captureMemory) 102 startRecording: function(captureStacks, captureMemory)
103 { 103 {
104 this.reset(); 104 this.reset();
105 var categories; 105 var categories;
106 if (WebInspector.experimentsSettings.timelineTracingMode.isEnabled()) { 106 if (WebInspector.experimentsSettings.timelineTracingMode.isEnabled()) {
107 categories = WebInspector.TracingTimelineModel.defaultTracingCategor yFilter; 107 categories = WebInspector.TracingTimelineModel.defaultTracingCategor yFilter;
108 } else { 108 } else {
109 var categoriesArray = ["disabled-by-default-devtools.timeline", "dev tools"]; 109 var categoriesArray = ["disabled-by-default-devtools.timeline", "dis abled-by-default-devtools.timeline.frame", "devtools"];
110 if (captureStacks) 110 if (captureStacks)
111 categoriesArray.push("disabled-by-default-devtools.timeline.stac k"); 111 categoriesArray.push("disabled-by-default-devtools.timeline.stac k");
112 categories = categoriesArray.join(","); 112 categories = categoriesArray.join(",");
113 } 113 }
114 this._startRecordingWithCategories(categories); 114 this._startRecordingWithCategories(categories);
115 }, 115 },
116 116
117 stopRecording: function() 117 stopRecording: function()
118 { 118 {
119 this._tracingModel.stop(this._didStopRecordingTraceEvents.bind(this)); 119 this._tracingModel.stop(this._didStopRecordingTraceEvents.bind(this));
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 { 643 {
644 var tokens = [this.title()]; 644 var tokens = [this.title()];
645 var data = this._event.args.data; 645 var data = this._event.args.data;
646 if (data) { 646 if (data) {
647 for (var key in data) 647 for (var key in data)
648 tokens.push(data[key]); 648 tokens.push(data[key]);
649 } 649 }
650 return regExp.test(tokens.join("|")); 650 return regExp.test(tokens.join("|"));
651 } 651 }
652 } 652 }
OLDNEW
« no previous file with comments | « Source/core/inspector/TraceEventDispatcher.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698