Issue metadata
Sign in to add a comment
|
component_updater doubles Cronet binary. 133.7% regression in sizes at 494091:494094 |
||||||||||||||||||||||
Issue descriptionSee the link to graphs below.
,
Aug 14 2017
waffles@: bisect gives me your CL: https://chromium.googlesource.com/chromium/src/+/404c74d7436c836356f0803afad8c9c63fa3c0a1 cronet depdends on components/metrics. Making components/metrics depend on components_updater doubles Cronet binary size. Can you take a look?
,
Aug 14 2017
,
Aug 14 2017
Can we put component_metrics_provider.cc and component_metrics_provider.h into a separate target?
,
Aug 14 2017
Yes, that should work, I'll start on that now.
,
Aug 14 2017
Thank you!
,
Aug 14 2017
The change is reverted at 494132. I will reland with the new provider in a separate target.
,
Aug 15 2017
The sizes graphs look the same as before now, so I am marking this as fixed. Some notes in case you would like to build Cronet locally. Full instructions are at https://chromium.googlesource.com/chromium/src/+/master/components/cronet/android/build_instructions.md The size increase is 2x in debug mode and about ~10% in release mode. To build Cronet in debug mode: $ ./components/cronet/tools/cr_cronet.py gn $ ninja -C out/Debug cronet_package Thanks for the quick fix.
,
Aug 16 2017
The size graphs reverted because we reverted the CL. I'm still trying to confirm the fix. I'm having some trouble verifying because of a failure in check_no_neon.py: Do I need to have something beyond a normal checkout to build?
,
Aug 16 2017
It should just work with a regular Chromium checkout. Do you have the following in your gn args? use_errorprone_java_compiler = true arm_use_neon = false target_os = "android" enable_websockets = false disable_file_support = true disable_ftp_support = true disable_brotli_filter = false use_platform_icu_alternatives = true enable_reporting = false is_component_build = false ignore_elf32_limitations = true use_partition_alloc = false include_transport_security_state_preload_list = false
,
Aug 16 2017
Yep, those are my gn args exactly. This is what I'm doing: src$ ninja -C ./out/Debug -t clean ninja: error: remove(cronet/test/assets): Directory not empty Cleaning... 2586 files. src$ rm -r ./out/Debug/cronet/test/assets src$ ./components/cronet/tools/cr_cronet.py gn Namespace(asan=False, command='gn', gn=False, iphoneos=False, out_dir=None, release=False) [] gn gen out/Debug --args='use_errorprone_java_compiler=true arm_use_neon=false target_os="android" enable_websockets=false disable_file_support=true disable_ftp_support=true disable_brotli_filter=false use_platform_icu_alternatives=true enable_reporting=false is_component_build=false ignore_elf32_limitations=true use_partition_alloc=false include_transport_security_state_preload_list=false' Done. Made 17626 targets from 1257 files in 7316ms src$ ninja -C out/Debug cronet_package ninja: Entering directory `out/Debug' [1859/6318] ACTION //components/cronet...d/toolchain/android:android_clang_arm) FAILED: gen/components/cronet/android/enforce_no_neon.stamp python ../../components/cronet/tools/check_no_neon.py ../../third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-objdump obj/base/base/\*.o --stamp gen/components/cronet/android/enforce_no_neon.stamp [1892/6318] CXX obj/v8/v8_base/instruction-selector.o ninja: build stopped: subcommand failed.
,
Aug 16 2017
Have you ever build an Android build on your workstation? I wonder whether that's due to a missing dependency. https://chromium.googlesource.com/chromium/src/+/master/docs/android_build_instructions.md (in the directory above src): echo "target_os = [ 'android' ]" >> ../.gclient gclient sync build/install-build-deps-android.sh gclient runhooks |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by 42576172...@developer.gserviceaccount.com
, Aug 14 2017