Commit 618bcf7a authored by Stephen Nusko's avatar Stephen Nusko Committed by Commit Bot

tracing: Replace uses of TRACE_EVENT_ASYNC* in ui/latency

The deprecated TRACE_EVENT_ASYNC* macros have been superseded by
TRACE_EVENT_NESTABLE_ASYNC*.

Updating to the new macros is mostly straight-forward, except in cases
where STEP_INTO/PAST macros were used extensively (ui/latancy doesn't
appear to use any): In those cases, the steps have been converted into
nested sub-events.

Bug: 1038710
Change-Id: Ic9d0c503aff5b0111c958e90c8fee7c7fb075fdc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2014503Reviewed-by: default avatarEric Seckler <[email protected]>
Reviewed-by: default avatarTimothy Dresser <[email protected]>
Commit-Queue: Timothy Dresser <[email protected]>
Commit-Queue: Stephen Nusko <[email protected]>
Auto-Submit: Stephen Nusko <[email protected]>
Cr-Original-Commit-Position: refs/heads/[email protected]{#734037}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cb07556f7118092727305b53593f7bcad2c72a4f
parent e327c633
......@@ -841,6 +841,11 @@
INTERNAL_TRACE_EVENT_ADD_WITH_ID_TID_AND_TIMESTAMP( \
TRACE_EVENT_PHASE_NESTABLE_ASYNC_END, category_group, name, id, \
TRACE_EVENT_API_CURRENT_THREAD_ID, timestamp, TRACE_EVENT_FLAG_COPY)
#define TRACE_EVENT_COPY_NESTABLE_ASYNC_END1(category_group, name, id, \
arg1_name, arg1_val) \
INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_NESTABLE_ASYNC_END, \
category_group, name, id, \
TRACE_EVENT_FLAG_COPY, arg1_name, arg1_val)
// Records a single FLOW_BEGIN event called "name" immediately, with 0, 1 or 2
// associated arguments. If the category is not enabled, then this
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment