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

Issue 2272843002: Heap Profiler: Add trace category group names as type names for allocations (Closed)

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

Description

Heap Profiler: Add trace category group names as type names for allocations The category for allocations are decided using the file that posted current task. But, this does not work always since sometimes the code is invoked by event listeners and tasks are not posted. To work around this issue, the category name from trace events is marked as the category for allocations as fallback. BUG=594803 Committed: https://crrev.com/ee345086542ba00bae935fcfb13780ac5bdb63f1 Cr-Commit-Position: refs/heads/master@{#416873}

Patch Set 1 : . #

Patch Set 2 : Rebase. #

Total comments: 4

Patch Set 3 : Use first category when multiple. #

Total comments: 2

Patch Set 4 : use substr and build fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -20 lines) Patch
M base/trace_event/heap_profiler_allocation_context_tracker.h View 1 2 3 4 chunks +14 lines, -4 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context_tracker.cc View 1 2 4 chunks +14 lines, -7 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context_tracker_unittest.cc View 1 2 2 chunks +17 lines, -1 line 0 comments Download
M base/trace_event/heap_profiler_type_name_deduplicator.cc View 1 2 3 3 chunks +15 lines, -5 lines 0 comments Download
M base/trace_event/trace_log.cc View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 34 (25 generated)
ssid
PTAL, thanks.
4 years, 3 months ago (2016-08-23 23:06:13 UTC) #6
Primiano Tucci (use gerrit)
not a huge fan of having to do a strchr on every trace_event. question: at ...
4 years, 3 months ago (2016-08-25 16:31:15 UTC) #7
ssid
On 2016/08/25 16:31:15, Primiano Tucci wrote: > not a huge fan of having to do ...
4 years, 3 months ago (2016-08-25 19:05:39 UTC) #8
ssid
So, I removed the strchr calls at trace events and added to deduplicator. ptal, thanks.
4 years, 3 months ago (2016-08-30 19:58:35 UTC) #11
Primiano Tucci (use gerrit)
Sorry for the delay. LGTM % 1 comment, plz look at that. https://codereview.chromium.org/2272843002/diff/180001/base/trace_event/heap_profiler_type_name_deduplicator.cc File base/trace_event/heap_profiler_type_name_deduplicator.cc ...
4 years, 3 months ago (2016-09-05 18:48:26 UTC) #12
ssid
fixed, thanks. https://codereview.chromium.org/2272843002/diff/180001/base/trace_event/heap_profiler_type_name_deduplicator.cc File base/trace_event/heap_profiler_type_name_deduplicator.cc (right): https://codereview.chromium.org/2272843002/diff/180001/base/trace_event/heap_profiler_type_name_deduplicator.cc#newcode36 base/trace_event/heap_profiler_type_name_deduplicator.cc:36: SplitStringPiece(result, ",", KEEP_WHITESPACE, SPLIT_WANT_NONEMPTY); On 2016/09/05 18:48:26, ...
4 years, 3 months ago (2016-09-06 22:29:17 UTC) #14
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/2272843002/240001
4 years, 3 months ago (2016-09-07 07:24:37 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:240001)
4 years, 3 months ago (2016-09-07 07:29:08 UTC) #31
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 07:32:16 UTC) #33
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/ee345086542ba00bae935fcfb13780ac5bdb63f1
Cr-Commit-Position: refs/heads/master@{#416873}

Powered by Google App Engine
This is Rietveld 408576698