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

Unified Diff: components/tracing/startup_tracing.h

Issue 1319093002: Revert of [Startup Tracing] Add --trace-config-file flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/BUILD.gn ('k') | components/tracing/startup_tracing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/tracing/startup_tracing.h
diff --git a/components/tracing/startup_tracing.h b/components/tracing/startup_tracing.h
new file mode 100644
index 0000000000000000000000000000000000000000..5d1c74d05c19e1f222b1fe844ec57bf60b15f5a2
--- /dev/null
+++ b/components/tracing/startup_tracing.h
@@ -0,0 +1,20 @@
+// Copyright (c) 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_STARTUP_TRACING_H_
+#define COMPONENTS_TRACING_STARTUP_TRACING_H_
+
+#include "components/tracing/tracing_export.h"
+
+namespace tracing {
+
+// Enable startup tracing according to the trace config file. If the trace
+// config file does not exist, it will do nothing. This is designed to be used
+// by Telemetry. Telemetry will stop tracing via DevTools later. To avoid
+// conflict, this should not be used when --trace-startup is enabled.
+void TRACING_EXPORT EnableStartupTracingIfConfigFileExists();
+
+} // namespace tracing
+
+#endif // COMPONENTS_TRACING_STARTUP_TRACING_H_
« no previous file with comments | « components/tracing/BUILD.gn ('k') | components/tracing/startup_tracing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698