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