Revert "Revert 239784 "Make page_cycler.py fully measure memory for each...""
media.media_cns_cases was failing with the following error: TypeError: AddResults() takes at least 3 arguments (3 given) BUG=323494 R=shadi@chromium.org, shadi@google.com, tonyg@chromium.org Review URL: https://codereview.chromium.org/105753006 git-svn-id: http://src.chromium.org/svn/trunk/src/build@241537 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
3ffc4cf406
Коммит
d051faae49
|
@ -25,8 +25,6 @@ import constants
|
|||
import screenshot
|
||||
import system_properties
|
||||
|
||||
from utils import host_path_finder
|
||||
|
||||
try:
|
||||
from pylib import pexpect
|
||||
except:
|
||||
|
@ -1501,20 +1499,6 @@ class AndroidCommands(object):
|
|||
logging.warning('Could not find disk IO stats.')
|
||||
return None
|
||||
|
||||
def PurgeUnpinnedAshmem(self):
|
||||
"""Purges the unpinned ashmem memory for the whole system.
|
||||
|
||||
This can be used to make memory measurements more stable in particular.
|
||||
"""
|
||||
host_path = host_path_finder.GetMostRecentHostPath('purge_ashmem')
|
||||
if not host_path:
|
||||
raise Exception('Could not find the purge_ashmem binary.')
|
||||
device_path = os.path.join(constants.TEST_EXECUTABLE_DIR, 'purge_ashmem')
|
||||
self.PushIfNeeded(host_path, device_path)
|
||||
if self.RunShellCommand(device_path, log_result=True):
|
||||
return
|
||||
raise Exception('Error while purging ashmem.')
|
||||
|
||||
def GetMemoryUsageForPid(self, pid):
|
||||
"""Returns the memory usage for given pid.
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче