Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / tools / memory_inspector / memory_inspector / data / serialization.py
index b28b6c7..b829267 100644 (file)
@@ -105,8 +105,9 @@ 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'],
+                                    resident_size=alloc_dict['resident_size']))
     return nh
\ No newline at end of file