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

Unified Diff: chrome/test/automation/browser_proxy.h

Issue 7866026: Added trace query code and wired tracing through BrowserProxy so tests can run traces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 9 years, 3 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 | « chrome/common/automation_messages_internal.h ('k') | chrome/test/automation/browser_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/automation/browser_proxy.h
diff --git a/chrome/test/automation/browser_proxy.h b/chrome/test/automation/browser_proxy.h
index 07f1e28cadc39aa2542f56110e20042470eed50c..a5a84d2c91abf4887643ea5ad2bfa59b6f78e1ee 100644
--- a/chrome/test/automation/browser_proxy.h
+++ b/chrome/test/automation/browser_proxy.h
@@ -232,6 +232,17 @@ class BrowserProxy : public AutomationResourceProxy {
bool GetInitialLoadTimes(float* min_start_time, float* max_stop_time,
std::vector<float>* stop_times);
+ // Begin a trace on the browser instance.
+ // See base/event_trace.h for documentation of included/excluded categories.
+ bool BeginTracing(const std::vector<std::string>& included_categories,
+ const std::vector<std::string>& excluded_categories);
+
+ // Helper method to begin trace on a single included category filter.
+ // Example: BeginTracing("test_MyTest*");
+ bool BeginTracing(const std::string& included_categories);
+
+ // End trace and collect the trace output as a json string.
+ bool EndTracing(std::string* json_trace_output);
protected:
virtual ~BrowserProxy() {}
« no previous file with comments | « chrome/common/automation_messages_internal.h ('k') | chrome/test/automation/browser_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698