Index: tools/memory_inspector/memory_inspector/classification/native_heap_classifier.py |
diff --git a/tools/memory_inspector/memory_inspector/classification/native_heap_classifier.py b/tools/memory_inspector/memory_inspector/classification/native_heap_classifier.py |
index d51117cd73a3543feb3307398f332a059cce962c..e424afc4845627be4f8aeae31a6a907d69c872ab 100644 |
--- a/tools/memory_inspector/memory_inspector/classification/native_heap_classifier.py |
+++ b/tools/memory_inspector/memory_inspector/classification/native_heap_classifier.py |
@@ -34,7 +34,7 @@ from memory_inspector.core import exceptions |
from memory_inspector.core import native_heap |
-_RESULT_KEYS = ['bytes_allocated'] |
+_RESULT_KEYS = ['bytes_allocated', 'bytes_resident'] |
def LoadRules(content): |
@@ -61,7 +61,8 @@ def Classify(nativeheap, rule_tree): |
res = results.AggreatedResults(rule_tree, _RESULT_KEYS) |
for allocation in nativeheap.allocations: |
- res.AddToMatchingNodes(allocation, [allocation.size]) |
+ res.AddToMatchingNodes(allocation, |
+ [allocation.size, allocation.resident_size]) |
return res |