Revision: 4911
Author: [email protected]
Date: Mon Jun 21 16:36:31 2010
Log: [Isolates] Move Profiler::paused_ into non-static members.
Preparatory to moving profilers to be per-isolate.

Review URL: http://codereview.chromium.org/2810019
http://code.google.com/p/v8/source/detail?r=4911

Modified:
 /branches/experimental/isolates/src/log.cc

=======================================
--- /branches/experimental/isolates/src/log.cc  Mon Jun 21 10:40:11 2010
+++ /branches/experimental/isolates/src/log.cc  Mon Jun 21 16:36:31 2010
@@ -109,9 +109,9 @@
   void Run();

   // Pause and Resume TickSample data collection.
-  static bool paused() { return paused_; }
-  static void pause() { paused_ = true; }
-  static void resume() { paused_ = false; }
+  bool paused() { return paused_; }
+  void pause() { paused_ = true; }
+  void resume() { paused_ = false; }

  private:
   // Returns the next index in the cyclic buffer.
@@ -133,11 +133,9 @@
   bool running_;

   // Tells whether we are currently recording tick samples.
-  static bool paused_;
+  bool paused_;
 };

-bool Profiler::paused_ = false;
-

 //
 // StackTracer implementation
@@ -262,7 +260,8 @@
       overflow_(false),
       buffer_semaphore_(OS::CreateSemaphore(0)),
       engaged_(false),
-      running_(false) {
+      running_(false),
+      paused_(false) {
 }


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to