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

Side by Side Diff: tools/binary_size/template/index.html

Issue 132233017: Fix bug in binary_size script and cosmetic updates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « tools/binary_size/run_binary_size_analysis.py ('k') | 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright 2014 The Chromium Authors. All rights reserved. 3 Copyright 2014 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 <html> 7 <html>
8 <head> 8 <head>
9 <title>Binary Size Analysis</title> 9 <title>Binary Size Analysis</title>
10 <link rel='stylesheet' href='webtreemap/webtreemap.css'> 10 <link rel='stylesheet' href='webtreemap/webtreemap.css'>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 59 }
60 60
61 var treemap_width = 800; 61 var treemap_width = 800;
62 var treemap_height = 450; 62 var treemap_height = 450;
63 function show_report_treemap() { 63 function show_report_treemap() {
64 console.log('displaying treemap') 64 console.log('displaying treemap')
65 var div = document.getElementById('report'); 65 var div = document.getElementById('report');
66 var w = window.treemap_width; 66 var w = window.treemap_width;
67 var h = window.treemap_height; 67 var h = window.treemap_height;
68 div.innerHTML = '<div style=\'text-align: center;\'>' + 68 div.innerHTML = '<div style=\'text-align: center;\'>' +
69 '<button onclick=\'zoomInTreemap()\'>Zoom In</button>' + 69 '<button onclick=\'zoomInTreemap()\'>Bigger (More Detail)</but ton>' +
70 ', <button onclick=\'zoomOutTreemap()\'>Zoom Out</button>' + 70 ', <button onclick=\'zoomOutTreemap()\'>Smaller (Less Detail)< /button>' +
71 ' or resize to: ' + 71 ' or resize to: ' +
72 '<input type=text size=5 id=treemap_width value=' + w + '>x' + 72 '<input type=text size=5 id=treemap_width value=' + w + '>x' +
73 '<input type=text size=5 id=treemap_height value=' + h + '>' + 73 '<input type=text size=5 id=treemap_height value=' + h + '>' +
74 '<button onclick=\'resizeTreemap()\'>Go</button>' + 74 '<button onclick=\'resizeTreemap()\'>Go</button>' +
75 '<br><em>Click on a box to zoom in. ' + 75 '<br><em>Click on a box to zoom in and reveal more detail. ' +
76 'Click on the outermost box to zoom out.</em>' + 76 'Click on the outermost box to zoom out.</em>' +
77 '<br>Legend: <table border=1 class=\'treemaplegend\' cellborde r=1><tr>' + 77 '<br>Legend: <table border=1 class=\'treemaplegend\' cellborde r=1><tr>' +
78 '<td class=\'webtreemap-symbol-bss\'>BSS</td>' + 78 '<td class=\'webtreemap-symbol-bss\'>BSS</td>' +
79 '<td class=\'webtreemap-symbol-data\'>Data</td>' + 79 '<td class=\'webtreemap-symbol-data\'>Data</td>' +
80 '<td class=\'webtreemap-symbol-code\'>Code</td>' + 80 '<td class=\'webtreemap-symbol-code\'>Code</td>' +
81 '<td class=\'webtreemap-symbol-read-only_data\'>RO Data</td>' + 81 '<td class=\'webtreemap-symbol-read-only_data\'>RO Data</td>' +
82 '<td class=\'webtreemap-symbol-weak_symbol\'>Weak</td>' + 82 '<td class=\'webtreemap-symbol-weak_symbol\'>Weak</td>' +
83 '<td class=\'webtreemap-symbol-vtable\'>VTable</td>' + 83 '<td class=\'webtreemap-symbol-vtable\'>VTable</td>' +
84 '</tr></table>' + 84 '</tr></table>' +
85 '<br>' + 85 '<br>' +
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 + '<td>' + (i+1) + '</td>' 181 + '<td>' + (i+1) + '</td>'
182 + '<td>' + escape(record.size) + '</td>' 182 + '<td>' + escape(record.size) + '</td>'
183 + '<td>' + escape(record.symbol) + '</td>' 183 + '<td>' + escape(record.symbol) + '</td>'
184 + '<td>' + link + '</td>' 184 + '<td>' + link + '</td>'
185 + '</tr>'; 185 + '</tr>';
186 } 186 }
187 } 187 }
188 </script> 188 </script>
189 </body> 189 </body>
190 </html> 190 </html>
OLDNEW
« no previous file with comments | « tools/binary_size/run_binary_size_analysis.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698