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

Issue 1499683002: tracing: Add macros for generating context trace events (Closed)

Created:
5 years ago by Sami
Modified:
4 years, 8 months ago
CC:
blink-reviews, blink-reviews-events_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, tracing+reviews_chromium.org, vmpstr+watch_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

tracing: Add macros for generating context trace events These macros can be used to annotate sections of code that are working on specific trace contexts. For example, to mark a piece of code as belonging to a particular HTML frame: TRACE_EVENT_ENTER_CONTEXT("blink", "FrameContext", &my_frame); // Do something with |my_frame|. TRACE_EVENT_LEAVE_CONTEXT("blink", "FrameContext", &my_frame); The patch also adds a scoped helper: TraceScopedContext scoped_context("blink", "FrameContext", &my_frame); For more details see the design doc: https://docs.google.com/document/d/15BB-suCb9j-nFt55yCFJBJCGzLg2qUm3WaSOPb8APtI/edit?pli=1#heading=h.4lvgp19u6rwx BUG=546021 Committed: https://crrev.com/29ffcdce7014502105f8d95a97259c910ba3b8be Cr-Commit-Position: refs/heads/master@{#370976}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -0 lines) Patch
M base/trace_event/common/trace_event_common.h View 1 2 chunks +16 lines, -0 lines 0 comments Download
M base/trace_event/trace_event.h View 1 2 chunks +30 lines, -0 lines 0 comments Download
M base/trace_event/trace_event_unittest.cc View 1 2 chunks +53 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/TraceEvent.h View 1 2 chunks +29 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/TraceEventCommon.h View 1 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (11 generated)
Sami
4 years, 11 months ago (2016-01-19 12:08:01 UTC) #3
fmeawad
non-owner LGTM https://codereview.chromium.org/1499683002/diff/1/base/trace_event/trace_event.h File base/trace_event/trace_event.h (right): https://codereview.chromium.org/1499683002/diff/1/base/trace_event/trace_event.h#newcode343 base/trace_event/trace_event.h:343: scoped_trace)(category_group, name, context) Can you move this ...
4 years, 11 months ago (2016-01-19 18:38:10 UTC) #5
chiniforooshan
On 2016/01/19 12:08:01, Sami wrote: lgtm
4 years, 11 months ago (2016-01-19 19:18:15 UTC) #6
benjhayden
lgtm
4 years, 11 months ago (2016-01-19 22:37:08 UTC) #7
Sami
Thanks for taking a look. https://codereview.chromium.org/1499683002/diff/1/base/trace_event/trace_event.h File base/trace_event/trace_event.h (right): https://codereview.chromium.org/1499683002/diff/1/base/trace_event/trace_event.h#newcode343 base/trace_event/trace_event.h:343: scoped_trace)(category_group, name, context) On ...
4 years, 11 months ago (2016-01-20 10:34:08 UTC) #8
nduca
lgtm
4 years, 11 months ago (2016-01-21 19:03:30 UTC) #9
Sami
Mike, could you check third_party/WebKit/Source/platform/?
4 years, 11 months ago (2016-01-22 10:44:59 UTC) #11
Mike West
LGTM.
4 years, 11 months ago (2016-01-22 12:47:17 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1499683002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1499683002/1
4 years, 11 months ago (2016-01-22 12:49:30 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/120564) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 11 months ago (2016-01-22 12:51:35 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1499683002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1499683002/20001
4 years, 11 months ago (2016-01-22 12:54:18 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-22 16:04:36 UTC) #21
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/29ffcdce7014502105f8d95a97259c910ba3b8be Cr-Commit-Position: refs/heads/master@{#370976}
4 years, 11 months ago (2016-01-22 16:06:41 UTC) #23
bekkilair77
4 years, 8 months ago (2016-04-10 14:08:12 UTC) #25
bekkilair77
lgtm commit-bot: I haz the power
4 years, 8 months ago (2016-04-10 14:11:50 UTC) #26
bekkilair77
4 years, 8 months ago (2016-04-10 14:35:16 UTC) #27
Message was sent while issue was closed.
lgtm

commit-bot: I haz the power

Powered by Google App Engine
This is Rietveld 408576698