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

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

Issue 2817813003: supersize: Add "diff" command (Closed)
Patch Set: review commetns 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
(Empty)
1 # Show pydoc for main types:
2 import models
3 help(models)
4
5 # Show all attributes of all symbols & per-section totals:
6 Print(size_info, verbose=True)
7
8 # Show two levels of .text, grouped by first two subdirectories
9 text_syms = size_info.symbols.WhereInSection("t")
10 by_path = text_syms.GroupBySourcePath(depth=2)
11 Print(by_path.WhereBiggerThan(1024))
12
13 # Show all non-vtable generated symbols
14 generated_syms = size_info.symbols.WhereIsGenerated()
15 Print(generated_syms.WhereNameMatches(r"vtable").Inverted())
16
17 # Show all symbols that have "print" in their name or path, except
18 # those within components/.
19 # Note: Could have also used Inverted(), as above.
20 # Note: Use "help(ExpandRegex)" for more about what {{_print_}} does.
21 print_syms = size_info.symbols.WhereMatches(r"{{_print_}}")
22 Print(print_syms - print_syms.WherePathMatches(r"^components/"))
23
24 # Diff two .size files and save result to a file:
25 Print(Diff(size_info1, size_info2), to_file="output.txt")
26
27 Metadata:
28
29 Section Sizes (Total=43,785,380 bytes):
30 .bss: 1,300,456 bytes (not included in totals)
31 .data: 101,768 bytes (0.2%)
32 .data.rel.ro: 1,065,224 bytes (2.4%)
33 .data.rel.ro.local: 790,024 bytes (1.8%)
34 .rodata: 5,927,652 bytes (13.5%)
35 .text: 35,900,712 bytes (82.0%)
36
37 Showing 38 symbols with total size: 2652506 bytes
38 .text=10.3kb .rodata=2.52mb other=388 bytes total=2.53mb
39 Number of object files: 10
40
41 First columns are: running total, type, size
42 2641394 r@Group 2641394 {no path}
43 ** merge strings (count=2)
44 2651152 t@Group 9758 {no path}
45 ** symbol gaps (count=2)
46 2651600 t@0x28f000 448 third_party/icu/ucnv_ext.c
47 ucnv_extMatchFromU
48 2651752 d@0x2de7008 152 third_party/container.c
49 rel._ZN4base7androidL22kBaseRegisteredMethodsE
50 2651846 t@0x2a1000 94 third_party/container.c
51 blink::PaintChunker::releasePaintChunks [clone .part.1]
52 2651902 d@0x2c176f0 56 third_party/icu/ucnv_ext.c
53 ChromeMainDelegate [vtable]
54 2651958 d@0x2cd8500 56 third_party/paint.cc
55 ChromeMainDelegateAndroid [vtable]
56 2652014 t@0x28d910 56 base/page_allocator.cc
57 startup._GLOBAL__sub_I_bbr_sender.cc
58 2652069 r@0x28f3450 55 third_party/paint.cc
59 kAnimationFrameTimeHistogramClassPath
60 2652113 r@0x284e370 44 base/page_allocator.cc
61 Name
62 2652151 t@0x28d964 38 base/page_allocator.cc
63 extFromUUseMapping
64 2652183 r@0x284e398 32 third_party/container.c
65 chrome::mojom::FilePatcher::Name_
66 2652215 t@0x28d98a 32 base/page_allocator.cc
67 extFromUUseMapping
68 2652243 t@0x2a0020 28 third_party/container.c
69 blink::ContiguousContainerBase::ContiguousContainerBase
70 2652271 t@0x28f1c8 28 third_party/icu/ucnv_ext.c
71 startup._GLOBAL__sub_I_SkDeviceProfile.cpp
72 2652299 t@0x28d948 28 base/page_allocator.cc
73 startup._GLOBAL__sub_I_pacing_sender.cc
74 2652323 d@0x2c17740 24 third_party/container.c
75 chrome::mojom::FieldTrialRecorderProxy [vtable]
76 2652347 d@0x2c17728 24 third_party/icu/ucnv_ext.c
77 chrome::mojom::FieldTrialRecorderRequestValidator [vtable]
78 2652371 d@0x2cd8538 24 base/page_allocator.cc
79 mojo::MessageReceiver [vtable]
80 2652395 t@0x28f1e0 24 third_party/icu/ucnv_ext.c
81 startup._GLOBAL__sub_I_SkDiscardableMemoryPool.cpp
82 2652411 d@0x2cd84e0 16 third_party/gvr-android-sdk/libgvr_shim_static_arm .a/libcontroller_api_impl.a_controller_api_impl.o
83 .Lswitch.table.45
84 2652427 t@0x2a0000 16 third_party/paint.cc
85 blink::ContiguousContainerBase::shrinkToFit
86 2652443 t@0x28d900 16 base/page_allocator.cc
87 startup._GLOBAL__sub_I_page_allocator.cc
88 2652455 t@0x2a0010 12 third_party/paint.cc
89 blink::ContiguousContainerBase::shrinkToFit [clone .part.1234] [clo ne .isra.2]
90 2652467 d@0x2cd8550 12 base/page_allocator.cc
91 kMethodsAnimationFrameTimeHistogram
92 2652478 r@0x284e364 11 base/page_allocator.cc
93 2652486 d@0x2cd84f0 8 third_party/gvr-android-sdk/libgvr_shim_static_arm .a/libport_android_jni.a_jni_utils.o
94 kSystemClassPrefixes
95 2652490 d@0x2de70a0 4 third_party/container.c
96 base::android::g_renderer_histogram_code
97 2652494 r@0x28f3480 4 third_party/paint.cc
98 blink::CSSValueKeywordsHash::findValueImpl::value_word_list
99 2652498 d@0x2de7000 4 base/page_allocator.cc
100 google::protobuf::internal::pLinuxKernelCmpxchg
101 2652502 d@0x2de7004 4 third_party/container.c
102 google::protobuf::internal::pLinuxKernelMemoryBarrier
103 2652506 d@0x2de70a4 4 third_party/container.c
104 rel.local._ZN4base7android12_GLOBAL__N_124g_library_version_numberE
105 2652506 b@0x0 262144 third_party/fft_float.cc
106 ff_cos_131072
107 2652506 b@0x0 131072 third_party/fft_fixed.cc
108 ff_cos_131072_fixed
109 2652506 b@0x0 131072 third_party/fft_float.cc
110 ff_cos_65536
111 2652506 b@0x2dffe80 200 third_party/icu/ucnv_ext.c
112 SaveHistogram::atomic_histogram_pointer
113 2652506 b@0x2dffda0 28 third_party/icu/ucnv_ext.c
114 g_chrome_content_browser_client
115 2652506 b@0x2dffe84 4 third_party/icu/ucnv_ext.c
116 g_AnimationFrameTimeHistogram_clazz
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698