| commit | c5d3e88aa0dd00301a276ec22ff7c99f9afefb51 | [log] [tgz] |
|---|---|---|
| author | Eric Seckler <eseckler@chromium.org> | Wed Nov 20 20:09:59 2019 |
| committer | Commit Bot <commit-bot@chromium.org> | Wed Nov 20 20:09:59 2019 |
| tree | a77e37aaf13842b93ffadd267cdcb65e1c87e8fb | |
| parent | 76a8acb4c955e01f60c84851b4881b99e2774208 [diff] |
Revert "perfetto: Split COMPLETE events into BEGIN/END pairs" This reverts commit 4da1652655a4cc8038e2c7fe60fad09cb27e006c. Reason for revert: crbug.com/1026658 Original change's description: > perfetto: Split COMPLETE events into BEGIN/END pairs > > There are a few reasons why this is desirable: > (1) Reduces need for complete event stack in ThreadLocalEventSinks, > which was brittle before (e.g. crbug.com/983307). > (2) Makes it possible to flush event sinks while tracing in the future > without losing not-yet-completed COMPLETE events from the stack > (streamed tracing use case). Events that didn't end before the > flush will still be present in the trace as BEGIN only. > (3) Prevents reordering of nested COMPLETE events - something which > could confuse TraceProcessor in the past (events with identical > begin timestamps would be imported incorrectly). > > To achieve this, this patch also plumbs the EXPLICIT_TIMESTAMP flag > and thread id through to TraceLog::UpdateTraceEventDurationExplicit, > because it seems that android can add COMPLETE events with explicit > timestamps / threads [1]. > > [1] https://cs.chromium.org/chromium/src/base/android/early_trace_event_binding.cc?q=INTERNAL_TRACE_EVENT_ADD_WITH_ID_TID_AND_TIMESTAMPS&ss=chromium&l=31 > > Bug: 983307, 928738, 1006770 > Change-Id: I66e685c04c068646d550f182185d3c45febcbfa8 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1899852 > Commit-Queue: Eric Seckler <eseckler@chromium.org> > Reviewed-by: oysteine <oysteine@chromium.org> > Cr-Commit-Position: refs/heads/master@{#716871} TBR=oysteine@chromium.org,eseckler@chromium.org Change-Id: I8056e483b439796eed90feaaa09434f7f63d1124 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 983307, 928738, 1006770, 1026658 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1927034 Reviewed-by: Eric Seckler <eseckler@chromium.org> Commit-Queue: Eric Seckler <eseckler@chromium.org> Cr-Commit-Position: refs/heads/master@{#717158}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .