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

Issue 1574493002: [Tracing] Add lookup support to AllocationRegister (Closed)

Created:
4 years, 11 months ago by Ruud van Asseldonk
Modified:
4 years, 11 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org, vmpstr+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] Add lookup support to AllocationRegister This adds a |Get| method to |AllocationRegister| which can be used to change the context and size of an allocation after it has been inserted. One possible use case of this is to post-annotate allocations with type information, when this information is not available to the allocator, but it is later in the program. Because |AllocationRegister::Allocation| is now exposed mutably, its |address| member has been made const. The hash of the address has to match the bucket in which the |Allocation| is stored, so after insertion the address must not be changed. This is enforced by making the member const, at the cost of a few const violations in the implementation of |AllocationRegister|. BUG=574756 Committed: https://crrev.com/f57f47aa398e6ccd03b1888a176fe59e8a5cdea2 Cr-Commit-Position: refs/heads/master@{#368583}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -11 lines) Patch
M base/trace_event/heap_profiler_allocation_register.h View 2 chunks +6 lines, -1 line 0 comments Download
M base/trace_event/heap_profiler_allocation_register.cc View 2 chunks +13 lines, -2 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_register_unittest.cc View 2 chunks +58 lines, -8 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Ruud van Asseldonk
Primiano, please take a look at this CL that adds support for post-annotating allocations in ...
4 years, 11 months ago (2016-01-08 16:53:36 UTC) #2
Primiano Tucci (use gerrit)
LGTM
4 years, 11 months ago (2016-01-11 11:08:54 UTC) #3
Ruud van Asseldonk
On 2016/01/11 11:08:54, Primiano Tucci wrote: > LGTM Thanks. Before I land this, do you ...
4 years, 11 months ago (2016-01-11 12:07:47 UTC) #4
Primiano Tucci (use gerrit)
On 2016/01/11 12:07:47, Ruud van Asseldonk wrote: > On 2016/01/11 11:08:54, Primiano Tucci wrote: > ...
4 years, 11 months ago (2016-01-11 13:03:35 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1574493002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1574493002/1
4 years, 11 months ago (2016-01-11 13:30:41 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 11 months ago (2016-01-11 14:49:12 UTC) #8
commit-bot: I haz the power
4 years, 11 months ago (2016-01-11 14:50:42 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f57f47aa398e6ccd03b1888a176fe59e8a5cdea2
Cr-Commit-Position: refs/heads/master@{#368583}

Powered by Google App Engine
This is Rietveld 408576698