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

Side by Side Diff: tools/callstats.html

Issue 2391843003: [tools] Initialize global pages var in callstats.html (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <!-- 2 <!--
3 Copyright 2016 the V8 project authors. All rights reserved. Use of this source 3 Copyright 2016 the V8 project authors. All rights reserved. Use of this source
4 code is governed by a BSD-style license that can be found in the LICENSE file. 4 code is governed by a BSD-style license that can be found in the LICENSE file.
5 --> 5 -->
6 6
7 <head> 7 <head>
8 <meta charset="UTF-8"> 8 <meta charset="UTF-8">
9 <style> 9 <style>
10 body { 10 body {
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 var file = files[0]; 1036 var file = files[0];
1037 var reader = new FileReader(); 1037 var reader = new FileReader();
1038 1038
1039 reader.onload = function(evt) { 1039 reader.onload = function(evt) {
1040 handleLoadText(this.result); 1040 handleLoadText(this.result);
1041 } 1041 }
1042 reader.readAsText(file); 1042 reader.readAsText(file);
1043 } 1043 }
1044 1044
1045 function handleLoadText(text) { 1045 function handleLoadText(text) {
1046 pages = new Pages();
1047 handleLoadJSON(JSON.parse(text)); 1046 handleLoadJSON(JSON.parse(text));
1048 } 1047 }
1049 1048
1050 function handleLoadJSON(json) { 1049 function handleLoadJSON(json) {
1050 pages = new Pages();
1051 versions = Versions.fromJSON(json); 1051 versions = Versions.fromJSON(json);
1052 initialize() 1052 initialize()
1053 showPage(versions.versions[0].pages[0]); 1053 showPage(versions.versions[0].pages[0]);
1054 selectEntry(selectedPage.total); 1054 selectEntry(selectedPage.total);
1055 } 1055 }
1056 1056
1057 function handleToggleGroup(event) { 1057 function handleToggleGroup(event) {
1058 var group = event.target.parentNode.parentNode.entry; 1058 var group = event.target.parentNode.parentNode.entry;
1059 toggleGroup(selectedPage.get(group.name)); 1059 toggleGroup(selectedPage.get(group.name));
1060 } 1060 }
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
1878 </tr> 1878 </tr>
1879 <tr> 1879 <tr>
1880 <td>Overall Impact:</td> 1880 <td>Overall Impact:</td>
1881 <td class="timeImpact"></td><td>±</td><td class="timePercentImpact"></td > 1881 <td class="timeImpact"></td><td>±</td><td class="timePercentImpact"></td >
1882 <td class="compare timeImpact"></td><td class="compare"> ± </td><td clas s="compare timePercentImpact"></td> 1882 <td class="compare timeImpact"></td><td class="compare"> ± </td><td clas s="compare timePercentImpact"></td>
1883 </tr> 1883 </tr>
1884 </table> 1884 </table>
1885 </div> 1885 </div>
1886 </body> 1886 </body>
1887 </html> 1887 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698