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

Issue 2870743003: supersize: Add symbol.template_name, and strip <>s from symbol.name (Closed)

Created:
3 years, 7 months ago by agrieve
Modified:
3 years, 7 months ago
Reviewers:
estevenson
CC:
chromium-reviews, wnwen+watch_chromium.org, estevenson+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

supersize: Add symbol.template_name, and strip <>s from symbol.name Details: * full_name, template_name, name are now always set (full_name used to be None when same as name) * full_name (rather than name) is now set by linker_map_parser. * Adds: WhereIsTemplate() and WhereTemplateNameMatches() * Rename Cluster() -> Clustered() (to match tense of other methods). * Rename GroupBy*() -> GroupedBy*() (to match tense of other methods). * Fixes a bug in Cluster(), as shown by test goldens. I can't figure out what changed though! Running a query of "WhereIsTemplate()" on libchrome.so shows that templates comprise 4.97mb of 35.6mb. (14%) The canned_query of "TemplatesByName" shows: Top five templates: 0) 188057 (3.5%) *@Group 188057 base::internal::Invoker::Run (count=5954) 1) 352433 (6.5%) *@Group 164376 color_xform_RGBA (count=101) 2) 508259 (9.4%) *@Group 155825 std::__ndk1::vector::__push_back_slow_path (count=1769) 3) 637251 (11.8%) *@Group 128992 std::__ndk1::__sort (count=170) 4) 728739 (13.5%) *@Group 91488 std::__ndk1::__tree::__insert_unique (count=641) Top templates by namespace: 0) 1543846 (28.6%) *@Group 1543846 std (count=15883) 1) 2099482 (38.9%) *@Group 555636 WTF (count=7275) 2) 2640109 (48.9%) *@Group 540627 blink (count=17540) 3) 3150899 (58.4%) *@Group 510789 v8 (count=3293) 4) 3599574 (66.7%) *@Group 448674 base (count=20460) 5) 3957713 (73.4%) *@Group 358138 mojo (count=2795) 6) 4268254 (79.1%) *@Group 310541 IPC (count=6995) Top collection classes: 1) 825057 (15.3%) *@Group 395878 std::__ndk1::vector (count=3327) 2) 1050592 (19.5%) *@Group 225534 std::__ndk1::__tree (count=3548) 3) 1275208 (23.6%) *@Group 224616 WTF::HashTable (count=2423) 6) 1873846 (34.7%) *@Group 193488 WTF::Vector (count=2461) 8) 2173194 (40.3%) *@Group 134972 std::__ndk1::deque (count=507) 10) 2386316 (44.2%) *@Group 103163 std::__ndk1::__hash_table (count=2019) BUG=681694 Review-Url: https://codereview.chromium.org/2870743003 Cr-Commit-Position: refs/heads/master@{#470566} Committed: https://chromium.googlesource.com/chromium/src/+/1f8fe2383c7805bb0385c118b19a8efe008ec741

Patch Set 1 #

Patch Set 2 : canned query #

Total comments: 4

Patch Set 3 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+617 lines, -353 lines) Patch
M tools/binary_size/libsupersize/archive.py View 1 8 chunks +62 lines, -62 lines 0 comments Download
M tools/binary_size/libsupersize/canned_queries.py View 1 1 chunk +6 lines, -0 lines 0 comments Download
M tools/binary_size/libsupersize/cluster_symbols.py View 1 2 4 chunks +49 lines, -26 lines 0 comments Download
M tools/binary_size/libsupersize/console.py View 1 4 chunks +4 lines, -4 lines 0 comments Download
M tools/binary_size/libsupersize/describe.py View 3 chunks +7 lines, -5 lines 0 comments Download
M tools/binary_size/libsupersize/diff.py View 3 chunks +5 lines, -7 lines 0 comments Download
M tools/binary_size/libsupersize/file_format.py View 1 5 chunks +8 lines, -9 lines 0 comments Download
M tools/binary_size/libsupersize/function_signature.py View 3 chunks +40 lines, -8 lines 0 comments Download
M tools/binary_size/libsupersize/function_signature_test.py View 6 chunks +38 lines, -13 lines 0 comments Download
M tools/binary_size/libsupersize/html_report.py View 1 chunk +1 line, -1 line 0 comments Download
M tools/binary_size/libsupersize/integration_test.py View 1 5 chunks +15 lines, -15 lines 0 comments Download
M tools/binary_size/libsupersize/linker_map_parser.py View 4 chunks +7 lines, -5 lines 0 comments Download
M tools/binary_size/libsupersize/models.py View 1 2 16 chunks +98 lines, -69 lines 0 comments Download
M tools/binary_size/libsupersize/testdata/Archive.golden View 1 chunk +3 lines, -3 lines 0 comments Download
M tools/binary_size/libsupersize/testdata/Archive_Elf.golden View 1 chunk +3 lines, -3 lines 0 comments Download
M tools/binary_size/libsupersize/testdata/Archive_OutputDirectory.golden View 1 chunk +3 lines, -3 lines 0 comments Download
M tools/binary_size/libsupersize/testdata/Console.golden View 1 3 chunks +6 lines, -6 lines 0 comments Download
M tools/binary_size/libsupersize/testdata/Diff_Basic.golden View 2 chunks +22 lines, -26 lines 0 comments Download
M tools/binary_size/libsupersize/testdata/Diff_NullDiff.golden View 1 chunk +1 line, -1 line 0 comments Download
M tools/binary_size/libsupersize/testdata/FullDescription.golden View 4 chunks +49 lines, -45 lines 0 comments Download
M tools/binary_size/libsupersize/testdata/SymbolGroupMethods.golden View 1 1 chunk +190 lines, -42 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 15 (10 generated)
agrieve
On 2017/05/09 15:54:49, agrieve wrote: > mailto:agrieve@chromium.org changed reviewers: > + mailto:estevenson@chromium.org 🐛
3 years, 7 months ago (2017-05-09 15:54:58 UTC) #3
estevenson
lgtm https://codereview.chromium.org/2870743003/diff/20001/tools/binary_size/libsupersize/cluster_symbols.py File tools/binary_size/libsupersize/cluster_symbols.py (right): https://codereview.chromium.org/2870743003/diff/20001/tools/binary_size/libsupersize/cluster_symbols.py#newcode90 tools/binary_size/libsupersize/cluster_symbols.py:90: index_and_name_tups = [] I find this function hard ...
3 years, 7 months ago (2017-05-09 22:15:12 UTC) #4
agrieve
https://codereview.chromium.org/2870743003/diff/20001/tools/binary_size/libsupersize/cluster_symbols.py File tools/binary_size/libsupersize/cluster_symbols.py (right): https://codereview.chromium.org/2870743003/diff/20001/tools/binary_size/libsupersize/cluster_symbols.py#newcode90 tools/binary_size/libsupersize/cluster_symbols.py:90: index_and_name_tups = [] On 2017/05/09 22:15:12, estevenson wrote: > ...
3 years, 7 months ago (2017-05-10 00:51:38 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2870743003/40001
3 years, 7 months ago (2017-05-10 14:31:09 UTC) #12
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 14:37:49 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/1f8fe2383c7805bb0385c118b19a...

Powered by Google App Engine
This is Rietveld 408576698