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

Issue 275193003: [ChromeDriver] Expose CPU Profiling DevTools API into chromeWebDriver (Closed)

Created:
6 years, 7 months ago by elfogris
Modified:
5 years, 11 months ago
Reviewers:
stgao, klm
CC:
chromium-reviews, frankf, stgao
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[ChromeDriver] Expose CPU Profiling DevTools API into chromeWebDriver BUG=chromedriver:796 https://code.google.com/p/chromedriver/issues/detail?id=796 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271803

Patch Set 1 #

Total comments: 12

Patch Set 2 : Refactor error handling, removing unneded method and parameters, code style cleanup #

Total comments: 16

Patch Set 3 : Fixing remaining code style issues and couple or error checks #

Total comments: 5

Patch Set 4 : Folding cpu_profile, code style cleanup #

Total comments: 3

Patch Set 5 : Added missing error check, removed virtual definition in private methods, vars cleanup #

Patch Set 6 : Rebasing from master #

Patch Set 7 : Added dummy implementation to new virtual methods in the web_view_stub for testing #

Total comments: 1

Patch Set 8 : Fixing web_view_stub method signatuer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -0 lines) Patch
M AUTHORS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/stub_web_view.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/stub_web_view.cc View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/web_view.h View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/web_view_impl.h View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/web_view_impl.cc View 1 2 3 4 5 1 chunk +61 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/window_commands.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 60 (0 generated)
klm
https://codereview.chromium.org/275193003/diff/1/chrome/test/chromedriver/chrome/cpu_profile.cc File chrome/test/chromedriver/chrome/cpu_profile.cc (right): https://codereview.chromium.org/275193003/diff/1/chrome/test/chromedriver/chrome/cpu_profile.cc#newcode14 chrome/test/chromedriver/chrome/cpu_profile.cc:14: client_->AddListener(this); Why do we need to be a listener ...
6 years, 7 months ago (2014-05-10 02:21:56 UTC) #1
stgao
Hi Diego, Many thanks for the patch. I added some comments. Next time you upload ...
6 years, 7 months ago (2014-05-14 04:12:31 UTC) #2
klm
https://codereview.chromium.org/275193003/diff/20001/chrome/test/chromedriver/chrome/cpu_profile.cc File chrome/test/chromedriver/chrome/cpu_profile.cc (right): https://codereview.chromium.org/275193003/diff/20001/chrome/test/chromedriver/chrome/cpu_profile.cc#newcode23 chrome/test/chromedriver/chrome/cpu_profile.cc:23: return statusDebug; On 2014/05/14 04:12:31, Shuotao wrote: > As ...
6 years, 7 months ago (2014-05-14 05:23:10 UTC) #3
elfogris
Hey guys, I did all the changes based on the latest comments. Per klm, I ...
6 years, 7 months ago (2014-05-14 22:27:23 UTC) #4
klm
On 2014/05/14 22:27:23, elfogris wrote: > Hey guys, I did all the changes based on ...
6 years, 7 months ago (2014-05-15 04:59:29 UTC) #5
stgao
https://codereview.chromium.org/275193003/diff/20001/chrome/test/chromedriver/chrome/cpu_profile.cc File chrome/test/chromedriver/chrome/cpu_profile.cc (right): https://codereview.chromium.org/275193003/diff/20001/chrome/test/chromedriver/chrome/cpu_profile.cc#newcode20 chrome/test/chromedriver/chrome/cpu_profile.cc:20: Status statusDebug = client_->SendCommand("Debugger.enable", params); On 2014/05/14 04:12:31, Shuotao ...
6 years, 7 months ago (2014-05-16 01:43:21 UTC) #6
elfogris
Changes done. Sorry guys for this back and forth, I know I made newbie mistakes, ...
6 years, 7 months ago (2014-05-16 17:08:38 UTC) #7
stgao
Hi Diego, Many thanks for the new patch and your patience on the code style. ...
6 years, 7 months ago (2014-05-16 20:36:14 UTC) #8
elfogris
Done
6 years, 7 months ago (2014-05-16 21:27:32 UTC) #9
stgao
lgtm cool, lgtm, going for CQ
6 years, 7 months ago (2014-05-16 21:56:25 UTC) #10
stgao
The CQ bit was unchecked by stgao@chromium.org
6 years, 7 months ago (2014-05-16 22:18:08 UTC) #11
stgao
The CQ bit was checked by stgao@chromium.org
6 years, 7 months ago (2014-05-16 22:19:30 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/elfogris@gmail.com/275193003/80001
6 years, 7 months ago (2014-05-16 23:34:04 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-17 05:40:40 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-17 05:45:11 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_chromium_gn_compile_rel/builds/5163) chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/68244) linux_chromium_chromeos_rel ...
6 years, 7 months ago (2014-05-17 05:45:11 UTC) #16
elfogris
On 2014/05/17 05:45:11, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 7 months ago (2014-05-17 07:09:39 UTC) #17
klm
The CQ bit was checked by klm@google.com
6 years, 7 months ago (2014-05-17 15:01:58 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/elfogris@gmail.com/275193003/80001
6 years, 7 months ago (2014-05-17 15:02:39 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-17 19:07:11 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-17 19:10:11 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/28185)
6 years, 7 months ago (2014-05-17 19:10:12 UTC) #22
klm
The CQ bit was checked by klm@google.com
6 years, 7 months ago (2014-05-17 20:14:02 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/elfogris@gmail.com/275193003/80001
6 years, 7 months ago (2014-05-17 20:14:10 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-17 21:46:47 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-17 21:49:30 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/28197) linux_chromium_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_clang_dbg/builds/26203) linux_chromium_rel ...
6 years, 7 months ago (2014-05-17 21:49:30 UTC) #27
klm
The CQ bit was checked by klm@google.com
6 years, 7 months ago (2014-05-18 03:25:12 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/elfogris@gmail.com/275193003/80001
6 years, 7 months ago (2014-05-18 03:25:34 UTC) #29
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-18 05:10:23 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-18 05:11:59 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/30043)
6 years, 7 months ago (2014-05-18 05:11:59 UTC) #32
klm
The CQ bit was checked by klm@google.com
6 years, 7 months ago (2014-05-18 19:46:29 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/elfogris@gmail.com/275193003/80001
6 years, 7 months ago (2014-05-18 19:46:35 UTC) #34
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-18 23:17:51 UTC) #35
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-18 23:19:11 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_compile_dbg/builds/24299)
6 years, 7 months ago (2014-05-18 23:19:11 UTC) #37
klm
Diego, please sync to head and upload another patch. Applied patch chrome/test/chromedriver/chrome/web_view_impl.cc cleanly. Failed to ...
6 years, 7 months ago (2014-05-18 23:47:12 UTC) #38
elfogris
Done.
6 years, 7 months ago (2014-05-19 05:07:21 UTC) #39
klm
The CQ bit was checked by klm@google.com
6 years, 7 months ago (2014-05-19 12:27:24 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/elfogris@gmail.com/275193003/100001
6 years, 7 months ago (2014-05-19 12:27:37 UTC) #41
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-19 14:24:35 UTC) #42
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-19 15:02:19 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/28400)
6 years, 7 months ago (2014-05-19 15:02:19 UTC) #44
klm
Diego, please fix commands_unittest.cc: you added pure virtuals to the WebView, and the test needs ...
6 years, 7 months ago (2014-05-19 15:05:26 UTC) #45
klm
On 2014/05/19 15:05:26, klm wrote: > Diego, please fix commands_unittest.cc: you added pure virtuals to ...
6 years, 7 months ago (2014-05-19 15:16:49 UTC) #46
stgao
Sorry for my late reply. Yes, chrome/test/chromedriver/chrome/stub_web_view.h and its .cc need updating for the newly-added ...
6 years, 7 months ago (2014-05-19 17:39:21 UTC) #47
elfogris
I added the definition for StartProfile and EndProfile, but Im getting this error compiling: Undefined ...
6 years, 7 months ago (2014-05-20 06:40:41 UTC) #48
chromium-reviews
Can you upload the patch with the actual unittest mods? Michael Sent from my mobile ...
6 years, 7 months ago (2014-05-20 07:58:06 UTC) #49
elfogris
On 2014/05/20 07:58:06, chromium-reviews_chromium.org wrote: > Can you upload the patch with the actual unittest ...
6 years, 7 months ago (2014-05-20 16:51:27 UTC) #50
klm
https://codereview.chromium.org/275193003/diff/120001/chrome/test/chromedriver/chrome/stub_web_view.cc File chrome/test/chromedriver/chrome/stub_web_view.cc (right): https://codereview.chromium.org/275193003/diff/120001/chrome/test/chromedriver/chrome/stub_web_view.cc#newcode139 chrome/test/chromedriver/chrome/stub_web_view.cc:139: Status EndProfile(scoped_ptr<base::Value>* profile_data) { Missing StubWebView::, that's why you're ...
6 years, 7 months ago (2014-05-20 16:52:52 UTC) #51
elfogris
On 2014/05/20 16:52:52, klm wrote: > https://codereview.chromium.org/275193003/diff/120001/chrome/test/chromedriver/chrome/stub_web_view.cc > File chrome/test/chromedriver/chrome/stub_web_view.cc (right): > > https://codereview.chromium.org/275193003/diff/120001/chrome/test/chromedriver/chrome/stub_web_view.cc#newcode139 > ...
6 years, 7 months ago (2014-05-20 17:13:00 UTC) #52
klm
The CQ bit was checked by klm@google.com
6 years, 7 months ago (2014-05-20 17:16:45 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/elfogris@gmail.com/275193003/130001
6 years, 7 months ago (2014-05-20 17:17:45 UTC) #54
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-20 20:24:10 UTC) #55
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-20 21:26:31 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/29086)
6 years, 7 months ago (2014-05-20 21:26:32 UTC) #57
klm
The CQ bit was checked by klm@google.com
6 years, 7 months ago (2014-05-20 22:57:58 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/elfogris@gmail.com/275193003/130001
6 years, 7 months ago (2014-05-20 22:59:12 UTC) #59
commit-bot: I haz the power
6 years, 7 months ago (2014-05-21 01:51:12 UTC) #60
Message was sent while issue was closed.
Change committed as 271803

Powered by Google App Engine
This is Rietveld 408576698