autotest: Add a test to monitor memory usage

This test is NOT a pass/fail test. This test is here to record memory
usage across builds. The test will record:

1. general memory usage (total, used, free)
2. swap usage (total, used, free)
3. top 10 processes by resident memory
4. resident memory grouped by command line
5. resident memory grouped by service

The test uses `top` and ignores all `autotest` processes.

BUG=chromium:371418
TEST=test_that

Change-Id: I685b9270f7d616d55387bef8602bd1e97111d216
Reviewed-on: https://chromium-review.googlesource.com/200262
Reviewed-by: Fang Deng <fdeng@chromium.org>
Commit-Queue: Nam Nguyen <namnguyen@chromium.org>
Tested-by: Nam Nguyen <namnguyen@chromium.org>
3 files changed