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/runtime.h b/src/runtime.h
index 70bdc99..b3d3ebf 100644
--- a/src/runtime.h
+++ b/src/runtime.h
@@ -15,6 +15,7 @@
 #include "heap.h"
 #include "globals.h"
 #include "macros.h"
+#include "runtime_stats.h"
 #include "stringpiece.h"
 #include "unordered_set.h"
 
@@ -153,6 +154,18 @@
     jni_stub_array_ = jni_stub_array;
   }
 
+  int32_t GetStat(int kind);
+
+  RuntimeStats* GetStats();
+
+  bool HasStatsEnabled() const {
+    return stats_enabled_;
+  }
+
+  void ResetStats(int kinds);
+
+  void SetStatsEnabled(bool new_state);
+
  private:
   static void PlatformAbort(const char*, int);
 
@@ -192,6 +205,9 @@
   void (*exit_)(jint status);
   void (*abort_)();
 
+  bool stats_enabled_;
+  RuntimeStats stats_;
+
   // A pointer to the active runtime or NULL.
   static Runtime* instance_;