Make MarkProcessAsAlive only run on UI thread.
commit946786fbe818ea4a947b9f08013c78def222e7db
authorsimonhatch <simonhatch@chromium.org>
Tue, 2 Jun 2015 19:11:03 +0000 (2 12:11 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 2 Jun 2015 19:11:47 +0000 (2 19:11 +0000)
tree280510c892aeaac03c23f5302cfff4ce23b7ec88
parentcdb841d85042495daf5c1a357d358ffa1d6f124e
Make MarkProcessAsAlive only run on UI thread.

Currently this runs on both UI and IO threads, which causes problems for https://codereview.chromium.org/1157243005/ which tries to register trigger handles on the UI thread. Additionally, refactored the timer so that we restart it once we've finished gathering. With a small enough gather cycle + bad luck, it's possible right now for both threads to be accessing the metrics_map_.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#332442}
chrome/browser/performance_monitor/performance_monitor.cc
chrome/browser/performance_monitor/performance_monitor.h
chrome/browser/performance_monitor/process_metrics_history.cc
chrome/browser/performance_monitor/process_metrics_history.h