New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 825084 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Apr 2018
Cc:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Add autotest utils.get_meminfo() to collect multiple memory info items

Project Member Reported by vovoy@chromium.org, Mar 23 2018

Issue description

The current API: utils.read_from_meminfo() can only get 1 item from /proc/meminfo.

When the user need multiple items in /proc/meminfo, an API to collect all items is handful.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Mar 23 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/autotest/+/9cd699c2fbdf2df8805facaf9eea7bcb13e930fb

commit 9cd699c2fbdf2df8805facaf9eea7bcb13e930fb
Author: Kuo-Hsin Yang <vovoy@chromium.org>
Date: Fri Mar 23 21:51:02 2018

Add utils.get_meminfo to get multiple items in /proc/meminfo

The current API utils.read_from_meminfo can only get 1 item from
/proc/meminfo. When the user needs multiple items in /proc/meminfo, an
API to collect all items is handful.

BUG= chromium:825084 
TEST=Unit tests

Change-Id: Ic8cbfb6bd57382c5ae72b55aa7ef7815ffb3f3a1
Reviewed-on: https://chromium-review.googlesource.com/977345
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Vovo Yang <vovoy@chromium.org>
Reviewed-by: Vovo Yang <vovoy@chromium.org>

[modify] https://crrev.com/9cd699c2fbdf2df8805facaf9eea7bcb13e930fb/client/bin/utils.py
[modify] https://crrev.com/9cd699c2fbdf2df8805facaf9eea7bcb13e930fb/client/bin/utils_unittest.py

Comment 2 by vovoy@chromium.org, Apr 9 2018

Status: Verified (was: Assigned)

Sign in to add a comment