OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/trace_event/trace_event_impl.h" | 5 #include "base/trace_event/trace_event_impl.h" |
6 | 6 |
7 namespace base { | 7 namespace base { |
8 namespace trace_event { | 8 namespace trace_event { |
9 | 9 |
10 const char TraceConfig::kDefaultTraceConfigString[] = | |
dsinclair
2015/05/08 17:44:50
I'd prefer not to have the default values encoded
Zhen Wang
2015/05/13 00:01:11
Done.
| |
11 "{" | |
12 "\"enable_sampling\":false," | |
13 "\"enable_systrace\":false," | |
14 "\"excluded_categories\":[\"*Debug\",\"*Test\"]," | |
15 "\"record_mode\":\"record-until-full\"" | |
16 "}"; | |
17 | |
10 // Enable everything but debug and test categories by default. | 18 // Enable everything but debug and test categories by default. |
11 const char CategoryFilter::kDefaultCategoryFilterString[] = "-*Debug,-*Test"; | 19 const char CategoryFilter::kDefaultCategoryFilterString[] = "-*Debug,-*Test"; |
12 | 20 |
13 // Constant used by TraceLog's internal implementation of trace_option. | 21 // Constant used by TraceLog's internal implementation of trace_option. |
14 const TraceLog::InternalTraceOptions | 22 const TraceLog::InternalTraceOptions |
15 TraceLog::kInternalNone = 0; | 23 TraceLog::kInternalNone = 0; |
16 const TraceLog::InternalTraceOptions | 24 const TraceLog::InternalTraceOptions |
17 TraceLog::kInternalRecordUntilFull = 1 << 0; | 25 TraceLog::kInternalRecordUntilFull = 1 << 0; |
18 const TraceLog::InternalTraceOptions | 26 const TraceLog::InternalTraceOptions |
19 TraceLog::kInternalRecordContinuously = 1 << 1; | 27 TraceLog::kInternalRecordContinuously = 1 << 1; |
20 const TraceLog::InternalTraceOptions | 28 const TraceLog::InternalTraceOptions |
21 TraceLog::kInternalEnableSampling = 1 << 2; | 29 TraceLog::kInternalEnableSampling = 1 << 2; |
22 const TraceLog::InternalTraceOptions | 30 const TraceLog::InternalTraceOptions |
23 TraceLog::kInternalEchoToConsole = 1 << 3; | 31 TraceLog::kInternalEchoToConsole = 1 << 3; |
24 const TraceLog::InternalTraceOptions | 32 const TraceLog::InternalTraceOptions |
25 TraceLog::kInternalRecordAsMuchAsPossible = 1 << 4; | 33 TraceLog::kInternalRecordAsMuchAsPossible = 1 << 4; |
26 | 34 |
27 } // namespace trace_event | 35 } // namespace trace_event |
28 } // namespace base | 36 } // namespace base |
OLD | NEW |