• Peter Marshall's avatar
    [tracing] Convert COMPLETE events to BEGIN/END pairs for perfetto · d5c4d577
    Peter Marshall authored
    COMPLETE events are being deprecated and don't work well with perfetto
    because we can't give out a handle into the buffer like we used to so
    that the caller can update the existing event with the duration.
    
    BEGIN/END pairs should be used instead to add two separate trace events
    to the buffer which can be associated with one another by the trace
    processor e.g. the trace viewer UI.
    
    Cq-Include-Trybots: luci.v8.try:v8_linux64_perfetto_dbg_ng
    Bug: v8:8339
    Change-Id: Ib73c19d77ad58456ce23d15f0b658c26f3dc3d53
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1615257Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
    Commit-Queue: Peter Marshall <petermarshall@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#61641}
    d5c4d577
tracing-controller.cc 15.1 KB