Add new Telemetry tests to get CPU and memory usage for idle and flinging two test scenarios. Mirroring case will be added later.
It uses Chrome extension APIs to get CPU/memory usage for tab, browser, gpu and media router extension four processes. The test extension in this cl is implemented for this purpose. It collects the CPU/memory usage and posts it back the current tab.
We will get CPU/memory data each time when the Task Manager updates its process statistics, and will miss some data if media router extension is suspended.Right now I just use a simple way to present the results, which uses the average CPU/memory usage, but I feel this may not be the best way to present the results, since we have lots of 0 in extension CPU usage, it will definitely lower the average value. I need to figure out a better way to present the final results.
BUG=
594225
Committed:
https://crrev.com/50154e04711d8fac820f4f2c08519180c1f585bb
Cr-Commit-Position: refs/heads/master@{#388393}