adding lives action to the document of internal stats
This commit is contained in:
parent
e85b40c90f
commit
79902ee26d
|
@ -12,6 +12,7 @@ ml).
|
||||||
[1.0.5-beta]
|
[1.0.5-beta]
|
||||||
|
|
||||||
## [1.0.5-beta]
|
## [1.0.5-beta]
|
||||||
|
- [addend] #124 adding endpoint for extract the internal stats of use
|
||||||
|
|
||||||
## [1.0.4-beta]
|
## [1.0.4-beta]
|
||||||
- [addend] #95 adding endpoint for check the hash of one report
|
- [addend] #95 adding endpoint for check the hash of one report
|
||||||
|
|
|
@ -413,7 +413,9 @@ class InternalStatsRow(OrderedDict):
|
||||||
for ac in self.actions:
|
for ac in self.actions:
|
||||||
self.is_snapshot(
|
self.is_snapshot(
|
||||||
self.is_deallocate(
|
self.is_deallocate(
|
||||||
self.is_allocate(ac)
|
self.is_live(
|
||||||
|
self.is_allocate(ac)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -422,6 +424,11 @@ class InternalStatsRow(OrderedDict):
|
||||||
self['Allocates'] += 1
|
self['Allocates'] += 1
|
||||||
return ac
|
return ac
|
||||||
|
|
||||||
|
def is_live(self, ac):
|
||||||
|
if ac.type == 'Live':
|
||||||
|
self['Lives'] += 1
|
||||||
|
return ac
|
||||||
|
|
||||||
def is_deallocate(self, ac):
|
def is_deallocate(self, ac):
|
||||||
if ac.type == 'Deallocate':
|
if ac.type == 'Deallocate':
|
||||||
self['Deallocates'] += 1
|
self['Deallocates'] += 1
|
||||||
|
|
Reference in New Issue