Index: src/v8.cc |
diff --git a/src/v8.cc b/src/v8.cc |
index cf78c0d110c689e93fa7207093e3d5c9e3d39530..7eb39bc9b1bcce0203c806b2540c19aedda4d2ed 100644 |
--- a/src/v8.cc |
+++ b/src/v8.cc |
@@ -31,6 +31,7 @@ |
#include "debug.h" |
#include "serialize.h" |
#include "stub-cache.h" |
+#include "oprofile-agent.h" |
namespace v8 { namespace internal { |
@@ -85,6 +86,8 @@ bool V8::Initialize(Deserializer *des) { |
// objects in place for creating the code object used for probing. |
CPU::Setup(); |
+ OProfileAgent::Initialize(); |
+ |
return true; |
} |
@@ -93,6 +96,8 @@ void V8::TearDown() { |
if (HasBeenDisposed()) return; |
if (!HasBeenSetup()) return; |
+ OProfileAgent::TearDown(); |
+ |
if (FLAG_preemption) { |
v8::Locker locker; |
v8::Locker::StopPreemption(); |