| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }; |
| OLD | NEW |