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

Side by Side Diff: components/tracing/common/trace_config_file.h

Issue 2683913002: Enable startup tracing from command line flags in components/tracing (Closed)
Patch Set: Rebase. Created 3 years, 10 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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/tracing/browser/trace_config_file_unittest.cc ('k') | components/tracing/common/trace_config_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698