summaryrefslogtreecommitdiff
path: root/runtime/gc/allocator/rosalloc.h
diff options
context:
space:
mode:
author Hiroshi Yamauchi <yamauchi@google.com> 2016-03-24 00:26:57 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2016-03-24 00:26:57 +0000
commit1fd223d781dfb53234cc926e7134b08545d6419c (patch)
treeafee85bd82b92ac52656c8a79d47e3c94e919f23 /runtime/gc/allocator/rosalloc.h
parent760efa3d01257250972ea47a00c0edb01d608c3a (diff)
parentb62f2e6f3f8d66b3231ecec14ea9365733371b39 (diff)
Merge "Add RosAlloc stats dump."
Diffstat (limited to 'runtime/gc/allocator/rosalloc.h')
-rw-r--r--runtime/gc/allocator/rosalloc.h3
1 files changed, 3 insertions, 0 deletions
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);