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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/profiler/cpu-profiler-save-load.html

Issue 2657893002: DevTools: temporarily revert Timeline->Performance rename. (Closed)
Patch Set: Introduce progress monitor Created 3 years, 11 months 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="profiler-test.js"></script> 4 <script src="profiler-test.js"></script>
5 <script> 5 <script>
6 6
7 function pageFunction() { 7 function pageFunction() {
8 console.profile("manual"); 8 console.profile("manual");
9 console.profileEnd("manual"); 9 console.profileEnd("manual");
10 } 10 }
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 { 95 {
96 if (loadedProfileData === file._data()) 96 if (loadedProfileData === file._data())
97 InspectorTest.addResult("PASS: the content of loaded profile matches with the original profile."); 97 InspectorTest.addResult("PASS: the content of loaded profile matches with the original profile.");
98 else { 98 else {
99 InspectorTest.addResult("FAIL: the content of loaded profile doesn't match with the original profile."); 99 InspectorTest.addResult("FAIL: the content of loaded profile doesn't match with the original profile.");
100 InspectorTest.addResult("old: " + file._data()); 100 InspectorTest.addResult("old: " + file._data());
101 InspectorTest.addResult("new: " + loadedProfileData); 101 InspectorTest.addResult("new: " + loadedProfileData);
102 } 102 }
103 next(); 103 next();
104 } 104 }
105 var profilesPanel = UI.panels.js_profiler; 105 var profilesPanel = UI.panels.heap_profiler;
106 var profileName = file.name.substr(0, file.name.length - ".cpuprofil e".length); 106 var profileName = file.name.substr(0, file.name.length - ".cpuprofil e".length);
107 InspectorTest.waitUntilProfileViewIsShown(profileName, checkLoadedCo ntent); 107 InspectorTest.waitUntilProfileViewIsShown(profileName, checkLoadedCo ntent);
108 profilesPanel._loadFromFile(file); 108 profilesPanel._loadFromFile(file);
109 var onTransferFinished = Profiler.CPUProfileHeader.prototype.onTrans ferFinished; 109 var onTransferFinished = Profiler.CPUProfileHeader.prototype.onTrans ferFinished;
110 Profiler.CPUProfileHeader.prototype.onTransferFinished = function() 110 Profiler.CPUProfileHeader.prototype.onTransferFinished = function()
111 { 111 {
112 loadedProfileData = this._jsonifiedProfile; 112 loadedProfileData = this._jsonifiedProfile;
113 onTransferFinished.call(this); 113 onTransferFinished.call(this);
114 UI.panels.js_profiler.showProfile(this); 114 UI.panels.heap_profiler.showProfile(this);
115 } 115 }
116 } 116 }
117 117
118 ]); 118 ]);
119 } 119 }
120 120
121 </script> 121 </script>
122 </head> 122 </head>
123 <body onload="runTest()"> 123 <body onload="runTest()">
124 <p> 124 <p>
125 Tests that CPU profiling is able to save/load. 125 Tests that CPU profiling is able to save/load.
126 126
127 </p> 127 </p>
128 </body> 128 </body>
129 </html> 129 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698