Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rafa0128 committed Dec 22, 2023
1 parent 90d3f54 commit ea99674
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions solox/public/apm.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ def getAndroidMemory(self):
output = adb.shell(cmd=cmd, deviceId=self.deviceId)
logger.info(f'memory info: {output}')
m_total = re.search(r'TOTAL:\s*(\d+)', output)
if not m_total:
m_total = re.search(r'TOTAL PSS:\s*(\d+)', output)
m_swap = re.search(r'TOTAL SWAP PSS:\s*(\d+)', output)
totalPass = round(float(float(m_total.group(1))) / 1024, 2)
swapPass = round(float(float(m_swap.group(1))) / 1024, 2)
Expand Down

0 comments on commit ea99674

Please sign in to comment.