OSDN Git Service

Add histogram for native allocations
authorMathieu Chartier <mathieuc@google.com>
Wed, 11 May 2016 18:35:39 +0000 (11:35 -0700)
committerMathieu Chartier <mathieuc@google.com>
Wed, 11 May 2016 20:55:25 +0000 (13:55 -0700)
commit0dce75dc6945c221a054eb9c479fb60efd193719
tree62a669daa6b12c685792318f825e33a1388573d5
parentab249381b4757e96da31c0cdcaf889861d1cc928
Add histogram for native allocations

Shows up in traces.txt, sample output:
Histogram of native allocation 0:4315,131072:33,1179648:3 bucket size 131072
Histogram of native free 0:995,131072:19,1179648:2 bucket size 131072

Bug: 28680116

Change-Id: I584eb85709d3ae28f5142a01af11075a2a6436d7
runtime/base/histogram.h
runtime/gc/heap.cc
runtime/gc/heap.h