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

Side by Side Diff: tools/binary_size/libsupersize/template/D3SymbolTreeMap.js

Issue 2813963002: //tools/binary_size: Consolidate most tools into "supersize" command (Closed)
Patch Set: Fix readme formatting. Make archive's --outoput-file a positional arg Created 3 years, 8 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // TODO: 5 // TODO:
6 // 1. Visibility functions: base on boxPadding.t, not 15 6 // 1. Visibility functions: base on boxPadding.t, not 15
7 // 2. Track a maxDisplayDepth that is user-settable: 7 // 2. Track a maxDisplayDepth that is user-settable:
8 // maxDepth == currentRoot.depth + maxDisplayDepth 8 // maxDepth == currentRoot.depth + maxDisplayDepth
9 function D3SymbolTreeMap(mapWidth, mapHeight, levelsToShow) { 9 function D3SymbolTreeMap(mapWidth, mapHeight, levelsToShow) {
10 this._mapContainer = undefined; 10 this._mapContainer = undefined;
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 if (datum.value > smallest) { // array is already full 902 if (datum.value > smallest) { // array is already full
903 result.push(datum); 903 result.push(datum);
904 result.sort(sortFunction); 904 result.sort(sortFunction);
905 result.pop(); // get rid of smallest element 905 result.pop(); // get rid of smallest element
906 smallest = result[maxRecords - 1].value; // new threshold for entry 906 smallest = result[maxRecords - 1].value; // new threshold for entry
907 } 907 }
908 }); 908 });
909 result.sort(sortFunction); 909 result.sort(sortFunction);
910 return result; 910 return result;
911 } 911 }
OLDNEW
« no previous file with comments | « tools/binary_size/libsupersize/paths.py ('k') | tools/binary_size/libsupersize/template/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698