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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineJSProfile.js

Issue 2541043003: DevTools: allow JS frames under EventDispatch (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | 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 TimelineModel.TimelineJSProfileProcessor = class { 5 TimelineModel.TimelineJSProfileProcessor = class {
6 /** 6 /**
7 * @param {!SDK.CPUProfileDataModel} jsProfileModel 7 * @param {!SDK.CPUProfileDataModel} jsProfileModel
8 * @param {!SDK.TracingModel.Thread} thread 8 * @param {!SDK.TracingModel.Thread} thread
9 * @return {!Array<!SDK.TracingModel.Event>} 9 * @return {!Array<!SDK.TracingModel.Event>}
10 */ 10 */
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 /** 59 /**
60 * @param {!SDK.TracingModel.Event} e 60 * @param {!SDK.TracingModel.Event} e
61 * @return {boolean} 61 * @return {boolean}
62 */ 62 */
63 function isJSInvocationEvent(e) { 63 function isJSInvocationEvent(e) {
64 switch (e.name) { 64 switch (e.name) {
65 case TimelineModel.TimelineModel.RecordType.RunMicrotasks: 65 case TimelineModel.TimelineModel.RecordType.RunMicrotasks:
66 case TimelineModel.TimelineModel.RecordType.FunctionCall: 66 case TimelineModel.TimelineModel.RecordType.FunctionCall:
67 case TimelineModel.TimelineModel.RecordType.EvaluateScript: 67 case TimelineModel.TimelineModel.RecordType.EvaluateScript:
68 case TimelineModel.TimelineModel.RecordType.EventDispatch:
68 return true; 69 return true;
69 } 70 }
70 return false; 71 return false;
71 } 72 }
72 73
73 var jsFrameEvents = []; 74 var jsFrameEvents = [];
74 var jsFramesStack = []; 75 var jsFramesStack = [];
75 var lockedJsStackDepth = []; 76 var lockedJsStackDepth = [];
76 var ordinal = 0; 77 var ordinal = 0;
77 const showAllEvents = Runtime.experiments.isEnabled('timelineShowAllEvents') ; 78 const showAllEvents = Runtime.experiments.isEnabled('timelineShowAllEvents') ;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 } 229 }
229 return map.get(nativeName) || null; 230 return map.get(nativeName) || null;
230 } 231 }
231 }; 232 };
232 233
233 /** @enum {string} */ 234 /** @enum {string} */
234 TimelineModel.TimelineJSProfileProcessor.NativeGroups = { 235 TimelineModel.TimelineJSProfileProcessor.NativeGroups = {
235 'Compile': 'Compile', 236 'Compile': 'Compile',
236 'Parse': 'Parse' 237 'Parse': 'Parse'
237 }; 238 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698