Index: src/third_party/vtune/vtune-jit.cc |
diff --git a/src/third_party/vtune/vtune-jit.cc b/src/third_party/vtune/vtune-jit.cc |
index e489d6e21537945504276dd9cb533c588f0db541..b621cbcb8f4212cee862b1f5f9db002186e3ef9b 100644 |
--- a/src/third_party/vtune/vtune-jit.cc |
+++ b/src/third_party/vtune/vtune-jit.cc |
@@ -271,10 +271,10 @@ void VTUNEJITInterface::event_handler(const v8::JitCodeEvent* event) { |
} // namespace internal |
-void InitializeVtuneForV8(v8::Isolate::CreateParams& params) { |
+v8::JitCodeEventHandler GetVtuneCodeEventHandler() { |
v8::V8::SetFlagsFromString("--nocompact_code_space", |
(int)strlen("--nocompact_code_space")); |
- params.code_event_handler = vTune::internal::VTUNEJITInterface::event_handler; |
+ return vTune::internal::VTUNEJITInterface::event_handler; |
} |
} // namespace vTune |