Clean up / improve Linux process metrics code.
- Check for missing fields in base::ParseProcVmstat() and return false in that case. Add unit tests to test for failure. - Change SystemMetricsTests to use const char arrays instead of std::string when possible. - Refactor a block of ChromeOS-only code in base::GetSystemMemoryInfo() into its own function. - Clang format the modified files. Change-Id: Ie70695d7a8efdfe1d951a980bebc21133b4b2da2 Reviewed-on: https://chromium-review.googlesource.com/578789Reviewed-by:Thomas Anderson <thomasanderson@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/master@{#488271}
Showing
This diff is collapsed.
Please register or sign in to comment