Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: tools/memory_inspector/memory_inspector/data/serialization.py

Issue 549313006: [Android] memory_inspector: move to libheap_profiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mi3_prebuilts
Patch Set: Add prebuilts Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/memory_inspector/memory_inspector/data/serialization.py
diff --git a/tools/memory_inspector/memory_inspector/data/serialization.py b/tools/memory_inspector/memory_inspector/data/serialization.py
index b28b6c73f323e8e103876525330f96f1eb294522..25e6068ee5c5f11c0584decbd7bdda3be9d77636 100644
--- a/tools/memory_inspector/memory_inspector/data/serialization.py
+++ b/tools/memory_inspector/memory_inspector/data/serialization.py
@@ -105,8 +105,8 @@ class NativeHeapDecoder(json.JSONDecoder):
stack_trace = stacktrace.Stacktrace()
for absolute_addr in alloc_dict['stack_trace']:
stack_trace.Add(nh.GetStackFrame(absolute_addr))
- allocation = native_heap.Allocation(alloc_dict['size'],
- alloc_dict['count'],
- stack_trace)
- nh.Add(allocation)
+ nh.Add(native_heap.Allocation(start=alloc_dict['start'],
+ size=alloc_dict['size'],
+ stack_trace=stack_trace,
+ flags=alloc_dict['flags']))
return nh

Powered by Google App Engine
This is Rietveld 408576698