autoupdate_EndToEndTest: Collect and report performance data.

While performing an update, run a script on the DUT to measure how
many resources update_engine and its helpers are using. For now we
only record the peak memory usage but the performance monitoring
script can easily be extended to record other things.

For now, we report all samples under the same name which means that
multiple samples from the same source version are reported (one for
the full update and one for each delta). In the future we might want
to report this separately.

BUG=chromium:385305
TEST=Ran the autoupdate_EndToEndTest on Moblab w/o any problems.

Change-Id: Iacbad76b9b336414351fd45b826d6ea311f64d08
Reviewed-on: https://chromium-review.googlesource.com/217023
Reviewed-by: Alex Deymo <deymo@chromium.org>
Tested-by: David Zeuthen <zeuthen@chromium.org>
Commit-Queue: David Zeuthen <zeuthen@chromium.org>
2 files changed