Skip to content

Commit ee36199

Browse files
committed
Fix gfxinfo field numbers
- Support latest dumpsys
1 parent 1c0a0f4 commit ee36199

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/com/dtmilano/android/adb/dumpsys.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import sys
2424
from _warnings import warn
2525

26-
__version__ = '23.3.0'
26+
__version__ = '23.4.0'
2727

2828
DEBUG = False
2929

@@ -41,8 +41,8 @@ class Dumpsys:
4141
VIEWS = 'views'
4242

4343
FLAGS = 0
44-
INTENDED_VSYNC = 1
45-
FRAME_COMPLETED = 13
44+
INTENDED_VSYNC = 2
45+
FRAME_COMPLETED = 16
4646

4747
def __init__(self, adbclient, subcommand, *args):
4848
self.out = None

tools/gfxinfo-plot.py

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env python
1+
#! /usr/bin/env python3
22
# -*- coding: utf-8 -*-
33

44
import re
@@ -20,4 +20,4 @@
2020
sys.exit('usage: %s <package> [serialno]' % sys.argv[0])
2121

2222
device, serialno = ViewClient.connectToDeviceOrExit()
23-
Plot().append(Dumpsys(device, Dumpsys.GFXINFO, pkg, Dumpsys.FRAMESTATS)).plot(_type=Dumpsys.FRAMESTATS)
23+
Plot().append(Dumpsys(device, Dumpsys.GFXINFO, pkg, Dumpsys.FRAMESTATS)).plot(_type=Dumpsys.FRAMESTATS)

0 commit comments

Comments
 (0)