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

Side by Side Diff: Source/devtools/front_end/TimelinePresentationModel.js

Issue 104523002: [DevTools] Add power profiler and power overview in timeline panel. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 return eventDivider; 226 return eventDivider;
227 } 227 }
228 228
229 WebInspector.TimelinePresentationModel._hiddenRecords = { } 229 WebInspector.TimelinePresentationModel._hiddenRecords = { }
230 WebInspector.TimelinePresentationModel._hiddenRecords[WebInspector.TimelineModel .RecordType.MarkDOMContent] = 1; 230 WebInspector.TimelinePresentationModel._hiddenRecords[WebInspector.TimelineModel .RecordType.MarkDOMContent] = 1;
231 WebInspector.TimelinePresentationModel._hiddenRecords[WebInspector.TimelineModel .RecordType.MarkLoad] = 1; 231 WebInspector.TimelinePresentationModel._hiddenRecords[WebInspector.TimelineModel .RecordType.MarkLoad] = 1;
232 WebInspector.TimelinePresentationModel._hiddenRecords[WebInspector.TimelineModel .RecordType.ScheduleStyleRecalculation] = 1; 232 WebInspector.TimelinePresentationModel._hiddenRecords[WebInspector.TimelineModel .RecordType.ScheduleStyleRecalculation] = 1;
233 WebInspector.TimelinePresentationModel._hiddenRecords[WebInspector.TimelineModel .RecordType.InvalidateLayout] = 1; 233 WebInspector.TimelinePresentationModel._hiddenRecords[WebInspector.TimelineModel .RecordType.InvalidateLayout] = 1;
234 WebInspector.TimelinePresentationModel._hiddenRecords[WebInspector.TimelineModel .RecordType.GPUTask] = 1; 234 WebInspector.TimelinePresentationModel._hiddenRecords[WebInspector.TimelineModel .RecordType.GPUTask] = 1;
235 WebInspector.TimelinePresentationModel._hiddenRecords[WebInspector.TimelineModel .RecordType.ActivateLayerTree] = 1; 235 WebInspector.TimelinePresentationModel._hiddenRecords[WebInspector.TimelineModel .RecordType.ActivateLayerTree] = 1;
236 WebInspector.TimelinePresentationModel._hiddenRecords[WebInspector.TimelineModel .RecordType.SoC_Package] = 1;
236 237
237 WebInspector.TimelinePresentationModel.prototype = { 238 WebInspector.TimelinePresentationModel.prototype = {
238 /** 239 /**
239 * @param {!WebInspector.TimelinePresentationModel.Filter} filter 240 * @param {!WebInspector.TimelinePresentationModel.Filter} filter
240 */ 241 */
241 addFilter: function(filter) 242 addFilter: function(filter)
242 { 243 {
243 this._filters.push(filter); 244 this._filters.push(filter);
244 }, 245 },
245 246
(...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after
1861 for (var i = 0; i < stackTrace.length; ++i) { 1862 for (var i = 0; i < stackTrace.length; ++i) {
1862 var stackFrame = stackTrace[i]; 1863 var stackFrame = stackTrace[i];
1863 var row = stackTraceElement.createChild("div"); 1864 var row = stackTraceElement.createChild("div");
1864 row.createTextChild(stackFrame.functionName || WebInspector.UIString ("(anonymous function)")); 1865 row.createTextChild(stackFrame.functionName || WebInspector.UIString ("(anonymous function)"));
1865 row.createTextChild(" @ "); 1866 row.createTextChild(" @ ");
1866 var urlElement = callFrameLinkifier(stackFrame); 1867 var urlElement = callFrameLinkifier(stackFrame);
1867 row.appendChild(urlElement); 1868 row.appendChild(urlElement);
1868 } 1869 }
1869 } 1870 }
1870 } 1871 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698