• Eric Seckler's avatar
    tracing: Use TRACE_EVENT_NESTABLE_ASYNC_* for NavigationRequest events · 4b922466
    Eric Seckler authored
    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: In those cases, the
    steps have been converted into nested sub-events.
    
    For NavigationRequest, we also have to split the StartToCommit event
    into its own separate event track, so that it doesn't get merged onto
    the same track as the remaining events in NavigationRequest. We
    accomplish this with a scoped event id.
    
    Also removes duplicate async start/end events in this class.
    
    Bug: 1038710
    Change-Id: I44fe91e24291751ea06ab447309277d7eef26529
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2075338
    Commit-Queue: Eric Seckler <eseckler@chromium.org>
    Reviewed-by: default avatarArthur Sonzogni <arthursonzogni@chromium.org>
    Auto-Submit: Eric Seckler <eseckler@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#745523}
    4b922466
navigation_request.cc 163 KB