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

Issue 15825019: Do not force GC on each objects tracking sample. (Closed)

Created:
7 years, 6 months ago by alph
Modified:
7 years, 1 month ago
Reviewers:
ulan, yurys, loislo
CC:
v8-dev
Visibility:
Public.

Description

Do not force GC on each objects tracking sample. GC takes significant part of a sample timeframe. There's no real need to make it on every sample. Default GC invocations made by v8 should be enough for objects tracking purposes.

Patch Set 1 #

Patch Set 2 : Made it calling GC once per second. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -8 lines) Patch
M src/heap-snapshot-generator.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/heap-snapshot-generator.cc View 1 4 chunks +12 lines, -8 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
alph
Folks, could you please take a look.
7 years, 6 months ago (2013-06-05 13:39:18 UTC) #1
yurys
lgtm
7 years, 6 months ago (2013-06-05 13:45:36 UTC) #2
ulan
lgtm
7 years, 6 months ago (2013-06-05 14:47:11 UTC) #3
alph
As discussed offline, made it call GC once per second. Please take a look.
7 years, 6 months ago (2013-06-05 17:23:10 UTC) #4
loislo
lgtm
7 years, 6 months ago (2013-06-05 17:29:59 UTC) #5
not_yurys
On 2013/06/05 17:23:10, alph wrote: > As discussed offline, made it call GC once per ...
7 years, 6 months ago (2013-06-05 17:31:35 UTC) #6
loislo
On 2013/06/05 17:31:35, yurys wrote: > On 2013/06/05 17:23:10, alph wrote: > > As discussed ...
7 years, 6 months ago (2013-06-06 13:22:52 UTC) #7
yurys
7 years, 6 months ago (2013-06-06 13:35:19 UTC) #8
On 2013/06/06 13:22:52, loislo wrote:
> On 2013/06/05 17:31:35, yurys wrote:
> > On 2013/06/05 17:23:10, alph wrote:
> > > As discussed offline, made it call GC once per second. Please take a look.
> > 
> > If we want to do this to be done in v8 there should be a way to configure
the
> > interval through its public API but I think we could trigger full gc from
the
> > devtools front-end instead of hardwiring the interval in v8, wdyt?
> 
> I'm not sure that it is good idea. We are pooling v8 from the backend code 20
> times per second
> and send events about the heap state. It'd be strange to force gc from
frontend
> in this scenario.

Then it seems natural to trigger GC from the same place where we poll v8,
doesn't it? My point is that if we implement the functionality in v8 then it
should be configurable through the public API but it seems that it would be more
logical to implement this in Blink.

Powered by Google App Engine
This is Rietveld 408576698