Add a C++ equivalent of Android's TimingLogger, and use it for the heap.
This also changes us over to one big stats update at the end of sweeping,
like Dalvik, rather than recording every single free individually.
Change-Id: Ib8e2a83d41d36e35e154183a4e173e915af79ae9
diff --git a/src/heap.h b/src/heap.h
index aa9db6e..ffe2abf 100644
--- a/src/heap.h
+++ b/src/heap.h
@@ -153,7 +153,7 @@
}
// Callers must hold the heap lock.
- static void RecordFreeLocked(Space* space, const Object* object);
+ static void RecordFreeLocked(size_t freed_objects, size_t freed_bytes);
// Must be called if a field of an Object in the heap changes, and before any GC safe-point.
// The call is not needed if NULL is stored in the field.