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

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

Issue 316553005: Timeline: add trace event to style/category mapping to TracingTimelineUIUtils (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments addressed 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 | « no previous file | Source/devtools/front_end/timeline/TracingTimelineUIUtils.js » ('j') | 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 */ 8 */
9 WebInspector.TracingTimelineModel = function(tracingModel) 9 WebInspector.TracingTimelineModel = function(tracingModel)
10 { 10 {
11 this._tracingModel = tracingModel; 11 this._tracingModel = tracingModel;
12 this._mainThreadEvents = []; 12 this._mainThreadEvents = [];
13 } 13 }
14 14
15 WebInspector.TracingTimelineModel.RecordType = { 15 WebInspector.TracingTimelineModel.RecordType = {
16 Program: "Program", 16 Program: "Program",
17 EventDispatch: "EventDispatch", 17 EventDispatch: "EventDispatch",
18 18
19 GPUTask: "GPUTask", 19 GPUTask: "GPUTask",
20 20
21 RequestMainThreadFrame: "RequestMainThreadFrame", 21 RequestMainThreadFrame: "RequestMainThreadFrame",
22 BeginFrame: "BeginFrame", 22 BeginFrame: "BeginFrame",
23 BeginMainThreadFrame: "BeginMainThreadFrame", 23 BeginMainThreadFrame: "BeginMainThreadFrame",
24 ActivateLayerTree: "ActivateLayerTree", 24 ActivateLayerTree: "ActivateLayerTree",
25 DrawFrame: "DrawFrame", 25 DrawFrame: "DrawFrame",
26 ScheduleStyleRecalculation: "ScheduleStyleRecalculation", 26 ScheduleStyleRecalculation: "ScheduleStyleRecalculation",
27 RecalculateStyles: "RecalculateStyles", 27 RecalculateStyles: "RecalculateStyles",
28 InvalidateLayout: "InvalidateLayout", 28 InvalidateLayout: "InvalidateLayout",
29 Layout: "Layout", 29 Layout: "Layout",
30 UpdateLayerTree: "UpdateLayerTree",
31 PaintSetup: "PaintSetup", 30 PaintSetup: "PaintSetup",
32 Paint: "Paint", 31 Paint: "Paint",
33 PaintImage: "PaintImage", 32 PaintImage: "PaintImage",
34 Rasterize: "Rasterize", 33 Rasterize: "Rasterize",
35 RasterTask: "RasterTask", 34 RasterTask: "RasterTask",
36 ScrollLayer: "ScrollLayer", 35 ScrollLayer: "ScrollLayer",
37 CompositeLayers: "CompositeLayers", 36 CompositeLayers: "CompositeLayers",
38 37
39 ParseHTML: "ParseHTML", 38 ParseHTML: "ParseHTML",
40 39
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 { 305 {
307 for (var i = this._eventStack.length - 1; i >= 0; --i) { 306 for (var i = this._eventStack.length - 1; i >= 0; --i) {
308 var event = this._eventStack[i]; 307 var event = this._eventStack[i];
309 if (event.name === name) 308 if (event.name === name)
310 return event; 309 return event;
311 } 310 }
312 return null; 311 return null;
313 } 312 }
314 } 313 }
315 314
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/timeline/TracingTimelineUIUtils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698