Skip to content

Commit

Permalink
Fix plot
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmilano committed May 25, 2022
1 parent 1111d18 commit 0e4449a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/com/dtmilano/android/plot.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
"""
Copyright (C) 2012-2018 Diego Torres Milano
Copyright (C) 2012-2022 Diego Torres Milano
Created on mar 11, 2017
Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -31,9 +31,9 @@

from com.dtmilano.android.adb.dumpsys import Dumpsys

__version__ = '21.4.3'
__version__ = '21.4.4'

DEBUG = True
DEBUG = False

NumberTypes = (int, int, float)

Expand Down Expand Up @@ -62,15 +62,15 @@ def append(self, value):
self.__initAava()
dumpsys = value
self.ava[Dumpsys.TOTAL].append(dumpsys.get(Dumpsys.TOTAL))
self.ava[Dumpsys.ACTIVITIES].append(dumpsys.get(Dumpsys.ACTIVITIES))
self.ava[Dumpsys.ACTIVITY].append(dumpsys.get(Dumpsys.ACTIVITY))
self.ava[Dumpsys.VIEWS].append(dumpsys.get(Dumpsys.VIEWS))
# self.ava[Dumpsys.VIEW_ROOT_IMPL].append(dumpsys.get(Dumpsys.VIEW_ROOT_IMPL))
self.aava[Dumpsys.FRAMESTATS].append(dumpsys.get(Dumpsys.FRAMESTATS))
return self

def __initAva(self):
self.ava[Dumpsys.TOTAL] = []
self.ava[Dumpsys.ACTIVITIES] = []
self.ava[Dumpsys.ACTIVITY] = []
self.ava[Dumpsys.VIEWS] = []
# self.ava[Dumpsys.VIEW_ROOT_IMPL] = []

Expand Down Expand Up @@ -99,7 +99,7 @@ def plot(self, _type=Dumpsys.MEMINFO, filename=None):

axis = 1
for k in list(self.ava.keys()):
if k != Dumpsys.TOTAL and k != Dumpsys.ACTIVITIES:
if k != Dumpsys.TOTAL and k != Dumpsys.ACTIVITY:
offset = axis * 60
axis += 1
new_fixed_axis = par[k].get_grid_helper().new_fixed_axis
Expand Down

0 comments on commit 0e4449a

Please sign in to comment.