| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 #ifndef COMPONENTS_TRACING_BROWSER_TRACE_CONFIG_FILE_H_ | 5 #ifndef COMPONENTS_TRACING_COMMON_TRACE_CONFIG_FILE_H_ |
| 6 #define COMPONENTS_TRACING_BROWSER_TRACE_CONFIG_FILE_H_ | 6 #define COMPONENTS_TRACING_COMMON_TRACE_CONFIG_FILE_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/trace_event/trace_config.h" | 10 #include "base/trace_event/trace_config.h" |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 #include "components/tracing/tracing_export.h" | 12 #include "components/tracing/tracing_export.h" |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 template <typename Type> struct DefaultSingletonTraits; | 15 template <typename Type> |
| 16 struct DefaultSingletonTraits; |
| 16 } // namespace base | 17 } // namespace base |
| 17 | 18 |
| 18 namespace tracing { | 19 namespace tracing { |
| 19 | 20 |
| 20 // TraceConfigFile is a singleton that contains the configurations of tracing. | 21 // TraceConfigFile is a singleton that contains the configurations of tracing. |
| 21 // One can create a trace config file and use it to configure startup and/or | 22 // One can create a trace config file and use it to configure startup and/or |
| 22 // shutdown tracing. | 23 // shutdown tracing. |
| 23 // | 24 // |
| 24 // The trace config file should be JSON formated. One example is: | 25 // The trace config file should be JSON formated. One example is: |
| 25 // { | 26 // { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 bool is_enabled_; | 88 bool is_enabled_; |
| 88 base::trace_event::TraceConfig trace_config_; | 89 base::trace_event::TraceConfig trace_config_; |
| 89 int startup_duration_; | 90 int startup_duration_; |
| 90 base::FilePath result_file_; | 91 base::FilePath result_file_; |
| 91 | 92 |
| 92 DISALLOW_COPY_AND_ASSIGN(TraceConfigFile); | 93 DISALLOW_COPY_AND_ASSIGN(TraceConfigFile); |
| 93 }; | 94 }; |
| 94 | 95 |
| 95 } // namespace tracing | 96 } // namespace tracing |
| 96 | 97 |
| 97 #endif // COMPONENTS_TRACING_BROWSER_TRACE_CONFIG_FILE_H_ | 98 #endif // COMPONENTS_TRACING_COMMON_TRACE_CONFIG_FILE_H_ |
| OLD | NEW |