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

Issue 509383002: Make gyp tool to emit FDO Support for android. (Closed)

Created:
6 years, 3 months ago by dehao
Modified:
6 years, 3 months ago
Reviewers:
Torne
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

Make gyp tool to emit FDO Support for android. To add FDO support for an android static/shared library, one just need to add "LOCAL_FDO_SUPPORT := true" to the library in the mk files. When Android build system sees this flag, it will build the libraries with corresponding FDO flags: * When built with BUILD_FDO_INSTRUMENT=true, build system will add -fprofile-generate flag to generate instrumented code. * When built with BUILD_FDO_OPTIMIZE=true, build system will add -fprofile-use flag to generated optimized code. This patch enables the gyp->mk converting tool to emit correct FDO support to all static libraries in libwebview. It adds an "enable_fdo" variable in the gyp file which tells if the current library needs FDO. If enable_fdo==1, the generated mk file will have FDO enabled. Additionally, as most of the webview libraries are built with "-Os -finline-limit=64", which contradict with FDO optimization. This patch also added compiler option filtering when FDO is enabled. BUG=chromium:408567

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -0 lines) Patch
M pylib/gyp/generator/android.py View 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
dehao
dehao@google.com changed reviewers: + torne@chromium.org
6 years, 3 months ago (2014-08-28 14:22:07 UTC) #1
Torne
Can you write a more explanatory CL description that explains what this change does, why, ...
6 years, 3 months ago (2014-08-28 15:20:58 UTC) #2
dehao
On 2014/08/28 15:20:58, Torne wrote: > Can you write a more explanatory CL description that ...
6 years, 3 months ago (2014-08-28 15:35:38 UTC) #3
Torne
gyp-developer people: What do you think of the approach here? What it's doing is adding ...
6 years, 3 months ago (2014-08-28 15:54:56 UTC) #4
Torne
On 2014/08/28 15:54:56, Torne wrote: > I'm not sure I like this very much, but ...
6 years, 3 months ago (2014-09-08 17:03:38 UTC) #5
Torne
6 years, 3 months ago (2014-09-12 16:45:29 UTC) #6
I'm closing this change as no longer needed. I've landed
https://codereview.chromium.org/565743004/ in gyp and will roll it into chromium
ASAP: https://codereview.chromium.org/568833002/

Once that roll lands we can make the necessary changes in chromium's gyp files
without further changes to gyp.

One note: the variable override support I implemented doesn't handle debug vs
release configurations (seemed too fiddly). I don't think this is actually a
problem; we cannot currently build chromium in debug with the android build
system, it doesn't work at all, so it's fine for LOCAL_FDO_SUPPORT to be enabled
without considering debug/release.

Powered by Google App Engine
This is Rietveld 408576698