forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tracing] Move tracing switches to components
We plan to add --trace-config-file flag, which will be needed by components/tracing. This CL moves all existing tracing switches to components. And the next CL will add the --trace-config-file. Design doc for Add --trace-config-file: https://docs.google.com/document/d/1PgdXUOJF3WtEmYWUyGRbC2Fz2ICCZKO9jPvpLPRSHH8/edit?usp=sharing BUG=482098,515323 Review URL: https://codereview.chromium.org/1300733004 Cr-Commit-Position: refs/heads/master@{#344079}
- Loading branch information
1 parent
d9ae4bf
commit ecedcf2
Showing
30 changed files
with
99 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// Copyright 2015 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "components/tracing/tracing_switches.h" | ||
|
||
namespace switches { | ||
|
||
// Causes TRACE_EVENT flags to be recorded beginning with shutdown. Optionally, | ||
// can specify the specific trace categories to include (e.g. | ||
// --trace-shutdown=base,net) otherwise, all events are recorded. | ||
// --trace-shutdown-file can be used to control where the trace log gets stored | ||
// to since there is otherwise no way to access the result. | ||
const char kTraceShutdown[] = "trace-shutdown"; | ||
|
||
// If supplied, sets the file which shutdown tracing will be stored into, if | ||
// omitted the default will be used "chrometrace.log" in the current directory. | ||
// Has no effect unless --trace-shutdown is also supplied. | ||
// Example: --trace-shutdown --trace-shutdown-file=/tmp/trace_event.log | ||
const char kTraceShutdownFile[] = "trace-shutdown-file"; | ||
|
||
// Causes TRACE_EVENT flags to be recorded from startup. Optionally, can | ||
// specify the specific trace categories to include (e.g. | ||
// --trace-startup=base,net) otherwise, all events are recorded. Setting this | ||
// flag results in the first call to BeginTracing() to receive all trace events | ||
// since startup. In Chrome, you may find --trace-startup-file and | ||
// --trace-startup-duration to control the auto-saving of the trace (not | ||
// supported in the base-only TraceLog component). | ||
const char kTraceStartup[] = "trace-startup"; | ||
|
||
// Sets the time in seconds until startup tracing ends. If omitted a default of | ||
// 5 seconds is used. Has no effect without --trace-startup, or if | ||
// --startup-trace-file=none was supplied. | ||
const char kTraceStartupDuration[] = "trace-startup-duration"; | ||
|
||
// If supplied, sets the file which startup tracing will be stored into, if | ||
// omitted the default will be used "chrometrace.log" in the current directory. | ||
// Has no effect unless --trace-startup is also supplied. | ||
// Example: --trace-startup --trace-startup-file=/tmp/trace_event.log | ||
// As a special case, can be set to 'none' - this disables automatically saving | ||
// the result to a file and the first manually recorded trace will then receive | ||
// all events since startup. | ||
const char kTraceStartupFile[] = "trace-startup-file"; | ||
|
||
// Sets the target URL for uploading tracing data. | ||
const char kTraceUploadURL[] = "trace-upload-url"; | ||
|
||
} // namespace switches |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright 2015 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef COMPONENTS_TRACING_TRACING_SWITCHES_H_ | ||
#define COMPONENTS_TRACING_TRACING_SWITCHES_H_ | ||
|
||
#include "components/tracing/tracing_export.h" | ||
|
||
namespace switches { | ||
|
||
TRACING_EXPORT extern const char kTraceShutdown[]; | ||
TRACING_EXPORT extern const char kTraceShutdownFile[]; | ||
TRACING_EXPORT extern const char kTraceStartup[]; | ||
TRACING_EXPORT extern const char kTraceStartupDuration[]; | ||
TRACING_EXPORT extern const char kTraceStartupFile[]; | ||
TRACING_EXPORT extern const char kTraceUploadURL[]; | ||
|
||
} // namespace switches | ||
|
||
#endif // COMPONENTS_TRACING_TRACING_SWITCHES_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
include_rules = [ | ||
"+components/tracing", | ||
"+sandbox", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters