[art] Add GetObjectsAllocated and TotalTimeWaitingForGc APIs
It's difficult to analyze sluggish issue due to excessive GC.
So, I would like to add APIs for GC status check.
GetObjectsAllocated : return count of allocated objects.
how to use : Debug.getRuntimeStat("art.gc.objects-allocated)
TotalTimeWaitingForGc : return total waiting time for GC.
how to use : Debug.getRuntimeStat("art.gc.total-time-waiting-for-gc")
This must be submitted with the libcore code.
Test: check value using Debug.getRuntimeStat()
Change-Id: I2e865957ddb7e8cb5ac955e65a18d2aaffe4c672
2 files changed