Support periodic collection in the ThreadProfiler

Implements support for periodic collection of stack samples following
the initial startup profiling. This change effectively enables periodic
profiling for the GPU process main and IO threads and the renderer
compositor thread.

The periodic thread profiling support currently in use in the browser
process will be removed in a follow-on CL, and the UI and IO thread
users will be updated to use this implementation.


Bug: 808588
Change-Id: I42dc32a7898f03dda0b0419f16171bf6f5d1b1c7
Reviewed-on: https://chromium-review.googlesource.com/907703
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Alexei Svitkine <asvitkine@chromium.org>
Commit-Queue: Mike Wittman <wittman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#538010}

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