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

Side by Side Diff: tools/binary_size/libsupersize/testdata/Console.golden

Issue 2863753005: Supersize: Store whether source path was generated in flags (Closed)
Patch Set: Created 3 years, 7 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 # Show pydoc for main types: 1 # Show pydoc for main types:
2 import models 2 import models
3 help(models) 3 help(models)
4 4
5 # Show all attributes of all symbols & per-section totals: 5 # Show all attributes of all symbols & per-section totals:
6 Print(size_info, verbose=True) 6 Print(size_info, verbose=True)
7 7
8 # Show two levels of .text, grouped by first two subdirectories 8 # Show two levels of .text, grouped by first two subdirectories
9 text_syms = size_info.symbols.WhereInSection("t") 9 text_syms = size_info.symbols.WhereInSection("t")
10 by_path = text_syms.GroupBySourcePath(depth=2) 10 by_path = text_syms.GroupBySourcePath(depth=2)
11 Print(by_path.WhereBiggerThan(1024)) 11 Print(by_path.WhereBiggerThan(1024))
12 12
13 # Show all non-vtable generated symbols 13 # Show all non-vtable generated symbols
14 generated_syms = size_info.symbols.WhereIsGenerated() 14 generated_syms = size_info.symbols.WhereGeneratedByToolchain()
15 Print(generated_syms.WhereNameMatches(r"vtable").Inverted()) 15 Print(generated_syms.WhereNameMatches(r"vtable").Inverted().Sorted())
16 16
17 # Show all symbols that have "print" in their name or path, except 17 # Show all symbols that have "print" in their name or path, except
18 # those within components/. 18 # those within components/.
19 # Note: Could have also used Inverted(), as above. 19 # Note: Could have also used Inverted(), as above.
20 # Note: Use "help(ExpandRegex)" for more about what {{_print_}} does. 20 # Note: Use "help(ExpandRegex)" for more about what {{_print_}} does.
21 print_syms = size_info.symbols.WhereMatches(r"{{_print_}}") 21 print_syms = size_info.symbols.WhereMatches(r"{{_print_}}")
22 Print(print_syms - print_syms.WherePathMatches(r"^components/")) 22 Print(print_syms - print_syms.WherePathMatches(r"^components/"))
23 23
24 # Diff two .size files and save result to a file: 24 # Diff two .size files and save result to a file:
25 Print(Diff(size_info1, size_info2), to_file="output.txt") 25 Print(Diff(size_info1, size_info2), to_file="output.txt")
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 43785380 b@0x0 131072 third_party/fft_fixed.cc 134 43785380 b@0x0 131072 third_party/fft_fixed.cc
135 ff_cos_131072_fixed 135 ff_cos_131072_fixed
136 43785380 b@0x0 131072 third_party/fft_float.cc 136 43785380 b@0x0 131072 third_party/fft_float.cc
137 ff_cos_65536 137 ff_cos_65536
138 43785380 b@0x2dffe80 200 third_party/icu/ucnv_ext.c 138 43785380 b@0x2dffe80 200 third_party/icu/ucnv_ext.c
139 SaveHistogram::atomic_histogram_pointer 139 SaveHistogram::atomic_histogram_pointer
140 43785380 b@0x2dffda0 28 third_party/icu/ucnv_ext.c 140 43785380 b@0x2dffda0 28 third_party/icu/ucnv_ext.c
141 g_chrome_content_browser_client 141 g_chrome_content_browser_client
142 43785380 b@0x2dffe84 4 third_party/icu/ucnv_ext.c 142 43785380 b@0x2dffe84 4 third_party/icu/ucnv_ext.c
143 g_AnimationFrameTimeHistogram_clazz 143 g_AnimationFrameTimeHistogram_clazz
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698