Implement as much of VMDebug as we can reasonably do right now.
No hprof and no method tracing, but everything else.
Change-Id: Ifccd1f08e31f34b947c30f1211db788aae674d81
diff --git a/src/thread.h b/src/thread.h
index 0be4aa6..5a0c4f0 100644
--- a/src/thread.h
+++ b/src/thread.h
@@ -32,6 +32,7 @@
#include "mutex.h"
#include "mem_map.h"
#include "offsets.h"
+#include "runtime_stats.h"
#include "UniquePtr.h"
namespace art {
@@ -311,6 +312,10 @@
return peer_;
}
+ RuntimeStats* GetStats() {
+ return &stats_;
+ }
+
// Returns the Method* for the current method.
// This is used by the JNI implementation for logging and diagnostic purposes.
const Method* GetCurrentMethod() const {
@@ -566,6 +571,8 @@
friend class Monitor;
+ RuntimeStats stats_;
+
// FIXME: placeholder for the gc cardTable
uint32_t card_table_;