Index: content/renderer/renderer_main_platform_delegate_linux.cc |
=================================================================== |
--- content/renderer/renderer_main_platform_delegate_linux.cc (revision 199089) |
+++ content/renderer/renderer_main_platform_delegate_linux.cc (working copy) |
@@ -14,6 +14,10 @@ |
#include "content/public/common/content_switches.h" |
#include "content/public/common/sandbox_init.h" |
+#ifdef ENABLE_VTUNE_JIT_INTERFACE |
+#include "v8/src/third_party/vtune/v8-vtune.h" |
+#endif |
+ |
namespace content { |
RendererMainPlatformDelegate::RendererMainPlatformDelegate( |
@@ -25,6 +29,13 @@ |
} |
void RendererMainPlatformDelegate::PlatformInitialize() { |
+#ifdef ENABLE_VTUNE_JIT_INTERFACE |
+ const CommandLine& command_line = parameters_.command_line; |
+ // If user enables vtune support, the initialization of vtune support |
+ // is invoked so that the required call-back function is registered in V8. |
Avi (use Gerrit)
2013/05/10 18:20:47
This comment still doesn't explain anything that t
|
+ if (command_line.HasSwitch(switches::kEnableVtune)) |
+ vTune::InitializeVtuneForV8(); |
+#endif |
} |
void RendererMainPlatformDelegate::PlatformUninitialize() { |