JankTimeBomb - A time bomb that detects the jank in a
commit26a895aaaf71dc36152ee23f2ae643a8aff6ee42
authorrtenneti <rtenneti@chromium.org>
Thu, 27 Aug 2015 20:22:35 +0000 (27 13:22 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 27 Aug 2015 20:23:30 +0000 (27 20:23 +0000)
tree46b8ac5c86295476ce8048eaa67b7aa05da5b756
parentc40cfcd4ace681c768016a18050dd11b7d0591f2
JankTimeBomb - A time bomb that detects the jank in a
method. It can be Arm'ed by calling Arm and specifying
a duration. Does a PostDelayedTask on WatchDogThread to
set up the Alarm. It calls Metrics provider's statistical
stack profiler when Alarm goes off. If it is destroyed
before Alarm goes off, it will not call Alarm method.

R=asvitkine@chromium.org, danduong@chromium.org,

Review URL: https://codereview.chromium.org/1063473003

Cr-Commit-Position: refs/heads/master@{#345972}
chrome/browser/metrics/thread_watcher.cc
chrome/browser/metrics/thread_watcher.h
chrome/browser/metrics/thread_watcher_unittest.cc