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

Issue 14630005: This patch is to enable the vtune profiling tool support in chrome. (Closed)

Created:
7 years, 7 months ago by chunyang.dai
Modified:
7 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://src.chromium.org/chrome/trunk/src/
Visibility:
Public.

Description

This patch is to enable the vtune profiling tool support in chrome. The V8 project provides the support of vtune profiling tool so that the JavaScript code can be profiled. The initialization of vtune support in the embedder of V8 is needed. This patch has the following change: 1, enable the vtune support if "chromium_enable_vtunejit_for_v8" is enabled before generating the project file. 2, Add one flag "enable-vtune-support" to enable it for every render process. The initialization is invoked in the render process delegate. currently linux and windows platform is supported. contributed by chunyang.dai@intel.com BUG=237741 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=200711

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -1 line) Patch
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/content.gyp View 1 2 3 3 chunks +13 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/renderer_main_platform_delegate_linux.cc View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M content/renderer/renderer_main_platform_delegate_win.cc View 1 2 3 2 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 29 (0 generated)
jamesr
If you're just passing this flag through to V8, why isn't this passed via --js-flags? ...
7 years, 7 months ago (2013-05-07 02:03:04 UTC) #1
chunyang.dai
Hello, James This flag is NOT passed to V8. We want to pass the enable-vtune-support ...
7 years, 7 months ago (2013-05-07 02:15:32 UTC) #2
jamesr
https://codereview.chromium.org/14630005/diff/1/content/renderer/renderer_main_platform_delegate_linux.cc File content/renderer/renderer_main_platform_delegate_linux.cc (right): https://codereview.chromium.org/14630005/diff/1/content/renderer/renderer_main_platform_delegate_linux.cc#newcode18 content/renderer/renderer_main_platform_delegate_linux.cc:18: #include "v8/src/third_party/vtune/v8-vtune.h" is this not where the InitializeVtuneForV8() symbol ...
7 years, 7 months ago (2013-05-07 02:33:37 UTC) #3
Avi (use Gerrit)
https://codereview.chromium.org/14630005/diff/1/content/renderer/renderer_main_platform_delegate_linux.cc File content/renderer/renderer_main_platform_delegate_linux.cc (right): https://codereview.chromium.org/14630005/diff/1/content/renderer/renderer_main_platform_delegate_linux.cc#newcode34 content/renderer/renderer_main_platform_delegate_linux.cc:34: // If --enable-vtune-support. pointless comment https://codereview.chromium.org/14630005/diff/1/content/renderer/renderer_main_platform_delegate_linux.cc#newcode35 content/renderer/renderer_main_platform_delegate_linux.cc:35: if (command_line.HasSwitch(switches::kEnableVtune)) ...
7 years, 7 months ago (2013-05-07 03:04:03 UTC) #4
chunyang.dai
hello. Avi. I updated the code. please help to review. the changes are the following: ...
7 years, 7 months ago (2013-05-09 03:38:36 UTC) #5
Avi (use Gerrit)
I am willing to stamp this as OWNER but please get an OK from someone ...
7 years, 7 months ago (2013-05-10 18:20:47 UTC) #6
chunyang.dai
hello, Avi. Thanks for your review comments. I fixed the typo error and removed the ...
7 years, 7 months ago (2013-05-13 11:58:33 UTC) #7
Avi (use Gerrit)
https://codereview.chromium.org/14630005/diff/14002/content/renderer/renderer_main_platform_delegate_linux.cc File content/renderer/renderer_main_platform_delegate_linux.cc (right): https://codereview.chromium.org/14630005/diff/14002/content/renderer/renderer_main_platform_delegate_linux.cc#newcode33 content/renderer/renderer_main_platform_delegate_linux.cc:33: #error "fucking.." pardon me?
7 years, 7 months ago (2013-05-13 14:24:26 UTC) #8
haraken
7 years, 7 months ago (2013-05-13 23:54:54 UTC) #9
chunyang.dai
please forgive my impolite comment in the code. I just want to make sure all ...
7 years, 7 months ago (2013-05-14 01:14:04 UTC) #10
haraken
danno: would you take a quick look if this change is OK? I'm happy to ...
7 years, 7 months ago (2013-05-14 01:26:29 UTC) #11
danno
I am fundamentally OK with this change, the VTune support in V8 is new and ...
7 years, 7 months ago (2013-05-14 16:15:07 UTC) #12
haraken
The implementation looks good to me, although I'm not an OWNER. avi: could you take ...
7 years, 7 months ago (2013-05-15 02:16:15 UTC) #13
Avi (use Gerrit)
I know nothing about how v8 is supposed to tie into Blink and Chromium. As ...
7 years, 7 months ago (2013-05-15 03:53:52 UTC) #14
haraken
danno is saying that it's OK to add the vtune support to Chrome. So the ...
7 years, 7 months ago (2013-05-15 04:17:20 UTC) #15
abarth-chromium
Yes, makes sense to do it in Chromium.
7 years, 7 months ago (2013-05-15 04:22:12 UTC) #16
chunyang.dai
thank you all for the review comments. Hello, Haraken. I changed chromium_enable_vtunejit_for_v8 to chromium_enable_vtune_jit_for_v8 in ...
7 years, 7 months ago (2013-05-15 09:00:51 UTC) #17
haraken
OK, thanks, let's wait for L-G-T-M from avi.
7 years, 7 months ago (2013-05-15 09:17:36 UTC) #18
Avi (use Gerrit)
On 2013/05/15 09:17:36, haraken wrote: > OK, thanks, let's wait for L-G-T-M from avi. I ...
7 years, 7 months ago (2013-05-15 14:13:20 UTC) #19
haraken
> Who is an expert here in how v8 integrates? If you are, give your ...
7 years, 7 months ago (2013-05-15 14:17:54 UTC) #20
Avi (use Gerrit)
On 2013/05/15 14:17:54, haraken wrote: > > Who is an expert here in how v8 ...
7 years, 7 months ago (2013-05-15 14:19:08 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chunyang.dai@intel.com/14630005/38001
7 years, 7 months ago (2013-05-15 14:23:00 UTC) #22
chunyang.dai
Hello. All. Thanks a lot for your effort. I checked the trybot failure. It reports ...
7 years, 7 months ago (2013-05-15 14:36:51 UTC) #23
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=3046
7 years, 7 months ago (2013-05-15 14:39:18 UTC) #24
jamesr
On 2013/05/15 14:36:51, chunyang.dai wrote: > Hello. All. > > Thanks a lot for your ...
7 years, 7 months ago (2013-05-15 17:11:22 UTC) #25
chunyang.dai
Hello, Daniel. Could you please give a LGTM? Thanks.
7 years, 7 months ago (2013-05-16 16:25:31 UTC) #26
danno
It's not the prettiest solution to directly include something from v8/src/third_party/vtune, but vtune support in ...
7 years, 7 months ago (2013-05-16 20:20:16 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chunyang.dai@intel.com/14630005/38001
7 years, 7 months ago (2013-05-16 23:39:51 UTC) #28
commit-bot: I haz the power
7 years, 7 months ago (2013-05-17 03:43:16 UTC) #29
Message was sent while issue was closed.
Change committed as 200711

Powered by Google App Engine
This is Rietveld 408576698