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

Issue 1680943002: add --gdb-index to linker (Closed)

Created:
4 years, 10 months ago by atotic1
Modified:
4 years, 9 months ago
CC:
chromium-reviews, Lei Zhang, mithro
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

adds gdb-index option for linker This cl adds a new configuration flag to gold linker: "gdb_index" The flag is on by default if is_desktop_linux && is_debug && is_component_build The previous attempt to add this flag to all the builds was reverted because of disk-space requirements. This checkin makes it a default only for linux debug builds. Why do this? gold linker has a flag to automatically generate gdb-index section inside shared libraries when linking. Webkit single-file compile/linking time: 16.31s without gdb-index 16.11s with gdb-index gdb startup time ~51s without gdb-index ~19s with gdb-index BUG= Committed: https://crrev.com/f68b7c07a30baac088b8eda055ba52835c04692c Cr-Commit-Position: refs/heads/master@{#378600} Committed: https://crrev.com/fcb018ec85c2e56e44180bb3e2a822082826000d Cr-Commit-Position: refs/heads/master@{#383324}

Patch Set 1 #

Patch Set 2 : Added --gdb-index to common.gypi #

Patch Set 3 : gdb_index as a flag #

Total comments: 2

Patch Set 4 : make flag default to false #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M build/config/compiler/BUILD.gn View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (11 generated)
Dirk Pranke
4 years, 10 months ago (2016-02-09 23:49:44 UTC) #2
Dirk Pranke
4 years, 10 months ago (2016-02-09 23:50:40 UTC) #3
Dirk Pranke
Whether or not to use -Wl,gdb-index has been a subject of discussion a few times ...
4 years, 10 months ago (2016-02-10 00:02:30 UTC) #5
sunnyps
On 2016/02/10 00:02:30, Dirk Pranke wrote: > Whether or not to use -Wl,gdb-index has been ...
4 years, 10 months ago (2016-02-10 00:15:54 UTC) #6
atotic1
On 2016/02/10 00:15:54, sunnyps wrote: > What does single file link time mean here? Last ...
4 years, 10 months ago (2016-02-10 21:46:45 UTC) #7
Nico
These numbers look good to me. IIRC one problem of this was that it only ...
4 years, 10 months ago (2016-02-10 21:53:26 UTC) #8
Nico
(but gyp and gn should match here)
4 years, 10 months ago (2016-02-10 21:53:44 UTC) #9
Dirk Pranke
On 2016/02/10 21:53:26, Nico wrote: > These numbers look good to me. IIRC one problem ...
4 years, 10 months ago (2016-02-10 22:26:28 UTC) #10
Dirk Pranke
On 2016/02/10 21:53:44, Nico wrote: > (but gyp and gn should match here) I'm not ...
4 years, 10 months ago (2016-02-10 22:27:10 UTC) #11
Nico
android, chromeos both are still on gyp by default, no?
4 years, 10 months ago (2016-02-10 22:49:44 UTC) #12
Dirk Pranke
On 2016/02/10 22:49:44, Nico wrote: > android, chromeos both are still on gyp by default, ...
4 years, 10 months ago (2016-02-10 23:11:32 UTC) #13
Dirk Pranke
@atotic - I suggest we add the same flag to the equivalent place in //build/common.gypi: ...
4 years, 10 months ago (2016-02-19 02:06:44 UTC) #14
atotic1
@dpranke I've added the flag to common.gypi. When should we land? On 2016/02/19 02:06:44, Dirk ...
4 years, 10 months ago (2016-02-22 22:58:09 UTC) #15
Dirk Pranke
lgtm. On 2016/02/22 22:58:09, atotic1 wrote: > @dpranke > > I've added the flag to ...
4 years, 10 months ago (2016-02-22 23:17:12 UTC) #16
atotic1
On 2016/02/22 23:17:12, Dirk Pranke wrote: > lgtm. > > > On 2016/02/22 22:58:09, atotic1 ...
4 years, 10 months ago (2016-02-22 23:18:22 UTC) #17
Dirk Pranke
On 2016/02/22 23:18:22, atotic1 wrote: > Will try on Wednesday, and announce it here. I ...
4 years, 10 months ago (2016-02-22 23:20:05 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1680943002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1680943002/20001
4 years, 9 months ago (2016-03-01 21:02:51 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-01 23:34:19 UTC) #21
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/f68b7c07a30baac088b8eda055ba52835c04692c Cr-Commit-Position: refs/heads/master@{#378600}
4 years, 9 months ago (2016-03-01 23:35:39 UTC) #23
stevenjb
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1762873002/ by stevenjb@chromium.org. ...
4 years, 9 months ago (2016-03-03 22:28:28 UTC) #24
mstensho (USE GERRIT)
I've noticed really slow startup times for gdb when run inside emacs recently, and a ...
4 years, 9 months ago (2016-03-04 15:59:38 UTC) #26
Dirk Pranke
On 2016/03/04 15:59:38, mstensho wrote: > I've noticed really slow startup times for gdb when ...
4 years, 9 months ago (2016-03-04 16:54:07 UTC) #27
atotic1
We had to revert because of disk space requirements. I've made gdb_index a flag option ...
4 years, 9 months ago (2016-03-23 18:04:18 UTC) #30
Dirk Pranke
https://codereview.chromium.org/1680943002/diff/60001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/1680943002/diff/60001/build/config/compiler/BUILD.gn#newcode81 build/config/compiler/BUILD.gn:81: gdb_index = is_desktop_linux && is_debug && is_component_build Let's just ...
4 years, 9 months ago (2016-03-24 20:20:41 UTC) #31
atotic1
Made flag default to false. https://codereview.chromium.org/1680943002/diff/60001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/1680943002/diff/60001/build/config/compiler/BUILD.gn#newcode81 build/config/compiler/BUILD.gn:81: gdb_index = is_desktop_linux && ...
4 years, 9 months ago (2016-03-25 17:11:24 UTC) #32
Dirk Pranke
lgtm. In the future, you might consider creating a new CL, uploading the initial version ...
4 years, 9 months ago (2016-03-25 17:48:09 UTC) #33
Dirk Pranke
but if you re-use the same CL, you'll need to re-open it (which I just ...
4 years, 9 months ago (2016-03-25 17:48:45 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1680943002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1680943002/80001
4 years, 9 months ago (2016-03-25 18:10:06 UTC) #37
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 9 months ago (2016-03-25 18:52:20 UTC) #39
commit-bot: I haz the power
4 years, 9 months ago (2016-03-25 18:53:21 UTC) #41
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/fcb018ec85c2e56e44180bb3e2a822082826000d
Cr-Commit-Position: refs/heads/master@{#383324}

Powered by Google App Engine
This is Rietveld 408576698