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

Issue 2341333003: Use chromium trace_event implementation in blink (Closed)

Created:
4 years, 3 months ago by Xianzhu
Modified:
4 years, 3 months ago
CC:
Mads Ager (chromium), ajuma+watch_chromium.org, apavlov+blink_chromium.org, blink-reviews, blink-reviews-events_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, caseq+blink_chromium.org, chromium-reviews, danakj+watch_chromium.org, devtools-reviews_chromium.org, dglazkov+blink, dshwang, drott+blinkwatch_chromium.org, krit, dtapuska+blinkwatch_chromium.org, eae+blinkwatch, f(malita), jbroman, Justin Novosad, kouhei+heap_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, oilpan-reviews, pdr+graphicswatchlist_chromium.org, pfeldman+blink_chromium.org, rwlbuis, Stephen Chennney, tracing+reviews_chromium.org, wfh+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use chromium trace_event implementation in blink Previously blink's trace_event was implemented in the way to make blink a standalone library: TRACE_EVENT macros -> TRACE_EVENT internal macros -> EventTracer -> Chromium's trace event C++ API Now blink is no longer a standalone library, so we can use chromium's trace_event macros directly. This CL - removes blink's trace_event implementation - lets blink's TraceEvent.h include chromium's trace_event.h, - lets blink's TracedValue implement ConvertableToTraceFormat, - keeps support of blink CString type as trace values. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/f1acd2dd9f935f7d29dcee651f84eac16761609f Cr-Commit-Position: refs/heads/master@{#419897}

Patch Set 1 #

Patch Set 2 : Remove dependency #

Patch Set 3 : - #

Patch Set 4 : TraceEvent::toTraceTimestamp() #

Patch Set 5 : Rebase #

Total comments: 2

Patch Set 6 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -2043 lines) Patch
M base/trace_event/common/trace_event_common.h View 1 2 3 4 2 chunks +7 lines, -2 lines 0 comments Download
M base/trace_event/trace_event.h View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/CoreInitializer.cpp View 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentTiming.cpp View 1 2 3 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorTraceEvents.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoadTiming.cpp View 1 2 3 4 chunks +11 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintTiming.cpp View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceUserTiming.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 1 2 2 chunks +0 lines, -3 lines 0 comments Download
D third_party/WebKit/Source/platform/EventTracer.h View 1 chunk +0 lines, -115 lines 0 comments Download
D third_party/WebKit/Source/platform/EventTracer.cpp View 1 1 chunk +0 lines, -123 lines 0 comments Download
M third_party/WebKit/Source/platform/TraceEvent.h View 1 2 3 4 5 1 chunk +17 lines, -670 lines 0 comments Download
D third_party/WebKit/Source/platform/TraceEventCommon.h View 1 1 chunk +0 lines, -1050 lines 0 comments Download
M third_party/WebKit/Source/platform/TracedValue.h View 1 2 chunks +8 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/platform/TracedValue.cpp View 1 3 chunks +25 lines, -35 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/heap/RunAllTests.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceLoadTiming.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp View 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 45 (31 generated)
Xianzhu
4 years, 3 months ago (2016-09-18 03:57:41 UTC) #6
Xianzhu
4 years, 3 months ago (2016-09-19 17:19:33 UTC) #10
haraken
This looks amazing! LGTM Add more explanation to the CL description so that other developers ...
4 years, 3 months ago (2016-09-20 00:49:12 UTC) #17
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/2341333003/60001
4 years, 3 months ago (2016-09-20 16:36:03 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/262993)
4 years, 3 months ago (2016-09-20 16:44:40 UTC) #28
Xianzhu
oysterine@, can you ptal base/trace_event? Thanks.
4 years, 3 months ago (2016-09-20 16:46:28 UTC) #30
esprehn
lgtm
4 years, 3 months ago (2016-09-20 16:51:27 UTC) #33
oystein (OOO til 10th of July)
This is awesome, lgtm with a nit! https://codereview.chromium.org/2341333003/diff/80001/base/trace_event/trace_event.h File base/trace_event/trace_event.h (right): https://codereview.chromium.org/2341333003/diff/80001/base/trace_event/trace_event.h#newcode68 base/trace_event/trace_event.h:68: // |categoryAndName| ...
4 years, 3 months ago (2016-09-20 18:11:18 UTC) #34
Xianzhu
https://codereview.chromium.org/2341333003/diff/80001/base/trace_event/trace_event.h File base/trace_event/trace_event.h (right): https://codereview.chromium.org/2341333003/diff/80001/base/trace_event/trace_event.h#newcode68 base/trace_event/trace_event.h:68: // |categoryAndName| doesn't need to be a constant string. ...
4 years, 3 months ago (2016-09-20 18:15:48 UTC) #35
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/2341333003/100001
4 years, 3 months ago (2016-09-20 18:17:09 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/144743)
4 years, 3 months ago (2016-09-20 19:51:20 UTC) #40
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/2341333003/100001
4 years, 3 months ago (2016-09-20 20:37:06 UTC) #42
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-20 23:50:04 UTC) #43
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 23:52:38 UTC) #45
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f1acd2dd9f935f7d29dcee651f84eac16761609f
Cr-Commit-Position: refs/heads/master@{#419897}

Powered by Google App Engine
This is Rietveld 408576698