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

Unified Diff: content/renderer/renderer_main_platform_delegate_win.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/renderer_main_platform_delegate_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_main_platform_delegate_win.cc
===================================================================
--- content/renderer/renderer_main_platform_delegate_win.cc (revision 200183)
+++ content/renderer/renderer_main_platform_delegate_win.cc (working copy)
@@ -18,6 +18,10 @@
#include "third_party/icu/public/i18n/unicode/timezone.h"
#include "third_party/skia/include/ports/SkTypeface_win.h"
+#ifdef ENABLE_VTUNE_JIT_INTERFACE
+#include "v8/src/third_party/vtune/v8-vtune.h"
+#endif
+
namespace content {
namespace {
@@ -79,9 +83,15 @@
InitExitInterceptions();
+ const CommandLine& command_line = parameters_.command_line;
+
+#ifdef ENABLE_VTUNE_JIT_INTERFACE
+ if (command_line.HasSwitch(switches::kEnableVtune))
+ vTune::InitializeVtuneForV8();
+#endif
+
// Be mindful of what resources you acquire here. They can be used by
// malicious code if the renderer gets compromised.
- const CommandLine& command_line = parameters_.command_line;
bool no_sandbox = command_line.HasSwitch(switches::kNoSandbox);
if (!no_sandbox) {
« no previous file with comments | « content/renderer/renderer_main_platform_delegate_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698