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

Unified Diff: chrome/test/chromedriver/window_commands.cc

Issue 275193003: [ChromeDriver] Expose CPU Profiling DevTools API into chromeWebDriver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: chrome/test/chromedriver/window_commands.cc
diff --git a/chrome/test/chromedriver/window_commands.cc b/chrome/test/chromedriver/window_commands.cc
index 266361b4c9555dfc49b4a62e1a71f66d7ab5568f..3b9fc55219cea5952e3785966e490359adc72af6 100644
--- a/chrome/test/chromedriver/window_commands.cc
+++ b/chrome/test/chromedriver/window_commands.cc
@@ -257,6 +257,10 @@ Status ExecuteExecuteScript(
return Status(kUnknownError, "'script' must be a string");
if (script == ":takeHeapSnapshot") {
return web_view->TakeHeapSnapshot(value);
+ } else if (script == ":startProfile") {
+ return web_view->StartProfile(value);
+ } else if (script == ":endProfile") {
+ return web_view->EndProfile(value);
} else {
const base::ListValue* args;
if (!params.GetList("args", &args))

Powered by Google App Engine
This is Rietveld 408576698