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

Unified Diff: tools/binary_size/libsupersize/testdata/Console.golden

Issue 2864063002: Supersize: Chrome-specific breakdowns, console tweaks (Closed)
Patch Set: review tweaks 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 side-by-side diff with in-line comments
Download patch
Index: tools/binary_size/libsupersize/testdata/Console.golden
diff --git a/tools/binary_size/libsupersize/testdata/Console.golden b/tools/binary_size/libsupersize/testdata/Console.golden
index 3409ae805f834e40b9712734cc254c1a0260e675..89a89f62306284f5bf9a2fd9166786d1761f9a71 100644
--- a/tools/binary_size/libsupersize/testdata/Console.golden
+++ b/tools/binary_size/libsupersize/testdata/Console.golden
@@ -1,3 +1,18 @@
+********************************************************************************
+Entering interactive Python shell. Quick reference:
+
+SizeInfo: Cluster, metadata, section_sizes, symbols
+Symbol: FlagsString, IsBss, IsGeneratedByToolchain, IsGroup, address, aliases, end_address, flags, full_name, generated_source, is_anonymous, name, num_aliases, object_path, padding, pss, pss_without_padding, section, section_name, size, size_without_padding, source_path
+
+SymbolGroup (extends Symbol): Cluster, CountUniqueSymbols, Filter, GroupBy, GroupByNamespace, GroupByPath, GroupBySectionName, Inverted, IterLeafSymbols, IterUniqueSymbols, Sorted, SortedByAddress, SortedByCount, SortedByName, WhereAddressInRange, WhereBiggerThan, WhereFullNameMatches, WhereGeneratedByToolchain, WhereHasAnyAttribution, WhereHasPath, WhereInSection, WhereMatches, WhereNameMatches, WhereObjectPathMatches, WherePathMatches, WhereSourceIsGenerated, WhereSourcePathMatches, is_sorted
+
+SymbolDiff (extends SymbolGroup): IsAdded, IsRemoved, IsSimilar, WhereNotUnchanged, added_count, changed_count, removed_count, unchanged_count
+
+canned_queries: CategorizeByChromeComponent, CategorizeGenerated
+
+Functions: Diff(), Disassemble(), ExpandRegex(), Print(), ShowExamples()
+Variables: canned_queries, size_info
+********************************************************************************
# Show pydoc for main types:
import models
help(models)
@@ -7,7 +22,7 @@ Print(size_info, verbose=True)
# Show two levels of .text, grouped by first two subdirectories
text_syms = size_info.symbols.WhereInSection("t")
-by_path = text_syms.GroupBySourcePath(depth=2)
+by_path = text_syms.GroupByPath(depth=2)
Print(by_path.WhereBiggerThan(1024))
# Show all non-vtable generated symbols
@@ -24,6 +39,13 @@ Print(print_syms - print_syms.WherePathMatches(r"^components/"))
# Diff two .size files and save result to a file:
Print(Diff(size_info1, size_info2), to_file="output.txt")
+# View per-component breakdowns, then drill into the last entry.
+c = canned_queries.CategorizeByChromeComponent()
+Print(c)
+Print(c[-1].GroupByPath(depth=2).Sorted())
+
+# For even more inspiration, look at canned_queries.py
+# (and feel free to add your own!).
Metadata:
elf_arch=ARM
elf_build_id=WhatAnAmazingBuildId
@@ -45,99 +67,100 @@ Showing 48 symbols (45 unique) with total pss: 44309900 bytes
.text=34.2mb .rodata=5.65mb other=2.37mb total=42.3mb
Number of object files: 10
-First columns are: running total, address, pss
-35821002 t@0x24ca628 35821002 {no path}
- ** symbol gap 2 (end of section)
-39107114 r@0x2c158e4 3286112 {no path}
- ** symbol gap 3 (end of section)
-41072523 r@0x266e600 1965409 {no path}
- ** merge strings
-42137655 d@0x2ddc608 1065132 {no path}
- ** symbol gap 3 (end of section)
-42927559 d@0x2c17740 789904 third_party/container.c
- chrome::mojom::FieldTrialRecorderProxy [vtable]
-43603544 r@0x284e518 675985 {no path}
- ** merge strings
-43705144 d@0x2dffd88 101600 {no path}
- ** symbol gap 3 (end of section)
-43774268 t@0x28f1e0 69124 third_party/icu/ucnv_ext.c
- foo_bar
-43779986 t@0x28f000 5718 {no path}
- ** symbol gap 0
-43784026 t@0x2a1000 4040 {no path}
- ** symbol gap 1
-43784474 t@0x28f000 448 third_party/icu/ucnv_ext.c
- ucnv_extMatchFromU
-43784626 d@0x2de7008 152 third_party/container.c
- base::android::kBaseRegisteredMethods
-43784720 t@0x2a1000 94 third_party/container.c
- blink::PaintChunker::releasePaintChunks [clone .part.1]
-43784776 d@0x2c176f0 56 third_party/icu/ucnv_ext.c
- ChromeMainDelegate [vtable]
-43784832 d@0x2cd8500 56 third_party/paint.cc
- ChromeMainDelegateAndroid [vtable]
-43784888 t@0x28d910 56 base/page_allocator.cc
+Index, Running Total, Section@Address, PSS
+------------------------------------------------------------
+0) 16 (0.0%) t@0x28d900 16 base/page_allocator.cc
+ _GLOBAL__sub_I_page_allocator.cc
+1) 72 (0.0%) t@0x28d910 56 base/page_allocator.cc
_GLOBAL__sub_I_bbr_sender.cc
-43784943 r@0x28f3450 55 third_party/paint.cc
- kAnimationFrameTimeHistogramClassPath
-43784967 t@0x2a0000 24 third_party/icu/ucnv_ext.c
- BazAlias
-43784991 t@0x2a0000 24 {no path}
- blink::ContiguousContainerBase::shrinkToFit
-43785035 r@0x284e370 44 base/page_allocator.cc
- Name
-43785073 t@0x28d964 38 base/page_allocator.cc
+2) 100 (0.0%) t@0x28d948 28 base/page_allocator.cc
+ _GLOBAL__sub_I_pacing_sender.cc
+3) 138 (0.0%) t@0x28d964 38 base/page_allocator.cc
extFromUUseMapping
-43785105 d@0x2cd84e0 32 third_party/gvr-android-sdk/libgvr_shim_static_arm.a/libcontroller_api_impl.a_controller_api_impl.o
- .Lswitch.table.45
-43785137 r@0x284e398 32 third_party/container.c
- chrome::mojom::FilePatcher::Name_
-43785169 t@0x28d98a 32 base/page_allocator.cc
+4) 170 (0.0%) t@0x28d98a 32 base/page_allocator.cc
extFromUUseMapping
-43785197 t@0x28f1c8 28 third_party/icu/ucnv_ext.c
+5) 5888 (0.0%) t@0x28f000 5718 {no path}
+ ** symbol gap 0
+6) 6336 (0.0%) t@0x28f000 448 third_party/icu/ucnv_ext.c
+ ucnv_extMatchFromU
+7) 6364 (0.0%) t@0x28f1c8 28 third_party/icu/ucnv_ext.c
_GLOBAL__sub_I_SkDeviceProfile.cpp
-43785225 t@0x28d948 28 base/page_allocator.cc
- _GLOBAL__sub_I_pacing_sender.cc
-43785253 t@0x2a0020 28 third_party/container.c
+8) 75488 (0.2%) t@0x28f1e0 69124 third_party/icu/ucnv_ext.c
+ foo_bar
+9) 75512 (0.2%) t@0x2a0000 24 {no path}
+ blink::ContiguousContainerBase::shrinkToFit
+10) 75536 (0.2%) t@0x2a0000 24 third_party/icu/ucnv_ext.c
+ BazAlias
+11) 75540 (0.2%) t@0x2a0010 4 third_party/{shared}/2
+ blink::ContiguousContainerBase::shrinkToFit [clone .part.1234] [clone .isra.2]
+12) 75544 (0.2%) t@0x2a0010 4 third_party/fft_float.cc
+ FooAlias
+13) 75548 (0.2%) t@0x2a0010 4 third_party/fft_float.cc
+ BarAlias
+14) 75576 (0.2%) t@0x2a0020 28 third_party/container.c
blink::ContiguousContainerBase::ContiguousContainerBase
-43785277 d@0x2c17728 24 third_party/icu/ucnv_ext.c
+15) 79616 (0.2%) t@0x2a1000 4040 {no path}
+ ** symbol gap 1
+16) 79710 (0.2%) t@0x2a1000 94 third_party/container.c
+ blink::PaintChunker::releasePaintChunks [clone .part.1]
+17) 35900712 (81.0%) t@0x24ca628 35821002 {no path}
+ ** symbol gap 2 (end of section)
+18) 37866121 (85.5%) r@0x266e600 1965409 {no path}
+ ** merge strings
+19) 37866124 (85.5%) r@0x284e364 3 {no path}
+ ** symbol gap 2
+20) 37866132 (85.5%) r@0x284e364 8 base/page_allocator.cc
+21) 37866176 (85.5%) r@0x284e370 44 base/page_allocator.cc
+ Name
+22) 37866208 (85.5%) r@0x284e398 32 third_party/container.c
+ chrome::mojom::FilePatcher::Name_
+23) 38542193 (87.0%) r@0x284e518 675985 {no path}
+ ** merge strings
+24) 38542248 (87.0%) r@0x28f3450 55 third_party/paint.cc
+ kAnimationFrameTimeHistogramClassPath
+25) 38542252 (87.0%) r@0x28f3480 4 third_party/paint.cc
+ blink::CSSValueKeywordsHash::findValueImpl::value_word_list
+26) 41828364 (94.4%) r@0x2c158e4 3286112 {no path}
+ ** symbol gap 3 (end of section)
+27) 41828420 (94.4%) d@0x2c176f0 56 third_party/icu/ucnv_ext.c
+ ChromeMainDelegate [vtable]
+28) 41828444 (94.4%) d@0x2c17728 24 third_party/icu/ucnv_ext.c
chrome::mojom::FieldTrialRecorder [vtable]
-43785301 d@0x2cd8538 24 base/page_allocator.cc
+29) 42618348 (96.2%) d@0x2c17740 789904 third_party/container.c
+ chrome::mojom::FieldTrialRecorderProxy [vtable]
+30) 42618380 (96.2%) d@0x2cd84e0 32 third_party/gvr-android-sdk/libgvr_shim_static_arm.a/libcontroller_api_impl.a_controller_api_impl.o
+ .Lswitch.table.45
+31) 42618388 (96.2%) d@0x2cd84f0 8 third_party/gvr-android-sdk/libgvr_shim_static_arm.a/libport_android_jni.a_jni_utils.o
+ kSystemClassPrefixes
+32) 42618444 (96.2%) d@0x2cd8500 56 third_party/paint.cc
+ ChromeMainDelegateAndroid [vtable]
+33) 42618468 (96.2%) d@0x2cd8538 24 base/page_allocator.cc
mojo::MessageReceiver [vtable]
-43785317 t@0x28d900 16 base/page_allocator.cc
- _GLOBAL__sub_I_page_allocator.cc
-43785321 t@0x2a0010 4 third_party/fft_float.cc
- BarAlias
-43785325 t@0x2a0010 4 third_party/fft_float.cc
- FooAlias
-43785329 t@0x2a0010 4 third_party/{shared}/2
- blink::ContiguousContainerBase::shrinkToFit [clone .part.1234] [clone .isra.2]
-43785341 d@0x2cd8550 12 base/page_allocator.cc
+34) 42618480 (96.2%) d@0x2cd8550 12 base/page_allocator.cc
kMethodsAnimationFrameTimeHistogram
-43785349 r@0x284e364 8 base/page_allocator.cc
-43785357 d@0x2cd84f0 8 third_party/gvr-android-sdk/libgvr_shim_static_arm.a/libport_android_jni.a_jni_utils.o
- kSystemClassPrefixes
-43785361 d@0x2de70a4 4 third_party/container.c
- base::android::g_library_version_number
-43785365 d@0x2de70a0 4 third_party/container.c
- base::android::g_renderer_histogram_code
-43785369 r@0x28f3480 4 third_party/paint.cc
- blink::CSSValueKeywordsHash::findValueImpl::value_word_list
-43785373 d@0x2de7000 4 base/page_allocator.cc
+35) 43683612 (98.6%) d@0x2ddc608 1065132 {no path}
+ ** symbol gap 3 (end of section)
+36) 43683616 (98.6%) d@0x2de7000 4 base/page_allocator.cc
google::protobuf::internal::pLinuxKernelCmpxchg
-43785377 d@0x2de7004 4 third_party/container.c
+37) 43683620 (98.6%) d@0x2de7004 4 third_party/container.c
google::protobuf::internal::pLinuxKernelMemoryBarrier
-43785380 r@0x284e364 3 {no path}
- ** symbol gap 2
-43785380 b@0x0 262144 third_party/fft_float.cc
+38) 43683772 (98.6%) d@0x2de7008 152 third_party/container.c
+ base::android::kBaseRegisteredMethods
+39) 43683776 (98.6%) d@0x2de70a0 4 third_party/container.c
+ base::android::g_renderer_histogram_code
+40) 43683780 (98.6%) d@0x2de70a4 4 third_party/container.c
+ base::android::g_library_version_number
+41) 43785380 (98.8%) d@0x2dffd88 101600 {no path}
+ ** symbol gap 3 (end of section)
+42) 43785380 (98.8%) b@0x0 262144 third_party/fft_float.cc
ff_cos_131072
-43785380 b@0x0 131072 third_party/fft_fixed.cc
+43) 43785380 (98.8%) b@0x0 131072 third_party/fft_fixed.cc
ff_cos_131072_fixed
-43785380 b@0x0 131072 third_party/fft_float.cc
+44) 43785380 (98.8%) b@0x0 131072 third_party/fft_float.cc
ff_cos_65536
-43785380 b@0x2dffe80 200 third_party/icu/ucnv_ext.c
- SaveHistogram::atomic_histogram_pointer
-43785380 b@0x2dffda0 28 third_party/icu/ucnv_ext.c
+45) 43785380 (98.8%) b@0x2dffda0 28 third_party/icu/ucnv_ext.c
g_chrome_content_browser_client
-43785380 b@0x2dffe84 4 third_party/icu/ucnv_ext.c
+46) 43785380 (98.8%) b@0x2dffe80 200 third_party/icu/ucnv_ext.c
+ SaveHistogram::atomic_histogram_pointer
+47) 43785380 (98.8%) b@0x2dffe84 4 third_party/icu/ucnv_ext.c
g_AnimationFrameTimeHistogram_clazz

Powered by Google App Engine
This is Rietveld 408576698