New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 744594 link

Starred by 4 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Investigate removing -O2 from targets

Project Member Reported by agrieve@chromium.org, Jul 17 2017

Issue description

We use optimize_size / optimize_max in:
* cc
* base
* skia
* v8
* ui/gfx
* third_party/{some,modules,here}

The complete list:
https://cs.chromium.org/search/?q=optimize_max%7Coptimize_speed+file:%5C.gn&sq=package:chromium&type=cs

With the switch to clang, all of these modules got noticeably larger ( bug 656048 ), and we also saw a recent 100kb regression that affected only -O2 modules ( bug 741831 ).

Given that clang/gcc generate code with different performance characteristics (I'm assuming anyways), it makes sense to re-audit which modules should get to be excluded from -Oz, or perhaps break up larger targets into O2 / Oz parts.
 
As of today, converting all -O2 -> -Oz saves 2,920,352 bytes. .size file attach.

Here's the per-directory breakdown showing the savings of turning them into -Oz:

.text=-2.91mb    .rodata=-527 bytes .data.rel.ro=1920 bytes .data=96 bytes   .bss=160 bytes  total=-2.91mb
Number of unique paths: 17845

Section Legend: t=.text, r=.rodata, R=.data.rel.ro, d=.data, b=.bss
Index | Running Total | Section@Address | PSS | Path
------------------------------------------------------------
0)   -1390034 (45.6%) *@Group      -1390034 (5054886->3664195)  v8 (count=61226)
1)   -2042760 (67.0%) *@Group      -652725 (2418523->1765366)  Skia (count=30259)
2)   -2342383 (76.8%) *@Group      -299623 (3508710->3209024)  Codecs (count=9795)
3)   -2518353 (82.6%) *@Group      -175970 (719403->543292)  cc (count=10625)
4)   -2657261 (87.1%) *@Group      -138907 (953472->814516)  gpu (count=16026)
5)   -2777607 (91.1%) *@Group      -120346 (497661->377142)  base (count=8795)
6)   -2840282 (93.1%) *@Group      -62674 (298238->235475)  viz (count=4772)
7)   -2865888 (94.0%) *@Group      -25605 (135890->110268)  ui/gfx (count=1957)
8)   -2872652 (94.2%) *@Group      -6764 (9053793->9047027)  Blink (non-generated) (count=252764)
9)   -2877637 (94.3%) *@Group      -4984 (926156->921170)  media (count=24343)
10)  -2880645 (94.4%) *@Group      -3008 (1754961->1751953)  net (count=27720)
11)  -2883231 (94.5%) *@Group      -2585 (1951568->1948982)  WebRTC (count=33119)
12)  -2884259 (94.6%) *@Group      -1028 (314794->313765)  WebVR (count=9307)
13)  -2885216 (94.6%) *@Group      -956 (564400->563443)  Autofill (count=13726)
14)  -2885455 (94.6%) *@Group      -239 (170758->170519)  Password Manager (count=3492)
15)  -2885682 (94.6%) *@Group      -226 (57628->57402)  Printing (count=1683)
16)  -2885815 (94.6%) *@Group      -133 (361556->361423)  WebGL (count=6959)
17)  -2885940 (94.6%) *@Group      -125 (147301->147176)  Internals Pages (count=3168)
18)  -2886046 (94.6%) *@Group      -105 (189560->189454)  WebBluetooth (count=5791)
19)  -2886115 (94.6%) *@Group      -68 (52324->52255)  WebCrypto (count=928)
20)  -2886165 (94.6%) *@Group      -50 (35924->35874)  Prefetch (count=748)
21)  -2886209 (94.6%) *@Group      -44 (66476->66432)  FileSystem (count=2231)
22)  -2886253 (94.6%) *@Group      -43 (118517->118474)  WebUSB (count=3711)
23)  -2886293 (94.6%) *@Group      -40 (18733->18693)  Cast (count=544)
24)  -2886318 (94.6%) *@Group      -24 (1145188->1145163)  ICU (count=12131)
25)  -2886313 (94.6%) *@Group      +4.6 (246621->246625)  libxml (count=2935)
26)  -2886315 (94.6%) *@Group      -2.5 (113195->113193)  XSLT (count=1365)
27)  -2886317 (94.6%) *@Group      -1.3 (12->11)       Blink (generated) (count=8)
28)  -2886317 (94.6%) *@Group      -0.6 (36739->36739)  Media Source (count=985)
29)  -2930404 (96.1%) *@Group      -44086 (3781371->3737278)  Other Third-Party (count=34238)
30)  -3024811 (99.2%) *@Group      -94407 (6448->6320)  ** Merged Symbols (count=7)
31)  -3050327 (100.0%) *@Group      -25516 (11140084->11114538)  Other (count=280810)
Correction: The diff above is from Oct 26 (8f92e51f26b4c3441304da1ebd0407253127d3ce)
Here's the top 100 files for v8:

Section Legend: t=.text, r=.rodata, R=.data.rel.ro, d=.data, b=.bss
Index | Running Total | Section@Address | Δ PSS (Δ size_without_padding) | Path
------------------------------------------------------------
~ 0)     -74329 (5.3%)  *@Group      -74329 (216970->142629)  v8/src/objects.cc (count=1820)
~ 1)    -126360 (9.1%)  *@Group      -52031 (124513->72471)  v8/src/api.cc (count=1486)
~ 2)    -172124 (12.4%) *@Group      -45763 (107370->61586)  v8/src/heap/mark-compact.cc (count=907)
~ 3)    -214845 (15.5%) *@Group      -42721 (97102->54379)  v8/src/bootstrapper.cc (count=951)
~ 4)    -256378 (18.4%) *@Group      -41532 (118033->76494)  v8/src/parsing/parser.cc (count=650)
~ 5)    -297843 (21.4%) *@Group      -41464 (127009->85536)  v8/src/elements.cc (count=665)
~ 6)    -332681 (23.9%) *@Group      -34837 (85618->50780)  v8/src/runtime/runtime-debug.cc (count=417)
~ 7)    -365563 (26.3%) *@Group      -32882 (58062->25176)  v8/src/heap/object-stats.cc (count=309)
~ 8)    -391789 (28.2%) *@Group      -26225 (49736->23517)  v8/src/heap/incremental-marking.cc (count=368)
~ 9)    -417269 (30.0%) *@Group      -25480 (54382->28894)  v8/src/deoptimizer.cc (count=424)
~ 10)   -440139 (31.7%) *@Group      -22869 (55088->32215)  v8/src/factory.cc (count=449)
~ 11)   -459944 (33.1%) *@Group      -19804 (33184->13379)  v8/src/runtime/runtime-atomics.cc (count=62)
~ 12)   -479443 (34.5%) *@Group      -19499 (47017->27510)  v8/src/interpreter/bytecode-generator.cc (count=372)
~ 13)   -498819 (35.9%) *@Group      -19375 (71913->52529)  v8/src/profiler/heap-snapshot-generator.cc (count=1282)
~ 14)   -517020 (37.2%) *@Group      -18201 (46239->28036)  v8/src/runtime/runtime-regexp.cc (count=241)
~ 15)   -535180 (38.5%) *@Group      -18160 (52573->34404)  v8/src/regexp/jsregexp.cc (count=448)
~ 16)   -552551 (39.8%) *@Group      -17370 (67997->50585)  v8/src/heap/heap.cc (count=1000)
~ 17)   -569808 (41.0%) *@Group      -17256 (52290->35021)  v8/src/wasm/function-body-decoder.cc (count=598)
~ 18)   -586339 (42.2%) *@Group      -16530 (51415->34875)  v8/src/parsing/preparser.cc (count=232)
~ 19)   -601572 (43.3%) *@Group      -15233 (37237->22004)  v8/src/compiler/arm/instruction-selector-arm.cc (count=320)
~ 20)   -616109 (44.3%) *@Group      -14536 (40581->26034)  v8/src/builtins/builtins-date.cc (count=240)
~ 21)   -630337 (45.3%) *@Group      -14227 (49515->35339)  v8/src/compiler/simplified-lowering.cc (count=220)
~ 22)   -644345 (46.4%) *@Group      -14008 (41387->27364)  v8/src/wasm/module-compiler.cc (count=447)
~ 23)   -657516 (47.3%) *@Group      -13170 (49387->36216)  v8/src/runtime/runtime-object.cc (count=337)
~ 24)   -670686 (48.2%) *@Group      -13170 (31101->17927)  v8/src/compiler/instruction-selector.cc (count=260)
~ 25)   -683789 (49.2%) *@Group      -13103 (25477->12372)  v8/src/value-serializer.cc (count=159)
~ 26)   -695957 (50.1%) *@Group      -12167 (28176->15998)  v8/src/compiler/typer.cc (count=279)
~ 27)   -707647 (50.9%) *@Group      -11690 (32487->20743)  v8/src/arm/assembler-arm.cc (count=380)
~ 28)   -719311 (51.7%) *@Group      -11664 (22861->11191)  v8/src/compiler/machine-operator-reducer.cc (count=93)
~ 29)   -730879 (52.6%) *@Group      -11568 (37318->25739)  v8/src/ic/ic.cc (count=284)
~ 30)   -742255 (53.4%) *@Group      -11376 (49780->38402)  v8/src/runtime/runtime-test.cc (count=361)
~ 31)   -753323 (54.2%) *@Group      -11067 (34054->22986)  v8/src/runtime/runtime-scopes.cc (count=164)
~ 32)   -763650 (54.9%) *@Group      -10326 (15424->5098)  v8/src/wasm/wasm-module-builder.cc (count=113)
~ 33)   -773954 (55.7%) *@Group      -10304 (33670->23355)  v8/src/heap/spaces.cc (count=584)
~ 34)   -783873 (56.4%) *@Group      -9918 (41861->31949)  v8/src/compiler/wasm-compiler.cc (count=320)
~ 35)   -793752 (57.1%) *@Group      -9878 (20307->10421)  v8/src/heap/scavenger.cc (count=127)
~ 36)   -803128 (57.8%) *@Group      -9376 (25787->16407)  v8/src/compiler/js-typed-lowering.cc (count=112)
~ 37)   -812369 (58.4%) *@Group      -9240 (32179->22938)  v8/src/runtime/runtime-strings.cc (count=157)
~ 38)   -821572 (59.1%) *@Group      -9203 (40633->31421)  v8/src/compiler/arm/code-generator-arm.cc (count=143)
~ 39)   -830648 (59.8%) *@Group      -9075 (35058->25990)  v8/src/runtime/runtime-internal.cc (count=251)
~ 40)   -839620 (60.4%) *@Group      -8971 (23732->14758)  v8/src/compiler/js-create-lowering.cc (count=121)
~ 41)   -848569 (61.0%) *@Group      -8948 (28547->19598)  v8/src/wasm/module-decoder.cc (count=455)
~ 42)   -857511 (61.7%) *@Group      -8941 (41271->32322)  v8/src/isolate.cc (count=750)
~ 43)   -866344 (62.3%) *@Group      -8833 (24543->15709)  v8/src/runtime/runtime-array.cc (count=110)
~ 44)   -874771 (62.9%) *@Group      -8426 (33276->24849)  v8/src/compiler/js-builtin-reducer.cc (count=147)
~ 45)   -882805 (63.5%) *@Group      -8034 (22972->14941)  v8/src/wasm/baseline/liftoff-compiler.cc (count=295)
~ 46)   -890687 (64.1%) *@Group      -7881 (22348->14466)  v8/src/builtins/builtins-dataview.cc (count=140)
~ 47)   -898540 (64.6%) *@Group      -7853 (19826->11973)  v8/src/wasm/wasm-objects.cc (count=200)
~ 48)   -906302 (65.2%) *@Group      -7762 (20245->12478)  v8/src/debug/liveedit.cc (count=191)
~ 49)   -914034 (65.8%) *@Group      -7731 (17479->9746)  v8/src/compiler/load-elimination.cc (count=178)
~ 50)   -921200 (66.3%) *@Group      -7166 (33801->26629)  v8/src/inspector/protocol/Runtime.cpp (count=443)
~ 51)   -928200 (66.8%) *@Group      -6999 (29563->22563)  v8/src/runtime/runtime-intl.cc (count=157)
~ 52)   -935097 (67.3%) *@Group      -6897 (16932->10028)  v8/src/regexp/regexp-parser.cc (count=125)
~ 53)   -941950 (67.8%) *@Group      -6852 (27737->20895)  v8/src/wasm/wasm-interpreter.cc (count=162)
~ 54)   -948604 (68.2%) *@Group      -6654 (21469->14810)  v8/src/frames.cc (count=363)
~ 55)   -954922 (68.7%) *@Group      -6317 (26780->20439)  v8/src/compiler/pipeline.cc (count=445)
~ 56)   -948639 (68.2%) *@Group      6282 (64372->70651)  v8/src/compiler/machine-operator.cc (count=2032)
~ 57)   -942430 (67.8%) *@Group      6209 (45630->51840)  v8/src/compiler/simplified-operator.cc (count=1461)
~ 58)   -948538 (68.2%) *@Group      -6108 (20487->14377)  v8/src/debug/debug.cc (count=200)
~ 59)   -954627 (68.7%) *@Group      -6089 (27810->21710)  v8/src/compiler/register-allocator.cc (count=329)
~ 60)   -960693 (69.1%) *@Group      -6065 (35209->29137)  v8/src/interpreter/bytecode-array-builder.cc (count=298)
~ 61)   -966667 (69.5%) *@Group      -5973 (26585->20607)  v8/src/inspector/protocol/Debugger.cpp (count=361)
~ 62)   -972518 (70.0%) *@Group      -5851 (9354->3502)  v8/src/compiler/move-optimizer.cc (count=46)
~ 63)   -977885 (70.3%) *@Group      -5367 (18019->12655)  v8/src/heap/gc-tracer.cc (count=156)
~ 64)   -983244 (70.7%) *@Group      -5358 (16061->10700)  v8/src/compiler/simd-scalar-lowering.cc (count=66)
~ 65)   -988536 (71.1%) *@Group      -5292 (16464->11172)  v8/src/inspector/protocol/Protocol.cpp (count=229)
~ 66)   -993730 (71.5%) *@Group      -5193 (16370->11175)  v8/src/parsing/scanner.cc (count=93)
~ 67)   -998795 (71.9%) *@Group      -5065 (12356->7291)  v8/src/builtins/builtins-typedarray.cc (count=91)
~ 68)  -1003805 (72.2%) *@Group      -5010 (64854->59843)  v8/src/counters.cc (count=1788)
~ 69)  -1008689 (72.6%) *@Group      -4883 (18658->13774)  v8/src/runtime/runtime-typedarray.cc (count=129)
~ 70)  -1013564 (72.9%) *@Group      -4875 (9099->4223)  v8/src/transitions.cc (count=55)
~ 71)  -1018435 (73.3%) *@Group      -4870 (13594->8724)  v8/src/runtime/runtime-literals.cc (count=53)
~ 72)  -1023226 (73.6%) *@Group      -4791 (16917->12127)  v8/src/compiler.cc (count=155)
~ 73)  -1027997 (74.0%) *@Group      -4770 (20222->15447)  v8/src/compiler/scheduler.cc (count=278)
~ 74)  -1032674 (74.3%) *@Group      -4677 (7792->3113)  v8/src/ast/prettyprinter.cc (count=67)
~ 75)  -1037116 (74.6%) *@Group      -4441 (11734->7289)  v8/src/feedback-vector.cc (count=189)
~ 76)  -1041527 (74.9%) *@Group      -4411 (21713->17302)  v8/src/compiler/js-call-reducer.cc (count=94)
~ 77)  -1045885 (75.2%) *@Group      -4357 (35289->30927)  v8/src/compiler/effect-control-linearizer.cc (count=183)
~ 78)  -1050227 (75.6%) *@Group      -4342 (31094->26750)  v8/src/asmjs/asm-parser.cc (count=274)
~ 79)  -1054453 (75.9%) *@Group      -4226 (27061->22831)  v8/src/compiler/bytecode-graph-builder.cc (count=370)
~ 80)  -1058646 (76.2%) *@Group      -4193 (12019->7821)  v8/src/objects/bigint.cc (count=79)
~ 81)  -1062823 (76.5%) *@Group      -4176 (13448->9270)  v8/src/builtins/builtins-array.cc (count=88)
~ 82)  -1066967 (76.8%) *@Group      -4144 (13435->9291)  v8/src/compiler/escape-analysis.cc (count=186)
~ 83)  -1071084 (77.1%) *@Group      -4117 (9492->5374)  v8/src/inspector/v8-inspector-impl.cc (count=130)
~ 84)  -1075165 (77.3%) *@Group      -4080 (23033->18951)  v8/src/inspector/v8-debugger-agent-impl.cc (count=299)
~ 85)  -1079237 (77.6%) *@Group      -4072 (12770->8697)  v8/src/objects/intl-objects.cc (count=115)
~ 86)  -1083309 (77.9%) *@Group      -4071 (13895->9823)  v8/src/builtins/builtins-object.cc (count=148)
~ 87)  -1087372 (78.2%) *@Group      -4062 (13883->9820)  v8/src/runtime/runtime-collections.cc (count=88)
~ 88)  -1091405 (78.5%) *@Group      -4033 (12351->8317)  v8/src/runtime/runtime-wasm.cc (count=73)
~ 89)  -1095437 (78.8%) *@Group      -4031 (32137->28095)  v8/src/code-stub-assembler.cc (count=361)
~ 90)  -1099446 (79.1%) *@Group      -4008 (12779->8771)  v8/src/runtime/runtime-function.cc (count=81)
~ 91)  -1103439 (79.4%) *@Group      -3993 (22130->18134)  v8/src/json-parser.cc (count=74)
~ 92)  -1107419 (79.7%) *@Group      -3980 (14758->10778)  v8/src/runtime/runtime-classes.cc (count=104)
~ 93)  -1111388 (80.0%) *@Group      -3968 (13753->9777)  v8/src/ast/scopes.cc (count=151)
~ 94)  -1115307 (80.2%) *@Group      -3919 (13303->9382)  v8/src/compiler/js-generic-lowering.cc (count=107)
~ 95)  -1119129 (80.5%) *@Group      -3821 (31634->27812)  v8/src/messages.cc (count=463)
~ 96)  -1122892 (80.8%) *@Group      -3763 (7425->3661)  v8/src/asmjs/asm-scanner.cc (count=83)
~ 97)  -1126565 (81.0%) *@Group      -3672 (10278->6605)  v8/src/accessors.cc (count=117)
~ 98)  -1130109 (81.3%) *@Group      -3544 (16888->13344)  v8/src/runtime/runtime-liveedit.cc (count=99)
~ 99)  -1133651 (81.6%) *@Group      -3541 (12141->8597)  v8/src/snapshot/deserializer.cc (count=158)
~ 100) -1137146 (81.8%) *@Group      -3495 (6878->3383)  v8/src/objects/scope-info.cc (count=55)
Here's Skia:

Section Legend: t=.text, r=.rodata, R=.data.rel.ro, d=.data, b=.bss
Index | Running Total | Section@Address | Δ PSS (Δ size_without_padding) | Path
------------------------------------------------------------
~ 0)     -39235 (6.0%)  *@Group      -39235 (117117->77847)  third_party/skia/src/pathops/SkPathOpsTSect.cpp (count=599)
~ 1)     -53134 (8.1%)  *@Group      -13898 (37132->23233)  third_party/skia/src/core/SkCanvas.cpp (count=358)
~ 2)     -66984 (10.3%) *@Group      -13850 (23304->9449)  third_party/skia/src/core/SkMipMap.cpp (count=73)
~ 3)     -80262 (12.3%) *@Group      -13277 (47527->34234)  third_party/skia/src/sksl/SkSLCompiler.cpp (count=446)
~ 4)     -92763 (14.2%) *@Group      -12501 (32773->20264)  third_party/skia/src/pdf/SkPDFDevice.cpp (count=270)
~ 5)    -104197 (16.0%) *@Group      -11433 (34849->23424)  third_party/skia/src/sksl/SkSLParser.cpp (count=391)
~ 6)    -115525 (17.7%) *@Group      -11328 (31230->19897)  third_party/skia/src/gpu/GrRenderTargetContext.cpp (count=328)
~ 7)    -126457 (19.4%) *@Group      -10932 (43368->32437)  third_party/skia/src/gpu/gl/GrGLGpu.cpp (count=367)
~ 8)    -137366 (21.0%) *@Group      -10908 (21216->10305)  third_party/skia/src/gpu/GrTessellator.cpp (count=74)
~ 9)    -148086 (22.7%) *@Group      -10719 (48340->37613)  third_party/skia/src/sksl/SkSLIRGenerator.cpp (count=564)
~ 10)   -158547 (24.3%) *@Group      -10461 (31371->20901)  third_party/skia/src/effects/SkLightingImageFilter.cpp (count=310)
~ 11)   -167491 (25.7%) *@Group      -8944 (18173->9227)  third_party/skia/src/sksl/SkSLGLSLCodeGenerator.cpp (count=228)
~ 12)   -176352 (27.0%) *@Group      -8860 (26236->17373)  third_party/skia/src/gpu/SkGpuDevice.cpp (count=185)
~ 13)   -183982 (28.2%) *@Group      -7630 (15075->7451)  third_party/skia/src/gpu/ops/GrAAHairLinePathRenderer.cpp (count=135)
~ 14)   -191344 (29.3%) *@Group      -7361 (18337->10973)  third_party/skia/src/utils/SkShadowTessellator.cpp (count=92)
~ 15)   -198354 (30.4%) *@Group      -7010 (24889->17878)  third_party/skia/src/core/SkOpts.cpp (count=129)
~ 16)   -204709 (31.4%) *@Group      -6354 (33809->27455)  third_party/skia/src/core/SkScan_AAAPath.cpp (count=75)
~ 17)   -211028 (32.3%) *@Group      -6319 (26947->20632)  third_party/skia/src/gpu/ops/GrOvalOpFactory.cpp (count=350)
~ 18)   -217301 (33.3%) *@Group      -6273 (15089->8804)  third_party/skia/src/shaders/gradients/Sk4fLinearGradient.cpp (count=22)
~ 19)   -223203 (34.2%) *@Group      -5901 (12526->6625)  third_party/skia/src/core/SkPictureRecord.cpp (count=166)
~ 20)   -228959 (35.1%) *@Group      -5756 (23286->17529)  third_party/skia/src/core/SkPath.cpp (count=158)
~ 21)   -234529 (35.9%) *@Group      -5569 (18578->13006)  third_party/skia/src/core/SkPaint.cpp (count=250)
~ 22)   -239828 (36.7%) *@Group      -5299 (10276->4974)  third_party/skia/src/core/SkMatrix44.cpp (count=40)
~ 23)   -244868 (37.5%) *@Group      -5040 (23394->18352)  third_party/skia/src/jumper/SkJumper_stages.cpp (count=181)
~ 24)   -249692 (38.3%) *@Group      -4823 (10824->5998)  third_party/skia/src/gpu/GrReducedClip.cpp (count=90)
~ 25)   -254504 (39.0%) *@Group      -4812 (12654->7839)  third_party/skia/src/core/SkGeometry.cpp (count=56)
~ 26)   -259044 (39.7%) *@Group      -4540 (10242->5700)  third_party/skia/src/core/SkScan_Hairline.cpp (count=37)
~ 27)   -263467 (40.4%) *@Group      -4423 (7402->2978)  third_party/skia/src/core/SkBitmap.cpp (count=63)
~ 28)   -267876 (41.0%) *@Group      -4408 (14267->9856)  third_party/skia/src/effects/SkBlurMaskFilter.cpp (count=149)
~ 29)   -272175 (41.7%) *@Group      -4298 (16941->12642)  third_party/skia/src/shaders/gradients/SkGradientShader.cpp (count=182)
~ 30)   -276451 (42.4%) *@Group      -4275 (27734->23463)  third_party/skia/src/gpu/instanced/InstanceProcessor.cpp (count=430)
~ 31)   -280721 (43.0%) *@Group      -4270 (20268->15995)  third_party/skia/src/shaders/SkPerlinNoiseShader.cpp (count=257)
~ 32)   -284884 (43.6%) *@Group      -4162 (11834->7653)  third_party/skia/src/gpu/effects/GrDistanceFieldGeoProc.cpp (count=163)
~ 33)   -288957 (44.3%) *@Group      -4073 (12049->7974)  third_party/skia/src/pdf/SkPDFGradientShader.cpp (count=121)
~ 34)   -292993 (44.9%) *@Group      -4035 (8672->4637)  third_party/skia/src/core/SkClipStack.cpp (count=97)
~ 35)   -296921 (45.5%) *@Group      -3928 (12146->8215)  third_party/skia/src/gpu/GrContext.cpp (count=164)
~ 36)   -300759 (46.1%) *@Group      -3837 (10751->6911)  third_party/skia/src/core/SkAAClip.cpp (count=106)
~ 37)   -304400 (46.6%) *@Group      -3641 (9879->6236)  third_party/skia/src/image/SkImage_Gpu.cpp (count=85)
~ 38)   -308040 (47.2%) *@Group      -3639 (10387->6748)  third_party/skia/src/gpu/GrResourceCache.cpp (count=163)
~ 39)   -311658 (47.7%) *@Group      -3618 (13041->9419)  third_party/skia/src/gpu/text/GrTextUtils.cpp (count=172)
~ 40)   -315264 (48.3%) *@Group      -3605 (9987->6381)  third_party/skia/src/effects/SkMatrixConvolutionImageFilter.cpp (count=46)
~ 41)   -318778 (48.8%) *@Group      -3513 (7863->4347)  third_party/skia/src/image/SkImage_Lazy.cpp (count=95)
~ 42)   -322237 (49.4%) *@Group      -3459 (8167->4709)  third_party/skia/src/core/SkGlyphCache.cpp (count=94)
~ 43)   -325696 (49.9%) *@Group      -3458 (10607->7146)  third_party/skia/src/gpu/ops/GrAAConvexPathRenderer.cpp (count=182)
~ 44)   -329144 (50.4%) *@Group      -3447 (13572->10113)  third_party/skia/src/pathops/SkOpSegment.cpp (count=127)
~ 45)   -332561 (50.9%) *@Group      -3417 (18404->14980)  third_party/skia/src/core/SkDraw.cpp (count=228)
~ 46)   -335965 (51.5%) *@Group      -3404 (11659->8254)  third_party/skia/src/gpu/ops/GrDashOp.cpp (count=218)
~ 47)   -339368 (52.0%) *@Group      -3402 (12644->9241)  third_party/skia/src/core/SkScan_DAAPath.cpp (count=37)
~ 48)   -342761 (52.5%) *@Group      -3393 (10287->6892)  third_party/skia/src/core/SkOverdrawCanvas.cpp (count=127)
~ 49)   -346113 (53.0%) *@Group      -3351 (4902->1550)  third_party/skia/src/core/SkBitmapProcState_matrixProcs.cpp (count=18)
~ 50)   -349336 (53.5%) *@Group      -3223 (7588->4364)  third_party/skia/src/core/SkRegion.cpp (count=65)
~ 51)   -352499 (54.0%) *@Group      -3162 (10432->7267)  third_party/skia/src/gpu/ops/GrSmallPathRenderer.cpp (count=169)
~ 52)   -355629 (54.5%) *@Group      -3129 (8538->5402)  third_party/skia/src/gpu/ccpr/GrCoverageCountingPathRenderer.cpp (count=202)
~ 53)   -358667 (54.9%) *@Group      -3038 (6668->3630)  third_party/skia/src/gpu/GrShape.cpp (count=69)
~ 54)   -361655 (55.4%) *@Group      -2987 (6680->3692)  third_party/skia/src/pathops/SkAddIntersections.cpp (count=17)
~ 55)   -364638 (55.9%) *@Group      -2983 (11396->8408)  third_party/skia/src/core/SkColorSpace_ICC.cpp (count=40)
~ 56)   -367507 (56.3%) *@Group      -2868 (9023->6163)  third_party/skia/src/effects/SkMorphologyImageFilter.cpp (count=111)
~ 57)   -370361 (56.7%) *@Group      -2854 (8460->5603)  third_party/skia/src/core/SkPicturePlayback.cpp (count=19)
~ 58)   -373194 (57.2%) *@Group      -2832 (8094->5261)  third_party/skia/src/gpu/ops/GrMSAAPathRenderer.cpp (count=175)
~ 59)   -375961 (57.6%) *@Group      -2767 (12415->9647)  third_party/skia/src/core/SkMatrix.cpp (count=92)
~ 60)   -378708 (58.0%) *@Group      -2746 (6986->4238)  third_party/skia/src/core/SkBitmapDevice.cpp (count=86)
~ 61)   -381313 (58.4%) *@Group      -2604 (10266->7661)  third_party/skia/src/pdf/SkPDFFont.cpp (count=141)
~ 62)   -383819 (58.8%) *@Group      -2505 (4648->2142)  third_party/skia/src/opts/SkBitmapProcState_matrixProcs_neon.cpp (count=8)
~ 63)   -386311 (59.2%) *@Group      -2492 (10546->8039)  third_party/skia/src/core/SkRecorder.cpp (count=285)
~ 64)   -388743 (59.6%) *@Group      -2431 (6874->4448)  third_party/skia/src/gpu/ops/GrAAStrokeRectOp.cpp (count=93)
~ 65)   -391165 (59.9%) *@Group      -2422 (7221->4796)  third_party/skia/src/utils/SkShadowUtils.cpp (count=83)
~ 66)   -393536 (60.3%) *@Group      -2370 (8349->5978)  third_party/skia/src/gpu/effects/GrRRectEffect.cpp (count=96)
~ 67)   -395852 (60.6%) *@Group      -2315 (7120->4796)  third_party/skia/src/core/SkScalerContext.cpp (count=57)
~ 68)   -398149 (61.0%) *@Group      -2296 (9598->7300)  third_party/skia/src/gpu/text/GrStencilAndCoverTextContext.cpp (count=128)
~ 69)   -400434 (61.3%) *@Group      -2285 (6030->3744)  third_party/skia/src/core/SkRRect.cpp (count=23)
~ 70)   -402680 (61.7%) *@Group      -2245 (10736->8488)  third_party/skia/src/ports/SkFontHost_FreeType.cpp (count=131)
~ 71)   -404915 (62.0%) *@Group      -2234 (9258->7022)  third_party/skia/src/pdf/SkPDFDocument.cpp (count=82)
~ 72)   -407144 (62.4%) *@Group      -2229 (17556->15325)  third_party/skia/src/gpu/gl/GrGLCaps.cpp (count=289)
~ 73)   -409269 (62.7%) *@Group      -2125 (6185->4059)  third_party/skia/src/gpu/ccpr/GrCCPRCoverageOp.cpp (count=134)
~ 74)   -411388 (63.0%) *@Group      -2118 (5795->3677)  third_party/skia/src/sksl/SkSLCFGGenerator.cpp (count=59)
~ 75)   -413506 (63.4%) *@Group      -2118 (8512->6393)  third_party/skia/src/gpu/ops/GrAAConvexTessellator.cpp (count=84)
~ 76)   -415607 (63.7%) *@Group      -2100 (5851->3750)  third_party/skia/src/gpu/ops/GrDrawPathOp.cpp (count=123)
~ 77)   -417664 (64.0%) *@Group      -2056 (6822->4759)  third_party/skia/src/effects/SkDisplacementMapEffect.cpp (count=92)
~ 78)   -419718 (64.3%) *@Group      -2054 (7110->5055)  third_party/skia/src/gpu/ops/GrTextureOp.cpp (count=152)
~ 79)   -421766 (64.6%) *@Group      -2048 (6461->4411)  third_party/skia/src/gpu/GrClipStackClip.cpp (count=117)
~ 80)   -423813 (64.9%) *@Group      -2046 (5659->3612)  third_party/skia/src/gpu/ops/GrNonAAFillRectOp.cpp (count=91)
~ 81)   -425841 (65.2%) *@Group      -2028 (6287->4258)  third_party/skia/src/gpu/ops/GrDefaultPathRenderer.cpp (count=117)
~ 82)   -427865 (65.6%) *@Group      -2023 (6280->4251)  third_party/skia/src/gpu/SkGr.cpp (count=82)
~ 83)   -429805 (65.8%) *@Group      -1940 (5074->3134)  third_party/skia/src/gpu/GrSoftwarePathRenderer.cpp (count=94)
~ 84)   -431745 (66.1%) *@Group      -1939 (5991->4047)  third_party/skia/src/gpu/GrFragmentProcessor.cpp (count=125)
~ 85)   -433664 (66.4%) *@Group      -1919 (6355->4435)  third_party/skia/src/pdf/SkPDFTypes.cpp (count=105)
~ 86)   -435536 (66.7%) *@Group      -1872 (5009->3143)  third_party/skia/src/pdf/SkPDFUtils.cpp (count=63)
~ 87)   -437358 (67.0%) *@Group      -1821 (8454->6624)  third_party/skia/src/pathops/SkPathOpsCubic.cpp (count=44)
~ 88)   -439175 (67.3%) *@Group      -1817 (11003->9182)  third_party/skia/src/pathops/SkOpCoincidence.cpp (count=77)
~ 89)   -440947 (67.6%) *@Group      -1771 (7949->6175)  third_party/skia/src/gpu/text/GrAtlasTextBlob_regenInOp.cpp (count=54)
~ 90)   -442713 (67.8%) *@Group      -1765 (3780->2015)  third_party/skia/src/gpu/gl/GrGLPath.cpp (count=41)
~ 91)   -444476 (68.1%) *@Group      -1763 (5259->3495)  third_party/skia/src/pathops/SkOpEdgeBuilder.cpp (count=45)
~ 92)   -446203 (68.4%) *@Group      -1726 (10352->8619)  third_party/skia/src/pathops/SkOpAngle.cpp (count=63)
~ 93)   -447928 (68.6%) *@Group      -1725 (4723->2993)  third_party/skia/src/core/SkString.cpp (count=58)
~ 94)   -449625 (68.9%) *@Group      -1696 (7863->6166)  third_party/skia/src/core/SkBlitter_ARGB32.cpp (count=49)
~ 95)   -451299 (69.1%) *@Group      -1674 (4467->2792)  third_party/skia/src/core/SkResourceCache.cpp (count=67)
~ 96)   -452972 (69.4%) *@Group      -1672 (5070->3398)  third_party/skia/src/core/SkImageFilter.cpp (count=67)
~ 97)   -454632 (69.7%) *@Group      -1660 (3748->2083)  third_party/skia/src/core/SkColorMatrixFilterRowMajor255.cpp (count=50)
~ 98)   -456289 (69.9%) *@Group      -1657 (9101->7438)  third_party/skia/src/core/SkBlitter.cpp (count=141)
~ 99)   -457935 (70.2%) *@Group      -1645 (5876->4240)  third_party/skia/src/gpu/effects/GrTextureDomain.cpp (count=83)
~ 100)  -459580 (70.4%) *@Group      -1645 (4769->3118)  third_party/skia/src/core/SkEdgeBuilder.cpp (count=56)
Codecs:
Section Legend: t=.text, r=.rodata, R=.data.rel.ro, d=.data, b=.bss

Index | Running Total | Section@Address | Δ PSS (Δ size_without_padding) | Path
------------------------------------------------------------
~ 0)    -145285 (48.5%) *@Group      -145285 (325336->180023)  third_party/libwebp (count=1057)
~ 1)    -230952 (77.1%) *@Group      -85667 (2059089->1973390)  third_party/ffmpeg (count=4643)
~ 2)    -299610 (100.0%) *@Group      -68658 (248524->179862)  third_party/opus (count=515)
~ 3)    -299612 (100.0%) *@Group      -2.5 (666886->666884)  third_party/libvpx (count=2243)
~ 4)    -299614 (100.0%) *@Group      -1.2 (59256->59255)  third_party/libpng (count=617)

Section Legend: t=.text, r=.rodata, R=.data.rel.ro, d=.data, b=.bss
Index | Running Total | Section@Address | Δ PSS (Δ size_without_padding) | Path
------------------------------------------------------------
~ 0)     -26231 (8.8%)  *@Group      -26231 (32735->6504)  third_party/libwebp/src/dsp/upsampling.c (count=31)
~ 1)     -49569 (16.5%) *@Group      -23338 (25822->2484)  third_party/libwebp/src/dsp/yuv.c (count=42)
~ 2)     -65652 (21.9%) *@Group      -16083 (21971->5888)  third_party/libwebp/src/dsp/upsampling_neon.c (count=20)
~ 3)     -74014 (24.7%) *@Group      -8362 (15229->6867)  third_party/libwebp/src/dsp/enc.c (count=65)
~ 4)     -82051 (27.4%) *@Group      -8037 (71854->63813)  third_party/ffmpeg/libavcodec/aacps_float.c (count=69)
~ 5)     -89818 (30.0%) *@Group      -7766 (22976->15207)  third_party/opus/src/celt/celt_encoder.c (count=21)
~ 6)     -97381 (32.5%) *@Group      -7563 (46293->38725)  third_party/ffmpeg/libavcodec/autorename_libavcodec_aacdec.c (count=84)
~ 7)    -104491 (34.9%) *@Group      -7110 (244342->237229)  third_party/ffmpeg/libavcodec/mpegaudiodec_fixed.c (count=77)
~ 8)    -111409 (37.2%) *@Group      -6918 (14376->7457)  third_party/opus/src/celt/celt_decoder.c (count=11)
~ 9)    -117880 (39.3%) *@Group      -6470 (34344->27871)  third_party/ffmpeg/libavformat/autorename_libavformat_utils.c (count=129)
~ 10)   -123972 (41.4%) *@Group      -6092 (13194->7095)  third_party/libwebp/src/enc/backward_references_enc.c (count=32)
~ 11)   -129165 (43.1%) *@Group      -5192 (6996->1803)  third_party/ffmpeg/libavcodec/dirac.c (count=8)
~ 12)   -134022 (44.7%) *@Group      -4857 (12402->7542)  third_party/libwebp/src/dsp/lossless_enc.c (count=53)
~ 13)   -138606 (46.3%) *@Group      -4583 (65953->61369)  third_party/ffmpeg/libavcodec/aacsbr.c (count=57)
~ 14)   -143167 (47.8%) *@Group      -4560 (9143->4575)  third_party/libwebp/src/enc/histogram_enc.c (count=23)
~ 15)   -147486 (49.2%) *@Group      -4319 (44741->40415)  third_party/ffmpeg/libavformat/mov.c (count=261)
~ 16)   -151698 (50.6%) *@Group      -4212 (12334->8122)  third_party/libwebp/src/enc/quant_enc.c (count=22)
~ 17)   -155860 (52.0%) *@Group      -4162 (13582->9420)  third_party/opus/src/src/analysis.c (count=11)
~ 18)   -160002 (53.4%) *@Group      -4142 (14042->9900)  third_party/opus/src/celt/bands.c (count=24)
~ 19)   -164058 (54.8%) *@Group      -4056 (10590->6534)  third_party/libwebp/src/dsp/dec.c (count=74)
~ 20)   -168010 (56.1%) *@Group      -3952 (19340->15388)  third_party/libwebp/src/enc/picture_csp_enc.c (count=33)
~ 21)   -171956 (57.4%) *@Group      -3945 (14611->10664)  third_party/ffmpeg/libavcodec/vorbisdec.c (count=21)
~ 22)   -175888 (58.7%) *@Group      -3932 (16588->12653)  third_party/opus/src/src/opus_encoder.c (count=24)
~ 23)   -179778 (60.0%) *@Group      -3890 (10454->6564)  third_party/libwebp/src/dec/vp8l_dec.c (count=33)
~ 24)   -183070 (61.1%) *@Group      -3292 (10498->7206)  third_party/opus/src/silk/arm/NSQ_del_dec_neon_intr.c (count=5)
~ 25)   -186334 (62.2%) *@Group      -3264 (7243->3972)  third_party/libwebp/src/enc/predictor_enc.c (count=14)
~ 26)   -189282 (63.2%) *@Group      -2948 (6672->3724)  third_party/libwebp/src/dec/vp8_dec.c (count=42)
~ 27)   -191956 (64.1%) *@Group      -2673 (5708->3034)  third_party/opus/src/silk/fixed/pitch_analysis_core_FIX.c (count=2)
~ 28)   -194486 (64.9%) *@Group      -2530 (6506->3976)  third_party/libwebp/src/dsp/lossless.c (count=53)
~ 29)   -196980 (65.7%) *@Group      -2494 (7062->4566)  third_party/ffmpeg/libavformat/aviobuf.c (count=58)
~ 30)   -199445 (66.6%) *@Group      -2465 (23816->21351)  third_party/ffmpeg/libavformat/matroskadec.c (count=124)
~ 31)   -201889 (67.4%) *@Group      -2444 (3666->1222)  third_party/libwebp/src/enc/token_enc.c (count=8)
~ 32)   -204331 (68.2%) *@Group      -2441 (9831->7388)  third_party/ffmpeg/libavutil/eval.c (count=73)
~ 33)   -206744 (69.0%) *@Group      -2413 (6528->4114)  third_party/libwebp/src/dec/tree_dec.c (count=8)
~ 34)   -209088 (69.8%) *@Group      -2344 (7660->5316)  third_party/libwebp/src/dsp/dec_neon.c (count=45)
~ 35)   -211348 (70.5%) *@Group      -2260 (4648->2388)  third_party/opus/src/celt/rate.c (count=3)
~ 36)   -213494 (71.3%) *@Group      -2146 (9012->6866)  third_party/ffmpeg/libavcodec/mpegaudiodsp_fixed.c (count=9)
~ 37)   -215424 (71.9%) *@Group      -1930 (2712->782)   third_party/libwebp/src/dsp/rescaler.c (count=12)
~ 38)   -217352 (72.5%) *@Group      -1928 (2892->964)   third_party/opus/src/silk/encode_pulses.c (count=2)
~ 39)   -219238 (73.2%) *@Group      -1886 (2596->710)   third_party/libwebp/src/dsp/rescaler_neon.c (count=4)
~ 40)   -221046 (73.8%) *@Group      -1808 (11476->9666)  third_party/ffmpeg/libavcodec/autorename_libavcodec_utils.c (count=92)
~ 41)   -222750 (74.3%) *@Group      -1704 (2528->824)   third_party/libwebp/src/dsp/filters_neon.c (count=8)
~ 42)   -224265 (74.9%) *@Group      -1514 (7257->5738)  third_party/libwebp/src/enc/frame_enc.c (count=18)
~ 43)   -225777 (75.4%) *@Group      -1512 (4360->2847)  third_party/opus/src/celt/pitch.c (count=10)
~ 44)   -227281 (75.9%) *@Group      -1504 (3820->2316)  third_party/libwebp/src/enc/iterator_enc.c (count=22)
~ 45)   -228769 (76.4%) *@Group      -1488 (5730->4242)  third_party/libwebp/src/dec/frame_dec.c (count=18)
~ 46)   -230194 (76.8%) *@Group      -1424 (527537->526112)  third_party/ffmpeg/libavcodec/fft_float.c (count=56)
~ 47)   -231611 (77.3%) *@Group      -1417 (8341->6921)  third_party/libwebp/src/enc/vp8l_enc.c (count=25)
~ 48)   -233004 (77.8%) *@Group      -1393 (3376->1982)  third_party/opus/src/silk/fixed/burg_modified_FIX.c (count=2)
~ 49)   -234389 (78.2%) *@Group      -1384 (264729->263344)  third_party/ffmpeg/libavcodec/fft_fixed.c (count=52)
~ 50)   -235768 (78.7%) *@Group      -1378 (4496->3117)  third_party/ffmpeg/libavcodec/autorename_libavcodec_flacdec.c (count=22)


Grouped by directory:

V8 by directory:

Section Legend: t=.text, r=.rodata, R=.data.rel.ro, d=.data, b=.bss
Index | Running Total | Section@Address | Δ PSS (Δ size_without_padding) | Path
------------------------------------------------------------
~ 0)    -374785 (27.0%) *@Group      -374785 (1295381->920377)  v8/src (count=16112)
~ 1)    -579217 (41.7%) *@Group      -204431 (1010280->805786)  v8/src/compiler (count=14010)
~ 2)    -771061 (55.5%) *@Group      -191843 (629261->437416)  v8/src/runtime (count=4557)
~ 3)    -924443 (66.5%) *@Group      -153381 (373473->220013)  v8/src/heap (count=3768)
~ 4)   -1008871 (72.6%) *@Group      -84428 (263886->179445)  v8/src/wasm (count=3328)
~ 5)   -1079242 (77.6%) *@Group      -70370 (214715->144320)  v8/src/parsing (count=1591)
~ 6)   -1144513 (82.3%) *@Group      -65271 (224285->159000)  v8/src/builtins (count=2487)
~ 7)   -1193943 (85.9%) *@Group      -49430 (259365->209890)  v8/src/inspector (count=3689)
~ 8)   -1223926 (88.1%) *@Group      -29983 (131269->101261)  v8/src/interpreter (count=2897)
~ 9)   -1251695 (90.0%) *@Group      -27769 (101834->74046)  v8/src/profiler (count=1957)
~ 10)  -1278695 (92.0%) *@Group      -26999 (89951->62938)  v8/src/regexp (count=845)
~ 11)  -1301794 (93.7%) *@Group      -23099 (72493->49384)  v8/src/debug (count=702)
~ 12)  -1318990 (94.9%) *@Group      -17196 (50654->33453)  v8/src/objects (count=362)
~ 13)  -1335511 (96.1%) *@Group      -16520 (48437->31899)  v8/src/ast (count=647)
~ 14)  -1350654 (97.2%) *@Group      -15143 (51958->36785)  v8/src/ic (count=437)
~ 15)  -1364338 (98.2%) *@Group      -13683 (81416->67676)  v8/src/arm (count=1299)
~ 16)  -1375835 (99.0%) *@Group      -11496 (50771->39269)  v8/src/asmjs (count=551)
~ 17)  -1384389 (99.6%) *@Group      -8554 (37598->29022)  v8/src/snapshot (count=867)
~ 18)  -1387087 (99.8%) *@Group      -2697 (21593->18893)  v8/src/base (count=255)
~ 19)  -1388663 (99.9%) *@Group      -1576 (8097->6520)  v8/src/compiler-dispatcher (count=151)
~ 20)  -1389209 (99.9%) *@Group      -545 (1807->1261)   v8/src/libsampler (count=47)
~ 21)  -1389574 (100.0%) *@Group      -364 (2317->1950)   v8/src/tracing (count=48)
~ 22)  -1389849 (100.0%) *@Group      -275 (1462->1187)   v8/src/zone (count=28)
~ 23)  -1390034 (100.0%) *@Group      -184 (32555->32370)  v8/src/extensions (count=589)
Skia by directory:
Section Legend: t=.text, r=.rodata, R=.data.rel.ro, d=.data, b=.bss
Index | Running Total | Section@Address | Δ PSS (Δ size_without_padding) | Path
------------------------------------------------------------
~ 0)    -211225 (32.4%) *@Group      -211225 (764981->553678)  third_party/skia/src/gpu (count=12964)
~ 1)    -403610 (61.8%) *@Group      -192384 (658557->466045)  third_party/skia/src/core (count=6759)
~ 2)    -466537 (71.5%) *@Group      -62926 (223407->160404)  third_party/skia/src/pathops (count=1494)
~ 3)    -514341 (78.8%) *@Group      -47804 (210726->162901)  third_party/skia/src/sksl (count=2218)
~ 4)    -557541 (85.4%) *@Group      -43199 (154083->110844)  third_party/skia/src/effects (count=1896)
~ 5)    -589760 (90.4%) *@Group      -32219 (101373->69143)  third_party/skia/src/pdf (count=1125)
~ 6)    -612712 (93.9%) *@Group      -22951 (90583->67587)  third_party/skia/src/shaders (count=1174)
~ 7)    -625742 (95.9%) *@Group      -13030 (45817->32778)  third_party/skia/src/utils (count=465)
~ 8)    -636266 (97.5%) *@Group      -10523 (28845->18305)  third_party/skia/src/image (count=395)
~ 9)    -642085 (98.4%) *@Group      -5818 (31107->25280)  third_party/skia/src/ports (count=444)
~ 10)   -647121 (99.1%) *@Group      -5036 (65259->60221)  third_party/skia/src/jumper (count=207)
~ 11)   -649932 (99.6%) *@Group      -2811 (7398->4586)  third_party/skia/src/opts (count=27)
Cc: estevenson@chromium.org danakj@chromium.org
 Issue 781274  has been merged into this issue.
Components: Build
Cc: zhizhouy@chromium.org srhines@google.com llozano@chromium.org g...@chromium.org
Status: WontFix (was: Available)
I think this is now as done as it will ever get with the introduction of AFDO, which removes -O2 for any function that is not "hot".

Sign in to add a comment