[Chromecast] Create ThreadHealthChecker class

Desktop / Chromium - Simeon Anfinrud [chromium.org] - 13 September 2017 12:09 EDT

This can be used to make sure that tasks are being flushed through a given task runner at a desired rate, a signal that can be used to determine if tasks are blocking a thread.

BUG=Internal b/23908801 BUG=Internal b/36699101 TEST=cast_base_unittests

Change-Id: I22dc48134ac46b2bd00bccee8105a7580d1072c9 Reviewed-on: https://chromium-review.googlesource.com/664086 Commit-Queue: Simeon Anfinrud

4d42f56 [Chromecast] Create ThreadHealthChecker class.
chromecast/base/BUILD.gn | 13 +++
chromecast/base/thread_health_checker.cc | 112 ++++++++++++++++++++++
chromecast/base/thread_health_checker.h | 82 ++++++++++++++++
chromecast/base/thread_health_checker_unittest.cc | 105 ++++++++++++++++++++
4 files changed, 312 insertions(+)

Upstream: git.chromium.org


  • Share