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

Issue 2637783002: [tracing] Don't register tracing-related allocations. (Closed)

Created:
3 years, 11 months ago by DmitrySkiba
Modified:
3 years, 11 months ago
CC:
chromium-reviews, oilpan-reviews, Mads Ager (chromium), vmpstr+watch_chromium.org, wfh+watch_chromium.org, blink-reviews, tracing+reviews_chromium.org, kinuko+watch, kouhei+heap_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[tracing] Don't register tracing-related allocations. Tracing-related scopes are instrumented with HEAP_PROFILER_SCOPED_IGNORE macro, which caused all scoped allocations to have "tracing_overhead" type, but didn't prevent those allocations to be registered. However, it was discovered (see the bug) that the last stages of tracing create substantial pressure on allocation register, adding millions of short-lived allocations. Instead of bumping allocation register capacity once again, this CL makes HEAP_PROFILER_SCOPED_IGNORE to completely ignore allocations in its scope, i.e. not register them. BUG=664350 Review-Url: https://codereview.chromium.org/2637783002 Cr-Commit-Position: refs/heads/master@{#444500} Committed: https://chromium.googlesource.com/chromium/src/+/9ab14b2d78c1d15909fa2d6cc12760a757edb405

Patch Set 1 #

Total comments: 1

Patch Set 2 : Address comments #

Patch Set 3 : Fix unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -61 lines) Patch
M base/trace_event/heap_profiler_allocation_context_tracker.h View 2 chunks +5 lines, -4 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context_tracker.cc View 1 2 3 chunks +11 lines, -16 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context_tracker_unittest.cc View 1 2 6 chunks +30 lines, -34 lines 0 comments Download
M base/trace_event/malloc_dump_provider.cc View 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.cpp View 1 chunk +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.cpp View 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
DmitrySkiba
3 years, 11 months ago (2017-01-16 04:48:59 UTC) #2
Primiano Tucci (use gerrit)
On 2017/01/16 04:48:59, DmitrySkiba wrote: Hmm I see what you are doing here, however the ...
3 years, 11 months ago (2017-01-16 10:18:39 UTC) #3
DmitrySkiba
On 2017/01/16 10:18:39, Primiano Tucci wrote: > On 2017/01/16 04:48:59, DmitrySkiba wrote: > > Hmm ...
3 years, 11 months ago (2017-01-17 17:46:10 UTC) #4
Primiano Tucci (use gerrit)
alright, LGTM as per offline/bug discussion. thanks https://codereview.chromium.org/2637783002/diff/1/base/trace_event/heap_profiler_allocation_context_tracker.cc File base/trace_event/heap_profiler_allocation_context_tracker.cc (right): https://codereview.chromium.org/2637783002/diff/1/base/trace_event/heap_profiler_allocation_context_tracker.cc#newcode160 base/trace_event/heap_profiler_allocation_context_tracker.cc:160: if (ignore_scope_depth_) ...
3 years, 11 months ago (2017-01-17 17:54:09 UTC) #5
Primiano Tucci (use gerrit)
On 2017/01/17 17:46:10, DmitrySkiba wrote: > Yes, we could bump the capacity, but that would ...
3 years, 11 months ago (2017-01-17 17:57:49 UTC) #6
DmitrySkiba
haraken@: please review changes in WebKit (GetContextSnapshot() API changed).
3 years, 11 months ago (2017-01-17 21:38:49 UTC) #8
haraken
LGTM
3 years, 11 months ago (2017-01-17 23:47:49 UTC) #9
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/2637783002/20001
3 years, 11 months ago (2017-01-17 23:56:41 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/138623)
3 years, 11 months ago (2017-01-18 00:05:27 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/2637783002/40001
3 years, 11 months ago (2017-01-18 19:28:07 UTC) #17
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 21:54:29 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/9ab14b2d78c1d15909fa2d6cc127...

Powered by Google App Engine
This is Rietveld 408576698