• leilei's avatar
    Add new Telemetry tests to get CPU and memory usage for idle and flinging two... · 50154e04
    leilei authored
    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
    
    Review URL: https://codereview.chromium.org/1843063004
    
    Cr-Commit-Position: refs/heads/master@{#388393}
    50154e04
e2e_tests.gyp 1.11 KB