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

Unified Diff: components/tracing/common/startup_command_parser.h

Issue 2683913002: Enable startup tracing from command line flags in components/tracing (Closed)
Patch Set: . 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 side-by-side diff with in-line comments
Download patch
Index: components/tracing/common/startup_command_parser.h
diff --git a/components/tracing/common/startup_command_parser.h b/components/tracing/common/startup_command_parser.h
new file mode 100644
index 0000000000000000000000000000000000000000..8a7b0999d5d4f29fb96de1ddac53445154cd78b0
--- /dev/null
+++ b/components/tracing/common/startup_command_parser.h
@@ -0,0 +1,22 @@
+// Copyright 2017 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_COMMON_STARTUP_COMMAND_PARSER_H
+#define COMPONENTS_TRACING_COMMON_STARTUP_COMMAND_PARSER_H
+
+#include "base/command_line.h"
+#include "components/tracing/tracing_export.h"
+
+namespace tracing {
+
+// Enables TraceLog with config based on the command line flags passed. If
+// |can_access_file_system| is false then TraceLog is not enabled in case it is
+// required to read config file to start tracing.
+void TRACING_EXPORT
+ParseStartupTraceCommands(const base::CommandLine& command_line,
+ bool can_access_file_system);
+
+} // namespace tracing
+
+#endif // COMPONENTS_TRACING_COMMON_STARTUP_COMMAND_PARSER_H

Powered by Google App Engine
This is Rietveld 408576698