-
shrike authored
macOS sends memory pressure change notifications, but those notifications lag the memory pressure change event by up to 60s. For accurate memory pressure change statistics we want a more timely pressure change signal. The only way to do that is with polling, but using a timer means consuming more CPU. This cl adds a CFRunLoopObserver that updates the current memory pressure level at the end of every run loop pass (modulo 5s), allowing UMA to accurately track the time spent in the different memory pressure states. BUG=569166 Review-Url: https://codereview.chromium.org/1587273002 Cr-Commit-Position: refs/heads/master@{#454880}
c26b5914