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

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
« no previous file with comments | « content/renderer/DEPS ('k') | content/renderer/renderer_main_platform_delegate_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « content/renderer/DEPS ('k') | content/renderer/renderer_main_platform_delegate_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698