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

Issue 1620673002: Remove Blink's ConvertableToTraceFormat (Closed)

Created:
4 years, 11 months ago by bashi
Modified:
4 years, 10 months ago
CC:
chromium-reviews, eae+blinkwatch, apavlov+blink_chromium.org, kinuko+watch, Yoav Weiss, blink-reviews-events_chromium.org, yhirano+watch_chromium.org, szager+layoutwatch_chromium.org, dglazkov+blink, blink-reviews-bindings_chromium.org, gavinp+loader_chromium.org, jchaffraix+rendering, devtools-reviews_chromium.org, blink-reviews, zoltan1, blink-reviews-layout_chromium.org, caseq+blink_chromium.org, lushnikov+blink_chromium.org, loading-reviews+fetch_chromium.org, Nate Chapin, tyoshino+watch_chromium.org, pdr+renderingwatchlist_chromium.org, leviw+renderwatch, pfeldman+blink_chromium.org, sergeyv+blink_chromium.org, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove Blink's ConvertableToTraceFormat In short, to estimate memory overhead correctly. Rationale: - With the current design, we need to (1) add sizeof(TracedValue) and sizeof(ConvertableToTraceFormatWrapper), and (2) allocate them on malloc (not on PartitionAlloc/Oilpan) to estimate memory overhead correctly - TracedValue is the only instance of ConvertableToTraceFormat and TracedValue is basically a wrapper of base::trace_event::TracedValue - The purpose of ConvertableToTraceFormat is to avoid unneeded conversion but most of Blink objects (e.g. Strings, Vectors, Nodes) are allocated on PartitionAlloc/Oilpan so it's almost impossible to avoid conversion in Blink. ConvertableToTraceFormat isn't as useful as in base/ - If we only use TracedValue for structured values (this is true at this point) we can just pass base::trace_event::TracedValue directly to base/ Bonus points: - We can remove ConvertableToTraceFormatWrapper and string copies. - We can remove public methods which expose base/ types to core/modules. BUG=570961 Committed: https://crrev.com/a98a9dd2baa5ef054efb48336ee36b27b48b2c94 Cr-Commit-Position: refs/heads/master@{#372298}

Patch Set 1 : #

Total comments: 5

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -219 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/V8Binding.h View 3 chunks +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/invalidation/InvalidationSet.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorTraceEvents.h View 8 chunks +53 lines, -53 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp View 1 39 chunks +53 lines, -53 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/TracedLayoutObject.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/TracedLayoutObject.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/websockets/InspectorWebSocketEvents.h View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/websockets/InspectorWebSocketEvents.cpp View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/EventTracer.h View 2 chunks +4 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/platform/EventTracer.cpp View 1 3 chunks +10 lines, -37 lines 0 comments Download
M third_party/WebKit/Source/platform/TraceEvent.h View 1 2 6 chunks +19 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/platform/TraceEventCommon.h View 1 chunk +18 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/platform/TracedValue.h View 1 2 chunks +8 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/TracedValue.cpp View 1 1 chunk +16 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/TracedValueTest.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (8 generated)
bashi
I think removing ConvertableToTraceFormat from blink is the way to go as I wrote in ...
4 years, 11 months ago (2016-01-27 04:42:14 UTC) #4
Primiano Tucci (use gerrit)
Let me see if my understanding is correct: today in blink we have ConvertableToTraceFormat (with ...
4 years, 10 months ago (2016-01-28 10:31:44 UTC) #5
hiroshige
It's great to remove layers around ConvertableToTraceFormat! https://codereview.chromium.org/1620673002/diff/40001/third_party/WebKit/Source/platform/EventTracer.cpp File third_party/WebKit/Source/platform/EventTracer.cpp (right): https://codereview.chromium.org/1620673002/diff/40001/third_party/WebKit/Source/platform/EventTracer.cpp#newcode82 third_party/WebKit/Source/platform/EventTracer.cpp:82: convertables[0] = ...
4 years, 10 months ago (2016-01-28 12:05:01 UTC) #7
bashi
On 2016/01/28 10:31:44, Primiano Tucci wrote: > Let me see if my understanding is correct: ...
4 years, 10 months ago (2016-01-29 02:25:12 UTC) #8
bashi
https://codereview.chromium.org/1620673002/diff/40001/third_party/WebKit/Source/platform/EventTracer.cpp File third_party/WebKit/Source/platform/EventTracer.cpp (right): https://codereview.chromium.org/1620673002/diff/40001/third_party/WebKit/Source/platform/EventTracer.cpp#newcode82 third_party/WebKit/Source/platform/EventTracer.cpp:82: convertables[0] = convertableValue1->m_tracedValue; On 2016/01/28 12:05:01, hiroshige wrote: > ...
4 years, 10 months ago (2016-01-29 02:25:26 UTC) #9
kinuko
Driving-by, just wanted to say that looks great, and if we could also make TracedValue ...
4 years, 10 months ago (2016-01-29 02:38:52 UTC) #10
bashi
On 2016/01/29 02:38:52, kinuko wrote: > Driving-by, just wanted to say that looks great, and ...
4 years, 10 months ago (2016-01-29 02:54:24 UTC) #11
haraken
LGTM
4 years, 10 months ago (2016-01-29 04:41:21 UTC) #12
bashi
Hirano-san, could you review modules/websockets?
4 years, 10 months ago (2016-01-29 05:27:06 UTC) #14
yhirano
lgtm https://codereview.chromium.org/1620673002/diff/60001/third_party/WebKit/Source/modules/websockets/InspectorWebSocketEvents.cpp File third_party/WebKit/Source/modules/websockets/InspectorWebSocketEvents.cpp (right): https://codereview.chromium.org/1620673002/diff/60001/third_party/WebKit/Source/modules/websockets/InspectorWebSocketEvents.cpp#newcode8 third_party/WebKit/Source/modules/websockets/InspectorWebSocketEvents.cpp:8: #include "platform/TracedValue.h" nit: Not needed because the corresponding ...
4 years, 10 months ago (2016-01-29 05:44:29 UTC) #15
bashi
https://codereview.chromium.org/1620673002/diff/60001/third_party/WebKit/Source/modules/websockets/InspectorWebSocketEvents.cpp File third_party/WebKit/Source/modules/websockets/InspectorWebSocketEvents.cpp (right): https://codereview.chromium.org/1620673002/diff/60001/third_party/WebKit/Source/modules/websockets/InspectorWebSocketEvents.cpp#newcode8 third_party/WebKit/Source/modules/websockets/InspectorWebSocketEvents.cpp:8: #include "platform/TracedValue.h" On 2016/01/29 05:44:29, yhirano wrote: > nit: ...
4 years, 10 months ago (2016-01-29 06:01:01 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1620673002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1620673002/80001
4 years, 10 months ago (2016-01-29 06:02:34 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 10 months ago (2016-01-29 07:15:24 UTC) #20
commit-bot: I haz the power
4 years, 10 months ago (2016-01-29 07:16:14 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a98a9dd2baa5ef054efb48336ee36b27b48b2c94
Cr-Commit-Position: refs/heads/master@{#372298}

Powered by Google App Engine
This is Rietveld 408576698