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

Unified Diff: components/tracing/common/trace_startup.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/tracing/common/trace_config_file_unittest.cc ('k') | components/tracing/common/trace_startup.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..4a388d8d44f2ccae891abcbaa34de3e5e491f32c
--- /dev/null
+++ b/components/tracing/common/trace_startup.h
@@ -0,0 +1,19 @@
+// 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 "components/tracing/tracing_export.h"
+
+namespace tracing {
+
+// Enables TraceLog with config based on the command line flags of the process.
+// 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(bool can_access_file_system);
+
+} // namespace tracing
+
+#endif // COMPONENTS_TRACING_COMMON_TRACE_STARTUP_H
« no previous file with comments | « components/tracing/common/trace_config_file_unittest.cc ('k') | components/tracing/common/trace_startup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698