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

Issue 2089253002: [tracing] Optimize AllocationRegister and increase max backtrace depth. (Closed)

Created:
4 years, 6 months ago by Dmitry Skiba
Modified:
4 years, 5 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[tracing] Optimize AllocationRegister and increase max backtrace depth. This CL both increases maximum backtrace depth (24 -> 48) and reduces AllocationRegister memory usage (265 -> 42 MiB on 32-bit platforms) at the expense of performance (~30% hit). See the bug for more details. BUG=617772 Committed: https://crrev.com/557f4aad30e98c3c5434ea37ca061fd3b658d570 Cr-Commit-Position: refs/heads/master@{#403291}

Patch Set 1 #

Patch Set 2 : Remove old backtrace when rewriting allocation info #

Patch Set 3 : Cleanup tests #

Total comments: 71

Patch Set 4 : Address comments #

Total comments: 34

Patch Set 5 : Fix (stupid) errors #

Patch Set 6 : Rename things #

Patch Set 7 : Fix Windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+475 lines, -325 lines) Patch
M base/trace_event/heap_profiler_allocation_context.h View 2 chunks +5 lines, -1 line 0 comments Download
M base/trace_event/heap_profiler_allocation_context.cc View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_register.h View 1 2 3 4 5 2 chunks +286 lines, -106 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_register.cc View 1 2 3 4 5 3 chunks +128 lines, -147 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_register_posix.cc View 1 2 3 4 5 6 3 chunks +4 lines, -5 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_register_unittest.cc View 1 2 3 4 5 8 chunks +37 lines, -61 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_register_win.cc View 1 2 3 4 5 6 3 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
Dmitry Skiba
Please review. Tests are TBD, right now we have AllocationRegister tests, but I'll extract FixedHashMap ...
4 years, 6 months ago (2016-06-22 20:50:22 UTC) #2
Dmitry Skiba
On 2016/06/22 20:50:22, Dmitry Skiba wrote: > Please review. Tests are TBD, right now we ...
4 years, 6 months ago (2016-06-23 09:43:39 UTC) #3
Primiano Tucci (use gerrit)
Ok did a first big pass on this. Will do a 2nd one tomorrow (didn't ...
4 years, 6 months ago (2016-06-23 20:46:26 UTC) #4
Dmitry Skiba
https://codereview.chromium.org/2089253002/diff/40001/base/trace_event/heap_profiler_allocation_context.cc File base/trace_event/heap_profiler_allocation_context.cc (right): https://codereview.chromium.org/2089253002/diff/40001/base/trace_event/heap_profiler_allocation_context.cc#newcode67 base/trace_event/heap_profiler_allocation_context.cc:67: const uintptr_t kKnuthConstant = 2654435761; On 2016/06/23 20:46:24, Primiano ...
4 years, 5 months ago (2016-06-28 10:55:00 UTC) #5
Primiano Tucci (use gerrit)
OK LGTM with some final comments, plz look at them. Maybe have ssid or Maria ...
4 years, 5 months ago (2016-06-28 14:23:08 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2089253002/60001
4 years, 5 months ago (2016-06-28 14:23:52 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-simulator-gn on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-gn/builds/28072)
4 years, 5 months ago (2016-06-28 14:55:23 UTC) #10
Primiano Tucci (use gerrit)
On 2016/06/28 14:55:23, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
4 years, 5 months ago (2016-06-28 15:47:28 UTC) #11
Dmitry Skiba
On 2016/06/28 15:47:28, Primiano Tucci wrote: > On 2016/06/28 14:55:23, commit-bot: I haz the power ...
4 years, 5 months ago (2016-06-28 19:43:02 UTC) #12
Dmitry Skiba
Fix for windows is on the way (I didn't know we have heap_profiler_allocation_register_win.cc :) https://codereview.chromium.org/2089253002/diff/40001/base/trace_event/heap_profiler_allocation_register.h ...
4 years, 5 months ago (2016-06-29 16:12:27 UTC) #13
Primiano Tucci (use gerrit)
k still LGTM. Good luck with windows, should hopefully be a minor thing. https://codereview.chromium.org/2089253002/diff/40001/base/trace_event/heap_profiler_allocation_register.h File ...
4 years, 5 months ago (2016-06-29 16:55:03 UTC) #14
Dmitry Skiba
Guys, please review just in case we missed something with Primiano.
4 years, 5 months ago (2016-06-29 18:57:57 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2089253002/120001
4 years, 5 months ago (2016-06-30 19:34:32 UTC) #19
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-06-30 21:18:29 UTC) #20
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 21:18:30 UTC) #21
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 21:21:30 UTC) #23
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/557f4aad30e98c3c5434ea37ca061fd3b658d570
Cr-Commit-Position: refs/heads/master@{#403291}

Powered by Google App Engine
This is Rietveld 408576698