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

Issue 2313193002: [Tracing] Fix runtime call stats tracing for GC. (Closed)

Created:
4 years, 3 months ago by lpy
Modified:
4 years, 3 months ago
Reviewers:
ulan, fmeawad, Camillo Bruni
CC:
Hannes Payer (out of office), ulan, v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Tracing] Fix runtime call stats tracing for GC. This patch adds runtime call stats tracing for GC correctly, makes --runtime-call-stats and tracing mutually exclusive with tracing taking precedence if both modes are on, and uses only one runtime call stats in counter. BUG=v8:5089 Committed: https://crrev.com/252b84b0ed28efc597fb18c10dbea7a67fcff075 Cr-Commit-Position: refs/heads/master@{#39295}

Patch Set 1 #

Total comments: 2

Patch Set 2 : update & rebase #

Total comments: 8

Patch Set 3 : Remove duplicate runtime call stats in counters #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -61 lines) Patch
M src/api.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/counters.h View 1 2 4 chunks +11 lines, -42 lines 0 comments Download
M src/counters-inl.h View 1 2 1 chunk +12 lines, -4 lines 1 comment Download
M src/heap/gc-tracer.cc View 1 2 3 chunks +8 lines, -8 lines 0 comments Download
M src/heap/heap-inl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/isolate.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M src/tracing/trace-event.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 39 (26 generated)
lpy
PTAL.
4 years, 3 months ago (2016-09-07 01:03:31 UTC) #4
Camillo Bruni
LGTM with nit https://codereview.chromium.org/2313193002/diff/1/src/counters.h File src/counters.h (right): https://codereview.chromium.org/2313193002/diff/1/src/counters.h#newcode1264 src/counters.h:1264: RuntimeCallStats::CounterId counter_id); nit: could you declare ...
4 years, 3 months ago (2016-09-07 02:00:29 UTC) #7
lpy
Thanks. +jochen@ and ulan@ for heap, could you please take a look at it? https://codereview.chromium.org/2313193002/diff/1/src/counters.h ...
4 years, 3 months ago (2016-09-07 16:48:09 UTC) #13
fmeawad
LGTM with some questions. https://codereview.chromium.org/2313193002/diff/40001/src/counters-inl.h File src/counters-inl.h (right): https://codereview.chromium.org/2313193002/diff/40001/src/counters-inl.h#newcode18 src/counters-inl.h:18: RuntimeCallStats::Enter(isolate_->counters()->tracing_runtime_call_stats(), Do we still need ...
4 years, 3 months ago (2016-09-07 17:31:28 UTC) #19
ulan
https://codereview.chromium.org/2313193002/diff/40001/src/heap/gc-tracer.cc File src/heap/gc-tracer.cc (right): https://codereview.chromium.org/2313193002/diff/40001/src/heap/gc-tracer.cc#newcode29 src/heap/gc-tracer.cc:29: tracer_->heap_->isolate()->counters()->tracing_runtime_call_stats(), Naive question: why can't we use the same ...
4 years, 3 months ago (2016-09-08 12:03:37 UTC) #20
jochen (gone - plz use gerrit)
deferring to ulan
4 years, 3 months ago (2016-09-08 12:37:08 UTC) #22
Camillo Bruni
https://codereview.chromium.org/2313193002/diff/40001/src/heap/gc-tracer.cc File src/heap/gc-tracer.cc (right): https://codereview.chromium.org/2313193002/diff/40001/src/heap/gc-tracer.cc#newcode29 src/heap/gc-tracer.cc:29: tracer_->heap_->isolate()->counters()->tracing_runtime_call_stats(), On 2016/09/08 at 12:03:37, ulan wrote: > Naive ...
4 years, 3 months ago (2016-09-08 15:47:52 UTC) #23
lpy
Thanks for the feedback, I updated the CL. PTAL. https://codereview.chromium.org/2313193002/diff/40001/src/counters-inl.h File src/counters-inl.h (right): https://codereview.chromium.org/2313193002/diff/40001/src/counters-inl.h#newcode18 src/counters-inl.h:18: ...
4 years, 3 months ago (2016-09-08 18:23:53 UTC) #28
ulan
Thank you for removing the second counter! LGTM.
4 years, 3 months ago (2016-09-08 18:26:18 UTC) #29
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/2313193002/60001
4 years, 3 months ago (2016-09-08 18:54:22 UTC) #34
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 3 months ago (2016-09-08 18:56:18 UTC) #36
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/252b84b0ed28efc597fb18c10dbea7a67fcff075 Cr-Commit-Position: refs/heads/master@{#39295}
4 years, 3 months ago (2016-09-08 18:57:30 UTC) #38
Camillo Bruni
4 years, 3 months ago (2016-09-09 15:17:59 UTC) #39
Message was sent while issue was closed.
https://codereview.chromium.org/2313193002/diff/60001/src/counters-inl.h
File src/counters-inl.h (right):

https://codereview.chromium.org/2313193002/diff/60001/src/counters-inl.h#newc...
src/counters-inl.h:27: RuntimeCallTimerScope(heap_object->GetIsolate(),
counter_id);
You'll ended up checking the flags twice this way ,no?

Powered by Google App Engine
This is Rietveld 408576698