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

Issue 2436273002: [Tracing] Implement TracingCategoryObserver. (Closed)

Created:
4 years, 2 months ago by lpy
Modified:
4 years, 1 month ago
CC:
Michael Hablich, v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Tracing] Implement TracingCategoryObserver. This patch implements TracingCategoryObserver to set global flag when a V8 specific category is enabled. Previously, we set a global flag each time when we encounter a top level trace event, and use it as a global check. With this patch, we can set a group of flags when tracing is enabled; besides, we make V8 tracing feature use V8 flags instead of defining its own flag in a messy way. With this patch, whatever V8 flag we want to imply in tracing, we define another integer flag, and the original V8 flag will set it to 0x01 when passing by commandline, tracing will set it to 0x10 when we start tracing and reset the bit when we stop tracing. Committed: https://crrev.com/6df8096a00382d10cab1bb2052238e324d66fe54 Cr-Commit-Position: refs/heads/master@{#40659}

Patch Set 1 #

Patch Set 2 : fix compilation error #

Total comments: 1

Patch Set 3 : move to new header file v8-tracing #

Patch Set 4 : I hope it can fix windows build #

Patch Set 5 : apparently last patch breaks more build. #

Patch Set 6 : update #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -2 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
A include/v8-tracing.h View 1 2 3 4 5 1 chunk +29 lines, -0 lines 0 comments Download
M src/d8.cc View 1 2 3 4 5 6 4 chunks +10 lines, -2 lines 0 comments Download
M src/flag-definitions.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
A src/tracing/tracing-category-observer.h View 1 2 3 4 5 1 chunk +27 lines, -0 lines 0 comments Download
A src/tracing/tracing-category-observer.cc View 1 2 3 4 5 1 chunk +40 lines, -0 lines 0 comments Download
M src/v8.gyp View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 67 (57 generated)
lpy
PTAL.
4 years, 2 months ago (2016-10-21 05:53:47 UTC) #4
Camillo Bruni
lgtm https://codereview.chromium.org/2436273002/diff/20001/src/flag-definitions.h File src/flag-definitions.h (right): https://codereview.chromium.org/2436273002/diff/20001/src/flag-definitions.h#newcode886 src/flag-definitions.h:886: DEFINE_VALUE_IMPLICATION(runtime_call_stats, runtime_stats, 1) "runtime call stats" is by ...
4 years, 2 months ago (2016-10-21 08:20:56 UTC) #11
lpy
On 2016/10/21 08:20:56, Camillo Bruni wrote: > lgtm > > https://codereview.chromium.org/2436273002/diff/20001/src/flag-definitions.h > File src/flag-definitions.h (right): ...
4 years, 2 months ago (2016-10-21 17:33:08 UTC) #12
lpy
On 2016/10/21 17:33:08, lpy wrote: > On 2016/10/21 08:20:56, Camillo Bruni wrote: > > lgtm ...
4 years, 2 months ago (2016-10-21 17:38:29 UTC) #14
Camillo Bruni
On 2016/10/21 at 17:38:29, lpy wrote: > On 2016/10/21 17:33:08, lpy wrote: > > On ...
4 years, 1 month ago (2016-10-25 16:40:15 UTC) #52
lpy
+jochen and +Yang
4 years, 1 month ago (2016-10-27 17:04:09 UTC) #54
jochen (gone - plz use gerrit)
lgtm
4 years, 1 month ago (2016-10-28 13:39:12 UTC) #55
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/2436273002/180001
4 years, 1 month ago (2016-10-28 20:41:02 UTC) #63
commit-bot: I haz the power
Committed patchset #7 (id:180001)
4 years, 1 month ago (2016-10-28 20:43:24 UTC) #65
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:17:27 UTC) #67
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/6df8096a00382d10cab1bb2052238e324d66fe54
Cr-Commit-Position: refs/heads/master@{#40659}

Powered by Google App Engine
This is Rietveld 408576698