From b62f2e6f3f8d66b3231ecec14ea9365733371b39 Mon Sep 17 00:00:00 2001 From: Hiroshi Yamauchi Date: Wed, 23 Mar 2016 15:51:24 -0700 Subject: Add RosAlloc stats dump. For better understanding of the RosAlloc space. (cherrypick commit 565c2d9bce43c430d4267c82f5702160d971e712) Bug: 27744947 Bug: 9986565 Change-Id: I8309761a68fbc143bbcd8458a9194085aace7c3e --- runtime/gc/allocator/rosalloc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime/gc/allocator/rosalloc.h') diff --git a/runtime/gc/allocator/rosalloc.h b/runtime/gc/allocator/rosalloc.h index b12cb5b0dd..1fa2d1ac8a 100644 --- a/runtime/gc/allocator/rosalloc.h +++ b/runtime/gc/allocator/rosalloc.h @@ -928,6 +928,9 @@ class RosAlloc { void LogFragmentationAllocFailure(std::ostream& os, size_t failed_alloc_bytes) REQUIRES(!bulk_free_lock_, !lock_); + void DumpStats(std::ostream& os) + REQUIRES(Locks::mutator_lock_) REQUIRES(!lock_) REQUIRES(!bulk_free_lock_); + private: friend std::ostream& operator<<(std::ostream& os, const RosAlloc::PageMapKind& rhs); -- cgit v1.2.3-59-g8ed1b