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

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

Issue 147923011: Remove unnecessary _profileTypesByIdMap map (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Comments addressed Created 6 years, 10 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 | Annotate | Revision Log
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 } 104 }
105 var profilesPanel = WebInspector.panels.profiles; 105 var profilesPanel = WebInspector.panels.profiles;
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 = WebInspector.CPUProfileHeader.prototype.onT ransferFinished; 109 var onTransferFinished = WebInspector.CPUProfileHeader.prototype.onT ransferFinished;
110 WebInspector.CPUProfileHeader.prototype.onTransferFinished = functio n() 110 WebInspector.CPUProfileHeader.prototype.onTransferFinished = functio n()
111 { 111 {
112 loadedProfileData = this._jsonifiedProfile; 112 loadedProfileData = this._jsonifiedProfile;
113 onTransferFinished.call(this); 113 onTransferFinished.call(this);
114 WebInspector.panels.profiles._showProfile(this); 114 WebInspector.panels.profiles.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