|
|
DescriptionMove GetProgramCounter in FROM_HERE to a common function
tracked_objects::GetProgramCounter() is called for each FROM_HERE macro,
and each of the function call costs 8 bytes.
This CL adds a static constructor, Location::CreateForCurrentProgramCounter,
that calculates the program counter by itself for smaller number of GPC
call.
This reduces the stripped binary size of chrome on Linux by 56kB.
BUG=645364
Committed: https://crrev.com/004d27129e4f66004775759736d9ab5152a3ecbf
Cr-Commit-Position: refs/heads/master@{#425289}
Patch Set 1 #Patch Set 2 : dedup #Patch Set 3 : +test #Patch Set 4 : exclude unsupported platform from test #Patch Set 5 : +inline #Patch Set 6 : -BASE_EXPORT #
Messages
Total messages: 32 (23 generated)
The CQ bit was checked by tzik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by tzik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by tzik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by tzik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
tzik@chromium.org changed reviewers: + dcheng@chromium.org
PTAL
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-ge...)
I wonder: would it be possible to integrate this directly into the Location constructor?
The CQ bit was checked by tzik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/...)
The CQ bit was checked by tzik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2016/10/07 21:16:26, dcheng wrote: > I wonder: would it be possible to integrate this directly into the Location > constructor? That's possible, but I feel it's a bit error prone since the constructor can be called from other constructors and subclasses.
Description was changed from ========== Move GetProgramCounter in FROM_HERE to a common function tracked_objects::GetProgramCounter() is called for each FROM_HERE macro, and each of the function call costs 8 bytes. This CL adds a static constructor, Location::CreateForCurrentProgramCounter, that calculates the program counter by itself for smaller number of GPC call. This reduces the stripped binary size of chrome on Linux by 56kB. BUG= ========== to ========== Move GetProgramCounter in FROM_HERE to a common function tracked_objects::GetProgramCounter() is called for each FROM_HERE macro, and each of the function call costs 8 bytes. This CL adds a static constructor, Location::CreateForCurrentProgramCounter, that calculates the program counter by itself for smaller number of GPC call. This reduces the stripped binary size of chrome on Linux by 56kB. BUG=645364 ==========
On 2016/10/08 12:32:05, tzik wrote: > On 2016/10/07 21:16:26, dcheng wrote: > > I wonder: would it be possible to integrate this directly into the Location > > constructor? > > That's possible, but I feel it's a bit error prone since the constructor can be > called from other constructors and subclasses. ping. Any opinion on this?
lgtm
The CQ bit was checked by tzik@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Move GetProgramCounter in FROM_HERE to a common function tracked_objects::GetProgramCounter() is called for each FROM_HERE macro, and each of the function call costs 8 bytes. This CL adds a static constructor, Location::CreateForCurrentProgramCounter, that calculates the program counter by itself for smaller number of GPC call. This reduces the stripped binary size of chrome on Linux by 56kB. BUG=645364 ========== to ========== Move GetProgramCounter in FROM_HERE to a common function tracked_objects::GetProgramCounter() is called for each FROM_HERE macro, and each of the function call costs 8 bytes. This CL adds a static constructor, Location::CreateForCurrentProgramCounter, that calculates the program counter by itself for smaller number of GPC call. This reduces the stripped binary size of chrome on Linux by 56kB. BUG=645364 ==========
Message was sent while issue was closed.
Committed patchset #6 (id:100001)
Message was sent while issue was closed.
Description was changed from ========== Move GetProgramCounter in FROM_HERE to a common function tracked_objects::GetProgramCounter() is called for each FROM_HERE macro, and each of the function call costs 8 bytes. This CL adds a static constructor, Location::CreateForCurrentProgramCounter, that calculates the program counter by itself for smaller number of GPC call. This reduces the stripped binary size of chrome on Linux by 56kB. BUG=645364 ========== to ========== Move GetProgramCounter in FROM_HERE to a common function tracked_objects::GetProgramCounter() is called for each FROM_HERE macro, and each of the function call costs 8 bytes. This CL adds a static constructor, Location::CreateForCurrentProgramCounter, that calculates the program counter by itself for smaller number of GPC call. This reduces the stripped binary size of chrome on Linux by 56kB. BUG=645364 Committed: https://crrev.com/004d27129e4f66004775759736d9ab5152a3ecbf Cr-Commit-Position: refs/heads/master@{#425289} ==========
Message was sent while issue was closed.
Patchset 6 (id:??) landed as https://crrev.com/004d27129e4f66004775759736d9ab5152a3ecbf Cr-Commit-Position: refs/heads/master@{#425289}
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/2415673005/ by henrika@chromium.org. The reason for reverting is: Breaks LocationTest.TestProgramCounter on Windows. https://uberchromegw.corp.google.com/i/chromium.win/builders/Win7%20Tests%20%.... |