Flush early trace events ASAP.

EarlyTraceEvent flushes events only when there are no pending events,
i.e. all started events have ended. However on Android main thread of
a renderer process runs inside "content::Start" event, which never
ends. That prevents EarlyTraceEvents from flushing and appearing in
the trace.

This CL fixes the issue by flushing completed events ASAP.

(NOTRY as per advise in crbug.com/736215#c57)
NOTRY=true

Change-Id: Ie3d0f45d8384d7de0bf23562d2b87c0ecb7112d1
Reviewed-on: https://chromium-review.googlesource.com/721689
Commit-Queue: Dmitry Skiba <dskiba@chromium.org>
Reviewed-by: agrieve <agrieve@chromium.org>
Reviewed-by: Benoit L <lizeb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#513568}

CrOS-Libchrome-Original-Commit: 65f139a5480d57f1a96de25077f0b117ddb48457
1 file changed
tree: 8ba9e89331e7c3091852d5bdb10b76ecfb709f98
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/