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

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

Issue 389563002: DevTools: make paint profiler target-aware (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed a test and a stray line Created 6 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 /** 1054 /**
1055 * @param {!WebInspector.TracingModel.Event} event 1055 * @param {!WebInspector.TracingModel.Event} event
1056 * @param {!Node} content 1056 * @param {!Node} content
1057 */ 1057 */
1058 _appendDetailsTabsForTraceEventAndShowDetails: function(event, content) 1058 _appendDetailsTabsForTraceEventAndShowDetails: function(event, content)
1059 { 1059 {
1060 var title = WebInspector.TracingTimelineUIUtils.styleForTraceEvent(event .name).title; 1060 var title = WebInspector.TracingTimelineUIUtils.styleForTraceEvent(event .name).title;
1061 this.showInDetails(title, content); 1061 this.showInDetails(title, content);
1062 if (event.picture) { 1062 if (event.picture) {
1063 var paintProfilerView = this._paintProfilerView(); 1063 var paintProfilerView = this._paintProfilerView();
1064 paintProfilerView.setPicture(event.picture); 1064 paintProfilerView.setPicture(this._model.target().weakReference(), e vent.picture);
1065 this._detailsView.appendTab("paintProfiler", WebInspector.UIString(" Paint Profiler"), paintProfilerView); 1065 this._detailsView.appendTab("paintProfiler", WebInspector.UIString(" Paint Profiler"), paintProfilerView);
1066 } 1066 }
1067 }, 1067 },
1068 1068
1069 _updateSelectedRangeStats: function() 1069 _updateSelectedRangeStats: function()
1070 { 1070 {
1071 if (this._selection) 1071 if (this._selection)
1072 return; 1072 return;
1073 1073
1074 var startTime = this._windowStartTime; 1074 var startTime = this._windowStartTime;
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 * @param {!WebInspector.TimelineModel.Record} record 1474 * @param {!WebInspector.TimelineModel.Record} record
1475 * @return {boolean} 1475 * @return {boolean}
1476 */ 1476 */
1477 accept: function(record) 1477 accept: function(record)
1478 { 1478 {
1479 return !this._regex || this._uiUtils.testContentMatching(record, this._r egex); 1479 return !this._regex || this._uiUtils.testContentMatching(record, this._r egex);
1480 }, 1480 },
1481 1481
1482 __proto__: WebInspector.TimelineModel.Filter.prototype 1482 __proto__: WebInspector.TimelineModel.Filter.prototype
1483 } 1483 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698