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

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

Issue 2683913002: Enable startup tracing from command line flags in components/tracing (Closed)
Patch Set: Rename. 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/trace_startup.h
diff --git a/components/tracing/common/trace_startup.h b/components/tracing/common/trace_startup.h
new file mode 100644
index 0000000000000000000000000000000000000000..89584bf61dc8691f027a3e3d5e7202c36366a9dd
--- /dev/null
+++ b/components/tracing/common/trace_startup.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_TRACE_STARTUP_H
+#define COMPONENTS_TRACING_COMMON_TRACE_STARTUP_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
+EnableStartupTracingIfNeeded(const base::CommandLine& command_line,
Primiano Tucci (use gerrit) 2017/02/15 15:33:34 There doesn't seem to be an actual need of passing
ssid 2017/02/15 18:35:34 Done.
+ bool can_access_file_system);
+
+} // namespace tracing
+
+#endif // COMPONENTS_TRACING_COMMON_TRACE_STARTUP_H

Powered by Google App Engine
This is Rietveld 408576698