| Index: content/renderer/renderer_main_platform_delegate_linux.cc
|
| ===================================================================
|
| --- content/renderer/renderer_main_platform_delegate_linux.cc (revision 200183)
|
| +++ 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,11 @@
|
| }
|
|
|
| void RendererMainPlatformDelegate::PlatformInitialize() {
|
| +#ifdef ENABLE_VTUNE_JIT_INTERFACE
|
| + const CommandLine& command_line = parameters_.command_line;
|
| + if (command_line.HasSwitch(switches::kEnableVtune))
|
| + vTune::InitializeVtuneForV8();
|
| +#endif
|
| }
|
|
|
| void RendererMainPlatformDelegate::PlatformUninitialize() {
|
|
|