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

Side by Side Diff: components/tracing/tracing_switches.cc

Issue 1315463002: [Startup Tracing] Add --trace-config-file flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review fix - blundell Created 5 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "components/tracing/tracing_switches.h" 5 #include "components/tracing/tracing_switches.h"
6 6
7 namespace switches { 7 namespace switches {
8 8
9 // Causes TRACE_EVENT flags to be recorded from startup.
10 // This flag will be ignored if --trace-startup or --trace-shutdown is provided.
11 const char kTraceConfigFile[] = "trace-config-file";
12
9 // Causes TRACE_EVENT flags to be recorded beginning with shutdown. Optionally, 13 // Causes TRACE_EVENT flags to be recorded beginning with shutdown. Optionally,
10 // can specify the specific trace categories to include (e.g. 14 // can specify the specific trace categories to include (e.g.
11 // --trace-shutdown=base,net) otherwise, all events are recorded. 15 // --trace-shutdown=base,net) otherwise, all events are recorded.
12 // --trace-shutdown-file can be used to control where the trace log gets stored 16 // --trace-shutdown-file can be used to control where the trace log gets stored
13 // to since there is otherwise no way to access the result. 17 // to since there is otherwise no way to access the result.
14 const char kTraceShutdown[] = "trace-shutdown"; 18 const char kTraceShutdown[] = "trace-shutdown";
15 19
16 // If supplied, sets the file which shutdown tracing will be stored into, if 20 // If supplied, sets the file which shutdown tracing will be stored into, if
17 // omitted the default will be used "chrometrace.log" in the current directory. 21 // omitted the default will be used "chrometrace.log" in the current directory.
18 // Has no effect unless --trace-shutdown is also supplied. 22 // Has no effect unless --trace-shutdown is also supplied.
(...skipping 20 matching lines...) Expand all
39 // Example: --trace-startup --trace-startup-file=/tmp/trace_event.log 43 // Example: --trace-startup --trace-startup-file=/tmp/trace_event.log
40 // As a special case, can be set to 'none' - this disables automatically saving 44 // As a special case, can be set to 'none' - this disables automatically saving
41 // the result to a file and the first manually recorded trace will then receive 45 // the result to a file and the first manually recorded trace will then receive
42 // all events since startup. 46 // all events since startup.
43 const char kTraceStartupFile[] = "trace-startup-file"; 47 const char kTraceStartupFile[] = "trace-startup-file";
44 48
45 // Sets the target URL for uploading tracing data. 49 // Sets the target URL for uploading tracing data.
46 const char kTraceUploadURL[] = "trace-upload-url"; 50 const char kTraceUploadURL[] = "trace-upload-url";
47 51
48 } // namespace switches 52 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698