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

Issue 1706163002: Refactoring: Remove an argument 'enabled' from onHeapProfilingEnabled (Closed)

Created:
4 years, 10 months ago by hajimehoshi
Modified:
4 years, 10 months ago
CC:
chromium-reviews, oilpan-reviews, Mads Ager (chromium), vmpstr+watch_chromium.org, wfh+watch_chromium.org, jam, blink-reviews, dglazkov+blink, darin-cc_chromium.org, tracing+reviews_chromium.org, kinuko+watch, kouhei+heap_chromium.org, blink-reviews-api_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactoring: Remove an argument 'enabled' from onHeapProfilingEnabled Assuming that once heap profiling is enabled we won't stop this during the process, this CL removes the 'enabled' boolean argument from onHeapProfilingEnabled of WebMemoryDumpProviders. BUG=585063 TEST=n/a

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -39 lines) Patch
M base/trace_event/memory_dump_manager.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M base/trace_event/memory_dump_provider.h View 1 chunk +3 lines, -3 lines 0 comments Download
M content/child/web_memory_dump_provider_adapter.h View 1 chunk +1 line, -1 line 0 comments Download
M content/child/web_memory_dump_provider_adapter.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.cpp View 1 chunk +9 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.cpp View 1 chunk +9 lines, -13 lines 0 comments Download
M third_party/WebKit/public/platform/WebMemoryDumpProvider.h View 1 chunk +2 lines, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 11 (2 generated)
hajimehoshi
PTAL +primiano for base/trace_event +kinuko for content/child +haraken for platform +tkent for public/platform
4 years, 10 months ago (2016-02-18 10:31:51 UTC) #3
haraken
LGTM
4 years, 10 months ago (2016-02-18 11:19:31 UTC) #4
Primiano Tucci (use gerrit)
On 2016/02/18 11:19:31, haraken wrote: > LGTM Hmm as per discussion in crrev.com/1676453002 shouldn't we ...
4 years, 10 months ago (2016-02-18 11:42:47 UTC) #5
haraken
On 2016/02/18 11:42:47, Primiano Tucci wrote: > On 2016/02/18 11:19:31, haraken wrote: > > LGTM ...
4 years, 10 months ago (2016-02-18 11:50:33 UTC) #6
haraken
On 2016/02/18 11:50:33, haraken wrote: > On 2016/02/18 11:42:47, Primiano Tucci wrote: > > On ...
4 years, 10 months ago (2016-02-18 11:52:44 UTC) #7
Primiano Tucci (use gerrit)
> Then would it make more sense to prepare separate APIs? > > - startHeapProfiling() ...
4 years, 10 months ago (2016-02-18 12:05:01 UTC) #8
haraken
On 2016/02/18 12:05:01, Primiano Tucci wrote: > > Then would it make more sense to ...
4 years, 10 months ago (2016-02-18 12:10:13 UTC) #9
Primiano Tucci (use gerrit)
On 2016/02/18 12:10:13, haraken wrote: > Then I'd prefer landing this CL. We can revise ...
4 years, 10 months ago (2016-02-18 12:34:36 UTC) #10
haraken
4 years, 10 months ago (2016-02-18 12:46:51 UTC) #11
On 2016/02/18 12:34:36, Primiano Tucci wrote:
> On 2016/02/18 12:10:13, haraken wrote:
> > Then I'd prefer landing this CL. We can revise the API when we really need
> that
> > ability and a telemetry API to stop the heap profiling.
> 
> Hmm but we already have that, It's just StopTracing().
> Essentially the only thing missing here to make chrome behave nicely is
> memory_dump_manager calling OnHeapProfilerEnabled(false) (or whatever) when
the
> trace is stopped.
> It's a small change, but I don't see a good reason to not try to clean-up our
> stuff after we are done.
> Unless this would cause some technical complication / maintenance problem I'm
> not thinking about?

Makes sense. Let's close this CL.

Powered by Google App Engine
This is Rietveld 408576698