|
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}
Total comments: 5
Total comments: 4
|
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
|
Total messages: 22 (8 generated)
|