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

Unified Diff: content/browser/devtools/devtools_tracing_handler.cc

Issue 17176024: Add option to enable sampler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « base/debug/trace_event_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/devtools_tracing_handler.cc
diff --git a/content/browser/devtools/devtools_tracing_handler.cc b/content/browser/devtools/devtools_tracing_handler.cc
index 5605c27e97afdcc5dfc0163b29f2b448e997ffa3..a1719410b1c5937e2243e06cd9145223d38a69f7 100644
--- a/content/browser/devtools/devtools_tracing_handler.cc
+++ b/content/browser/devtools/devtools_tracing_handler.cc
@@ -28,6 +28,7 @@ const char kCategoriesParam[] = "categories";
const char kTraceOptionsParam[] = "trace-options";
const char kRecordUntilFull[] = "record-until-full";
const char kRecordContinuously[] = "record-continuously";
+const char kEnableSampling[] = "enable-sampling";
} // namespace
@@ -74,6 +75,8 @@ base::debug::TraceLog::Options DevToolsTracingHandler::TraceOptionsFromString(
ret |= base::debug::TraceLog::RECORD_UNTIL_FULL;
} else if (*iter == kRecordContinuously) {
ret |= base::debug::TraceLog::RECORD_CONTINUOUSLY;
+ } else if (*iter == kEnableSampling) {
+ ret |= base::debug::TraceLog::ENABLE_SAMPLING;
}
}
if (!(ret & base::debug::TraceLog::RECORD_UNTIL_FULL) &&
« no previous file with comments | « base/debug/trace_event_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698