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

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

Issue 2555563002: 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 5
6 WebInspector.TimelineJSProfileProcessor = { }; 6 WebInspector.TimelineJSProfileProcessor = { };
7 7
8 /** 8 /**
9 * @param {!WebInspector.CPUProfileDataModel} jsProfileModel 9 * @param {!WebInspector.CPUProfileDataModel} jsProfileModel
10 * @param {!WebInspector.TracingModel.Thread} thread 10 * @param {!WebInspector.TracingModel.Thread} thread
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 /** 73 /**
74 * @param {!WebInspector.TracingModel.Event} e 74 * @param {!WebInspector.TracingModel.Event} e
75 * @return {boolean} 75 * @return {boolean}
76 */ 76 */
77 function isJSInvocationEvent(e) 77 function isJSInvocationEvent(e)
78 { 78 {
79 switch (e.name) { 79 switch (e.name) {
80 case WebInspector.TimelineModel.RecordType.RunMicrotasks: 80 case WebInspector.TimelineModel.RecordType.RunMicrotasks:
81 case WebInspector.TimelineModel.RecordType.FunctionCall: 81 case WebInspector.TimelineModel.RecordType.FunctionCall:
82 case WebInspector.TimelineModel.RecordType.EvaluateScript: 82 case WebInspector.TimelineModel.RecordType.EvaluateScript:
83 case WebInspector.TimelineModel.RecordType.EventDispatch:
83 return true; 84 return true;
84 } 85 }
85 return false; 86 return false;
86 } 87 }
87 88
88 var jsFrameEvents = []; 89 var jsFrameEvents = [];
89 var jsFramesStack = []; 90 var jsFramesStack = [];
90 var lockedJsStackDepth = []; 91 var lockedJsStackDepth = [];
91 var ordinal = 0; 92 var ordinal = 0;
92 var filterNativeFunctions = !WebInspector.moduleSetting("showNativeFunctions InJSProfile").get(); 93 var filterNativeFunctions = !WebInspector.moduleSetting("showNativeFunctions InJSProfile").get();
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 WebInspector.TracingModel.Phase.Instant, e.startTime, e.thread); 490 WebInspector.TracingModel.Phase.Instant, e.startTime, e.thread);
490 sampleEvent.ordinal = e.ordinal; 491 sampleEvent.ordinal = e.ordinal;
491 sampleEvent.args = {"data": {"stackTrace": stack }}; 492 sampleEvent.args = {"data": {"stackTrace": stack }};
492 samples.push(sampleEvent); 493 samples.push(sampleEvent);
493 break; 494 break;
494 } 495 }
495 } 496 }
496 497
497 return samples; 498 return samples;
498 } 499 }
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