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

Issue 357703002: Introduce builders for tracing event arguments (Closed)

Created:
6 years, 6 months ago by yurys
Modified:
6 years, 5 months ago
CC:
blink-reviews, eae+blinkwatch, apavlov+blink_chromium.org, aandrey+blink_chromium.org, rwlbuis, caseq+blink_chromium.org, malch+blink_chromium.org, yurys+blink_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, jchaffraix+rendering, devtools-reviews_chromium.org, pdr., rune+blink, loislo+blink_chromium.org, zoltan1, sof, lushnikov+blink_chromium.org, eustas+blink_chromium.org, paulirish+reviews_chromium.org, blink-reviews-rendering, leviw+renderwatch, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, sergeyv+blink_chromium.org
Project:
blink
Visibility:
Public.

Description

Introduce builders for tracing event arguments The builders provide interface for constructing JSON-like structure. Current implementation uses JSONValue as backing store but it may be replaced later with something more efficient without requiring to update client code. Current implementation ensures that we create isolated copies of all strings as they may be destroyed on a different thread. JSCallStack in InspectorTraceEvents.cpp now serializes call stack to string in the constructor instead of doing it later during tracing events serialization. Alternatively we could clone ScriptCallStack so that it contained isolated copies of all strings and do the serialization later but that seemed equally costly. BUG=375242, 361045 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177086

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 14

Patch Set 3 : #

Patch Set 4 : Rebase #

Patch Set 5 : Removed PLATFORM_EXPORT from template classes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+450 lines, -167 lines) Patch
M Source/core/dom/Node.cpp View 2 chunks +12 lines, -12 lines 0 comments Download
M Source/core/inspector/InspectorTraceEvents.cpp View 1 2 6 chunks +123 lines, -123 lines 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 2 3 4 chunks +19 lines, -20 lines 0 comments Download
M Source/platform/TracedValue.h View 1 2 3 4 1 chunk +145 lines, -8 lines 0 comments Download
M Source/platform/TracedValue.cpp View 1 2 1 chunk +151 lines, -4 lines 0 comments Download

Messages

Total messages: 48 (0 generated)
yurys
6 years, 6 months ago (2014-06-25 13:36:11 UTC) #1
dsinclair
This seems like a lot of duplication over what the JSON types already gives us. ...
6 years, 6 months ago (2014-06-25 13:49:57 UTC) #2
yurys
On 2014/06/25 13:49:57, dsinclair wrote: > This seems like a lot of duplication over what ...
6 years, 6 months ago (2014-06-25 13:57:58 UTC) #3
alph
lgtm The only concern is if these templates get broader usage it might start affecting ...
6 years, 6 months ago (2014-06-25 14:07:26 UTC) #4
yurys
https://codereview.chromium.org/357703002/diff/1/Source/platform/TracedValue.cpp File Source/platform/TracedValue.cpp (right): https://codereview.chromium.org/357703002/diff/1/Source/platform/TracedValue.cpp#newcode30 Source/platform/TracedValue.cpp:30: String threadSafeCopy(const String& string) On 2014/06/25 14:07:25, alph wrote: ...
6 years, 6 months ago (2014-06-25 14:08:40 UTC) #5
dsinclair
lgtm. Thanks for the explanation. https://codereview.chromium.org/357703002/diff/20001/Source/core/inspector/InspectorTraceEvents.cpp File Source/core/inspector/InspectorTraceEvents.cpp (right): https://codereview.chromium.org/357703002/diff/20001/Source/core/inspector/InspectorTraceEvents.cpp#newcode65 Source/core/inspector/InspectorTraceEvents.cpp:65: nit: extra blank line. ...
6 years, 6 months ago (2014-06-25 14:12:50 UTC) #6
caseq
https://codereview.chromium.org/357703002/diff/20001/Source/core/inspector/InspectorTraceEvents.cpp File Source/core/inspector/InspectorTraceEvents.cpp (right): https://codereview.chromium.org/357703002/diff/20001/Source/core/inspector/InspectorTraceEvents.cpp#newcode38 Source/core/inspector/InspectorTraceEvents.cpp:38: if (!m_serialized.isSafeToSendToAnotherThread()) Do we expect to ever hit this? ...
6 years, 6 months ago (2014-06-25 14:27:25 UTC) #7
yurys
On 2014/06/25 14:07:26, alph wrote: > lgtm > > The only concern is if these ...
6 years, 6 months ago (2014-06-25 14:42:25 UTC) #8
yurys
https://codereview.chromium.org/357703002/diff/20001/Source/core/inspector/InspectorTraceEvents.cpp File Source/core/inspector/InspectorTraceEvents.cpp (right): https://codereview.chromium.org/357703002/diff/20001/Source/core/inspector/InspectorTraceEvents.cpp#newcode38 Source/core/inspector/InspectorTraceEvents.cpp:38: if (!m_serialized.isSafeToSendToAnotherThread()) On 2014/06/25 14:27:25, caseq wrote: > Do ...
6 years, 6 months ago (2014-06-25 14:57:41 UTC) #9
yurys
The CQ bit was checked by yurys@chromium.org
6 years, 6 months ago (2014-06-26 07:14:14 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yurys@chromium.org/357703002/40001
6 years, 6 months ago (2014-06-26 07:14:49 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 6 months ago (2014-06-26 08:44:39 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-26 08:47:42 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/8578)
6 years, 6 months ago (2014-06-26 08:47:43 UTC) #14
pfeldman
lgtm
6 years, 6 months ago (2014-06-26 12:13:59 UTC) #15
yurys
The CQ bit was checked by yurys@chromium.org
6 years, 6 months ago (2014-06-26 12:55:08 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yurys@chromium.org/357703002/40001
6 years, 6 months ago (2014-06-26 12:55:45 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_compile_dbg on tryserver.blink ...
6 years, 6 months ago (2014-06-26 13:09:11 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-26 13:20:57 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_compile_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_compile_dbg/builds/10470)
6 years, 6 months ago (2014-06-26 13:20:58 UTC) #20
yurys
The CQ bit was checked by yurys@chromium.org
6 years, 6 months ago (2014-06-26 14:09:26 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yurys@chromium.org/357703002/40001
6 years, 6 months ago (2014-06-26 14:10:35 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_compile_dbg on tryserver.blink ...
6 years, 6 months ago (2014-06-26 14:21:29 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-26 14:31:00 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_compile_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_compile_dbg/builds/10470)
6 years, 6 months ago (2014-06-26 14:31:01 UTC) #25
yurys
The CQ bit was checked by yurys@chromium.org
6 years, 6 months ago (2014-06-26 15:34:12 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yurys@chromium.org/357703002/40001
6 years, 6 months ago (2014-06-26 15:34:42 UTC) #27
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_compile_dbg on tryserver.blink ...
6 years, 6 months ago (2014-06-26 19:16:25 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-26 19:25:17 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_compile_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_compile_dbg/builds/10621)
6 years, 6 months ago (2014-06-26 19:25:19 UTC) #30
yurys
The CQ bit was checked by yurys@chromium.org
6 years, 6 months ago (2014-06-27 04:54:36 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yurys@chromium.org/357703002/40001
6 years, 6 months ago (2014-06-27 04:55:08 UTC) #32
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_compile_dbg on tryserver.blink ...
6 years, 6 months ago (2014-06-27 05:00:01 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-27 05:10:58 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_compile_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_compile_dbg/builds/10743)
6 years, 6 months ago (2014-06-27 05:10:59 UTC) #35
yurys
The CQ bit was checked by yurys@chromium.org
6 years, 6 months ago (2014-06-27 05:24:00 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yurys@chromium.org/357703002/60001
6 years, 6 months ago (2014-06-27 05:24:31 UTC) #37
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_compile_dbg on tryserver.blink ...
6 years, 6 months ago (2014-06-27 06:32:22 UTC) #38
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-27 06:56:30 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_compile_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_compile_dbg/builds/10757)
6 years, 6 months ago (2014-06-27 06:56:31 UTC) #40
yurys
The CQ bit was checked by yurys@chromium.org
6 years, 6 months ago (2014-06-27 08:10:59 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yurys@chromium.org/357703002/80001
6 years, 6 months ago (2014-06-27 08:11:32 UTC) #42
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_gn_rel on tryserver.blink ...
6 years, 5 months ago (2014-06-27 09:15:08 UTC) #43
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-06-27 09:21:31 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_chromium_gn_rel/builds/1954)
6 years, 5 months ago (2014-06-27 09:21:32 UTC) #45
yurys
The CQ bit was checked by yurys@chromium.org
6 years, 5 months ago (2014-06-27 10:10:26 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yurys@chromium.org/357703002/80001
6 years, 5 months ago (2014-06-27 10:10:39 UTC) #47
commit-bot: I haz the power
6 years, 5 months ago (2014-06-27 10:16:39 UTC) #48
Message was sent while issue was closed.
Change committed as 177086

Powered by Google App Engine
This is Rietveld 408576698