| Index: base/debug/trace_event_impl.cc
|
| diff --git a/base/debug/trace_event_impl.cc b/base/debug/trace_event_impl.cc
|
| index ae4fb1e129390e31552786c533fefcc94a7cdea2..0885cab65c7a62943e6ef00795334415e659db39 100644
|
| --- a/base/debug/trace_event_impl.cc
|
| +++ b/base/debug/trace_event_impl.cc
|
| @@ -89,6 +89,7 @@ LazyInstance<ThreadLocalPointer<const char> >::Leaky
|
|
|
| const char kRecordUntilFull[] = "record-until-full";
|
| const char kRecordContinuously[] = "record-continuously";
|
| +const char kEnableSampling[] = "enable-sampling";
|
|
|
| size_t NextIndex(size_t index) {
|
| index++;
|
| @@ -761,6 +762,8 @@ TraceLog::Options TraceLog::TraceOptionsFromString(const std::string& options) {
|
| ret |= RECORD_UNTIL_FULL;
|
| } else if (*iter == kRecordContinuously) {
|
| ret |= RECORD_CONTINUOUSLY;
|
| + } else if (*iter == kEnableSampling) {
|
| + ret |= ENABLE_SAMPLING;
|
| } else {
|
| NOTREACHED(); // Unknown option provided.
|
| }
|
|
|