OLD | NEW |
1 var initialize_ProfilerTest = function() { | 1 var initialize_ProfilerTest = function() { |
2 | 2 |
3 InspectorTest.startProfilerTest = function(callback) | 3 InspectorTest.startProfilerTest = function(callback) |
4 { | 4 { |
| 5 WebInspector.experimentsSettings.disableAgentsWhenProfile.enableForTest(); |
5 WebInspector.inspectorView.showPanel("profiles"); | 6 WebInspector.inspectorView.showPanel("profiles"); |
6 | 7 |
7 InspectorTest.addResult("Profiler was enabled."); | 8 InspectorTest.addResult("Profiler was enabled."); |
8 InspectorTest.addSniffer(WebInspector.panels.profiles, "_addProfileHeader",
InspectorTest._profileHeaderAdded, true); | 9 InspectorTest.addSniffer(WebInspector.panels.profiles, "_addProfileHeader",
InspectorTest._profileHeaderAdded, true); |
9 InspectorTest.addSniffer(WebInspector.CPUProfileView.prototype, "refresh", I
nspectorTest._profileViewRefresh, true); | 10 InspectorTest.addSniffer(WebInspector.CPUProfileView.prototype, "refresh", I
nspectorTest._profileViewRefresh, true); |
10 InspectorTest.safeWrap(callback)(); | 11 InspectorTest.safeWrap(callback)(); |
11 }; | 12 }; |
12 | 13 |
13 InspectorTest.completeProfilerTest = function() | 14 InspectorTest.completeProfilerTest = function() |
14 { | 15 { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 { | 64 { |
64 // Called in the context of ProfileView. | 65 // Called in the context of ProfileView. |
65 if (InspectorTest._waitUntilProfileViewIsShownCallback && InspectorTest._wai
tUntilProfileViewIsShownCallback.title === this._profileHeader.title) { | 66 if (InspectorTest._waitUntilProfileViewIsShownCallback && InspectorTest._wai
tUntilProfileViewIsShownCallback.title === this._profileHeader.title) { |
66 var callback = InspectorTest._waitUntilProfileViewIsShownCallback; | 67 var callback = InspectorTest._waitUntilProfileViewIsShownCallback; |
67 delete InspectorTest._waitUntilProfileViewIsShownCallback; | 68 delete InspectorTest._waitUntilProfileViewIsShownCallback; |
68 callback.callback(this); | 69 callback.callback(this); |
69 } | 70 } |
70 }; | 71 }; |
71 | 72 |
72 }; | 73 }; |
OLD | NEW |