| Index: src/v8.cc
|
| ===================================================================
|
| --- src/v8.cc (revision 1441)
|
| +++ src/v8.cc (working copy)
|
| @@ -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 @@
|
| // objects in place for creating the code object used for probing.
|
| CPU::Setup();
|
|
|
| + OProfileAgent::Initialize();
|
| +
|
| return true;
|
| }
|
|
|
| @@ -93,6 +96,8 @@
|
| if (HasBeenDisposed()) return;
|
| if (!HasBeenSetup()) return;
|
|
|
| + OProfileAgent::TearDown();
|
| +
|
| if (FLAG_preemption) {
|
| v8::Locker locker;
|
| v8::Locker::StopPreemption();
|
|
|