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

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

Issue 2851473003: supersize: Track symbol aliases and shared symbols (Closed)
Patch Set: fix regression in calculate padding introduced in ps3 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.WhereIsGenerated()
15 Print(generated_syms.WhereNameMatches(r"vtable").Inverted()) 15 Print(generated_syms.WhereNameMatches(r"vtable").Inverted())
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")
26 26
27 Metadata: 27 Metadata:
28 elf_arch=ARM
29 elf_build_id=WhatAnAmazingBuildId
30 elf_file_name=elf
31 elf_mtime={redacted}
32 git_revision=abc123
33 gn_args=var1=true var2="foo"
34 map_file_name=../test.map
28 35
29 Section Sizes (Total=43,785,380 bytes): 36 Section Sizes (Total=43,785,380 bytes):
30 .bss: 1,300,456 bytes (not included in totals) 37 .bss: 1,300,456 bytes (not included in totals)
31 .data: 101,768 bytes (0.2%) 38 .data: 101,768 bytes (0.2%)
32 .data.rel.ro: 1,065,224 bytes (2.4%) 39 .data.rel.ro: 1,065,224 bytes (2.4%)
33 .data.rel.ro.local: 790,024 bytes (1.8%) 40 .data.rel.ro.local: 790,024 bytes (1.8%)
34 .rodata: 5,927,652 bytes (13.5%) 41 .rodata: 5,927,652 bytes (13.5%)
35 .text: 35,900,712 bytes (82.0%) 42 .text: 35,900,712 bytes (82.0%)
36 43
37 Showing 38 symbols with total size: 2652506 bytes 44 Showing 41 symbols with total pss: 4036054 bytes
38 .text=10.3kb .rodata=2.52mb other=388 bytes total=2.53mb 45 .text=77.8kb .rodata=2.52mb other=1.25mb total=3.85mb
39 Number of object files: 10 46 Number of object files: 10
40 47
41 First columns are: running total, type, size 48 First columns are: running total, address, pss
42 2641394 r@Group 2641394 {no path} 49 2641394 r@Group 2641394 {no path}
43 ** merge strings (count=2) 50 ** merge strings (count=2)
44 2651152 t@Group 9758 {no path} 51 3431298 d@0x2c17740 789904 third_party/container.c
52 chrome::mojom::FieldTrialRecorderProxy [vtable]
53 3500422 t@0x28f1e0 69124 third_party/icu/ucnv_ext.c
54 foo_bar
55 3510180 t@Group 9758 {no path}
45 ** symbol gaps (count=2) 56 ** symbol gaps (count=2)
46 2651600 t@0x28f000 448 third_party/icu/ucnv_ext.c 57 3510628 t@0x28f000 448 third_party/icu/ucnv_ext.c
47 ucnv_extMatchFromU 58 ucnv_extMatchFromU
48 2651752 d@0x2de7008 152 third_party/container.c 59 3510780 d@0x2de7008 152 third_party/container.c
49 base::android::kBaseRegisteredMethods 60 base::android::kBaseRegisteredMethods
50 2651846 t@0x2a1000 94 third_party/container.c 61 3510874 t@0x2a1000 94 third_party/container.c
51 blink::PaintChunker::releasePaintChunks [clone .part.1] 62 blink::PaintChunker::releasePaintChunks [clone .part.1]
52 2651902 d@0x2c176f0 56 third_party/icu/ucnv_ext.c 63 3510930 d@0x2c176f0 56 third_party/icu/ucnv_ext.c
53 ChromeMainDelegate [vtable] 64 ChromeMainDelegate [vtable]
54 2651958 d@0x2cd8500 56 third_party/paint.cc 65 3510986 d@0x2cd8500 56 third_party/paint.cc
55 ChromeMainDelegateAndroid [vtable] 66 ChromeMainDelegateAndroid [vtable]
56 2652014 t@0x28d910 56 base/page_allocator.cc 67 3511042 t@0x28d910 56 base/page_allocator.cc
57 _GLOBAL__sub_I_bbr_sender.cc 68 _GLOBAL__sub_I_bbr_sender.cc
58 2652069 r@0x28f3450 55 third_party/paint.cc 69 3511097 r@0x28f3450 55 third_party/paint.cc
59 kAnimationFrameTimeHistogramClassPath 70 kAnimationFrameTimeHistogramClassPath
60 2652113 r@0x284e370 44 base/page_allocator.cc 71 3511121 t@0x2a0000 24 third_party/icu/ucnv_ext.c
72 BazAlias
73 3511145 t@0x2a0000 24 {no path}
74 blink::ContiguousContainerBase::shrinkToFit
75 3511189 r@0x284e370 44 base/page_allocator.cc
61 Name 76 Name
62 2652151 t@0x28d964 38 base/page_allocator.cc 77 3511227 t@0x28d964 38 base/page_allocator.cc
63 extFromUUseMapping 78 extFromUUseMapping
64 2652183 r@0x284e398 32 third_party/container.c 79 3511259 d@0x2cd84e0 32 third_party/gvr-android-sdk/libgvr_shim_static_arm .a/libcontroller_api_impl.a_controller_api_impl.o
80 .Lswitch.table.45
81 3511291 r@0x284e398 32 third_party/container.c
65 chrome::mojom::FilePatcher::Name_ 82 chrome::mojom::FilePatcher::Name_
66 2652215 t@0x28d98a 32 base/page_allocator.cc 83 3511323 t@0x28d98a 32 base/page_allocator.cc
67 extFromUUseMapping 84 extFromUUseMapping
68 2652243 t@0x28f1c8 28 third_party/icu/ucnv_ext.c 85 3511351 t@0x28f1c8 28 third_party/icu/ucnv_ext.c
69 _GLOBAL__sub_I_SkDeviceProfile.cpp 86 _GLOBAL__sub_I_SkDeviceProfile.cpp
70 2652271 t@0x28d948 28 base/page_allocator.cc 87 3511379 t@0x28d948 28 base/page_allocator.cc
71 _GLOBAL__sub_I_pacing_sender.cc 88 _GLOBAL__sub_I_pacing_sender.cc
72 2652299 t@0x2a0020 28 third_party/container.c 89 3511407 t@0x2a0020 28 third_party/container.c
73 blink::ContiguousContainerBase::ContiguousContainerBase 90 blink::ContiguousContainerBase::ContiguousContainerBase
74 2652323 d@0x2c17740 24 third_party/container.c 91 3511431 d@0x2c17728 24 third_party/icu/ucnv_ext.c
75 chrome::mojom::FieldTrialRecorderProxy [vtable] 92 chrome::mojom::FieldTrialRecorder [vtable]
76 2652347 d@0x2c17728 24 third_party/icu/ucnv_ext.c 93 3511455 d@0x2cd8538 24 base/page_allocator.cc
77 chrome::mojom::FieldTrialRecorderRequestValidator [vtable]
78 2652371 t@0x28f1e0 24 third_party/icu/ucnv_ext.c
79 foo_bar
80 2652395 d@0x2cd8538 24 base/page_allocator.cc
81 mojo::MessageReceiver [vtable] 94 mojo::MessageReceiver [vtable]
82 2652411 d@0x2cd84e0 16 third_party/gvr-android-sdk/libgvr_shim_static_arm .a/libcontroller_api_impl.a_controller_api_impl.o 95 3511471 t@0x28d900 16 base/page_allocator.cc
83 .Lswitch.table.45
84 2652427 t@0x28d900 16 base/page_allocator.cc
85 _GLOBAL__sub_I_page_allocator.cc 96 _GLOBAL__sub_I_page_allocator.cc
86 2652443 t@0x2a0000 16 third_party/paint.cc 97 3511475 t@0x2a0010 4 third_party/fft_float.cc
87 blink::ContiguousContainerBase::shrinkToFit 98 BarAlias
88 2652455 t@0x2a0010 12 third_party/paint.cc 99 3511479 t@0x2a0010 4 third_party/fft_float.cc
100 FooAlias
101 3511483 t@0x2a0010 4 third_party/{shared}/2
89 blink::ContiguousContainerBase::shrinkToFit [clone .part.1234] [clo ne .isra.2] 102 blink::ContiguousContainerBase::shrinkToFit [clone .part.1234] [clo ne .isra.2]
90 2652467 d@0x2cd8550 12 base/page_allocator.cc 103 3511495 d@0x2cd8550 12 base/page_allocator.cc
91 kMethodsAnimationFrameTimeHistogram 104 kMethodsAnimationFrameTimeHistogram
92 2652478 r@0x284e364 11 base/page_allocator.cc 105 3511506 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 106 3511514 d@0x2cd84f0 8 third_party/gvr-android-sdk/libgvr_shim_static_arm .a/libport_android_jni.a_jni_utils.o
94 kSystemClassPrefixes 107 kSystemClassPrefixes
95 2652490 d@0x2de70a4 4 third_party/container.c 108 3511518 d@0x2de70a4 4 third_party/container.c
96 base::android::g_library_version_number 109 base::android::g_library_version_number
97 2652494 d@0x2de70a0 4 third_party/container.c 110 3511522 d@0x2de70a0 4 third_party/container.c
98 base::android::g_renderer_histogram_code 111 base::android::g_renderer_histogram_code
99 2652498 r@0x28f3480 4 third_party/paint.cc 112 3511526 r@0x28f3480 4 third_party/paint.cc
100 blink::CSSValueKeywordsHash::findValueImpl::value_word_list 113 blink::CSSValueKeywordsHash::findValueImpl::value_word_list
101 2652502 d@0x2de7000 4 base/page_allocator.cc 114 3511530 d@0x2de7000 4 base/page_allocator.cc
102 google::protobuf::internal::pLinuxKernelCmpxchg 115 google::protobuf::internal::pLinuxKernelCmpxchg
103 2652506 d@0x2de7004 4 third_party/container.c 116 3511534 d@0x2de7004 4 third_party/container.c
104 google::protobuf::internal::pLinuxKernelMemoryBarrier 117 google::protobuf::internal::pLinuxKernelMemoryBarrier
105 2652506 b@0x0 262144 third_party/fft_float.cc 118 3511534 b@0x0 262144 third_party/fft_float.cc
106 ff_cos_131072 119 ff_cos_131072
107 2652506 b@0x0 131072 third_party/fft_fixed.cc 120 3511534 b@0x0 131072 third_party/fft_fixed.cc
108 ff_cos_131072_fixed 121 ff_cos_131072_fixed
109 2652506 b@0x0 131072 third_party/fft_float.cc 122 3511534 b@0x0 131072 third_party/fft_float.cc
110 ff_cos_65536 123 ff_cos_65536
111 2652506 b@0x2dffe80 200 third_party/icu/ucnv_ext.c 124 3511534 b@0x2dffe80 200 third_party/icu/ucnv_ext.c
112 SaveHistogram::atomic_histogram_pointer 125 SaveHistogram::atomic_histogram_pointer
113 2652506 b@0x2dffda0 28 third_party/icu/ucnv_ext.c 126 3511534 b@0x2dffda0 28 third_party/icu/ucnv_ext.c
114 g_chrome_content_browser_client 127 g_chrome_content_browser_client
115 2652506 b@0x2dffe84 4 third_party/icu/ucnv_ext.c 128 3511534 b@0x2dffe84 4 third_party/icu/ucnv_ext.c
116 g_AnimationFrameTimeHistogram_clazz 129 g_AnimationFrameTimeHistogram_clazz
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698