Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Unified Diff: content/renderer/renderer_main_platform_delegate_linux.cc

Issue 14630005: This patch is to enable the vtune profiling tool support in chrome. (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {

Powered by Google App Engine
This is Rietveld 408576698