Changed tracer to use an instance to hold state instead of statics.
Change-Id: I2fdcf5de7fbc745273b1a33cb409d13e72d24ab4
diff --git a/src/runtime.h b/src/runtime.h
index 7f5f6f6..d30f465 100644
--- a/src/runtime.h
+++ b/src/runtime.h
@@ -34,6 +34,7 @@
class SignalCatcher;
class String;
class ThreadList;
+class Trace;
class Runtime {
public:
@@ -203,6 +204,11 @@
void DidForkFromZygote();
+ void EnableMethodTracing(Trace* tracer);
+ void DisableMethodTracing();
+ bool IsMethodTracingActive() const;
+ Trace* GetTracer() const;
+
private:
static void PlatformAbort(const char*, int);
@@ -272,6 +278,8 @@
bool stats_enabled_;
RuntimeStats stats_;
+ Trace* tracer_;
+
// A pointer to the active runtime or NULL.
static Runtime* instance_;