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

Issue 559383002: Oilpan: Add trace events for the GC marking and sweeping phases. (Closed)

Created:
6 years, 3 months ago by zerny-chromium
Modified:
6 years, 3 months ago
CC:
blink-reviews, arv+blink, Mads Ager (chromium), abarth-chromium, blink-reviews-bindings_chromium.org, kouhei+heap_chromium.org, oilpan-reviews
Project:
blink
Visibility:
Public.

Description

Oilpan: Add trace events for the GC marking and sweeping phases. R=ager@chromium.org,haraken@chromium.org BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181843

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -18 lines) Patch
M Source/bindings/core/v8/V8GCController.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/heap/Heap.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/heap/Heap.cpp View 10 chunks +14 lines, -3 lines 0 comments Download
M Source/platform/heap/ThreadState.h View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/platform/heap/ThreadState.cpp View 4 chunks +24 lines, -13 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
zerny-chromium
6 years, 3 months ago (2014-09-11 08:59:31 UTC) #1
Mads Ager (chromium)
LGTM
6 years, 3 months ago (2014-09-11 09:06:29 UTC) #2
zerny-chromium
FYI, using the patch below allows running telemetry runs that will dump trace files (also ...
6 years, 3 months ago (2014-09-11 09:07:04 UTC) #3
wibling-chromium
lgtm
6 years, 3 months ago (2014-09-11 09:07:52 UTC) #5
haraken
LGTM Do you really need to distinguish NormalGC from ForcedGC in your profiling? - Regarding ...
6 years, 3 months ago (2014-09-11 09:16:35 UTC) #6
zerny-chromium
Thanks for the review. > Do you really need to distinguish NormalGC from ForcedGC in ...
6 years, 3 months ago (2014-09-11 17:52:47 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/559383002/1
6 years, 3 months ago (2014-09-11 17:54:40 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1) as 181843
6 years, 3 months ago (2014-09-11 19:48:06 UTC) #10
haraken
On 2014/09/11 17:52:47, zerny-chromium wrote: > Thanks for the review. > > > Do you ...
6 years, 3 months ago (2014-09-12 00:53:09 UTC) #11
zerny-chromium
6 years, 3 months ago (2014-09-12 05:12:02 UTC) #12
Message was sent while issue was closed.
On 2014/09/12 00:53:09, haraken wrote:
> On 2014/09/11 17:52:47, zerny-chromium wrote:
> > Thanks for the review.
> > 
> > > Do you really need to distinguish NormalGC from ForcedGC in your
profiling?
> > 
> > No, it is somewhat clear from the GC pattern, but this data can be used to
> > output other summarized info which would need to know which GCs are forced
> (and
> > therefore not of interest) and which are not. For tooling the explicit tag
is
> > much easier to work with.
> > 
> > > - Regarding Heap::collectGarbage triggered in V8's GC, it would be clear
> that
> > > it's a forced Heap::collectGarbage because the trace result appears in the
> > trace
> > > result of V8's GC.
> > 
> > Assuming we have collected V8 traces. I'd rather not.
> > 
> > > - It wouldn't be that helpful to add ForcedGC to Heap::collectAllGarbage,
> > since
> > > Heap::collectAllGarbage is only used in testing. If you want to use the
> > ForcedGC
> > > flag in testing as well, you'll need to add ForcedGC to all other
> > > Heap::collectGarbages used in unittests.
> > 
> > It is used in performance tests where we want to collect info about our GCs.
> For
> > other tests we don't care so I did not bother adding it. If we end up
caring,
> we
> > can make the "default" ForcedGC and add NormalGC to the once place we
actually
> > do a normal one.
> 
> I guess what you want to do would be to mark "a Heap::collectGarbage() that is
> called while ThreadState::m_forcePreciseGCForTesting is true" as a ForcedGC.
If
> that is the case, I guess we don't need a new enum to distinguish a ForcedGC
> from a NormalGC.

m_forcePreciseGCForTesting is not true when collectGarbage is called from the
collectAllGarbage routine that is forced by that flag.

> My point is just that I want to keep a commonly-used API (i.e.,
> Heap::collectGarbage) as clean as possible.

I agree.

Powered by Google App Engine
This is Rietveld 408576698