Index: src/platform.h |
diff --git a/src/platform.h b/src/platform.h |
index 14f4551f372e2c5faed9e9f8312ad1ab84a0c519..813e9d9f571adbc42e973a01f1e5fc5a9ce31a67 100644 |
--- a/src/platform.h |
+++ b/src/platform.h |
@@ -762,6 +762,20 @@ class Sampler { |
DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); |
}; |
+class CpuProfilerThread : public Thread { |
+ public: |
+ static const int kCpuProfilerThreadStackSize = 64 * KB; |
+ |
+ explicit CpuProfilerThread(Sampler* sampler); |
+ |
+ virtual void Run() = 0; |
+ |
+ void DoCpuProfile(); |
+ |
+ private: |
+ const int vm_tgid_; |
caseq
2012/08/16 14:39:22
That's a platform specific field, it should be in
|
+ Sampler* sampler_; |
+}; |
} } // namespace v8::internal |