background_tracing_field_trial.h 1.2 KB

12345678910111213141516171819202122232425262728
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef ANDROID_WEBVIEW_BROWSER_TRACING_BACKGROUND_TRACING_FIELD_TRIAL_H_
  5. #define ANDROID_WEBVIEW_BROWSER_TRACING_BACKGROUND_TRACING_FIELD_TRIAL_H_
  6. namespace android_webview {
  7. // Sets up background tracing in system mode if configured. Does not require the
  8. // metrics service to be enabled.
  9. // Since only one of the tracing modes (system/preemptive/reactive) is specified
  10. // in a given config, if system tracing is set up as a result of this method
  11. // call, any calls to MaybeSetupWebViewOnlyTracing() in the same browser process
  12. // will do nothing.
  13. void MaybeSetupSystemTracing();
  14. // Sets up app-only background tracing if configured. Requires the metrics
  15. // service to be enabled.
  16. // Since only one of the tracing modes (system/preemptive/reactive) is specified
  17. // in a given config, if app-only tracing is set up as a result of this method
  18. // call, any calls to MaybeSetupSystemTracing() in the same browser process will
  19. // do nothing.
  20. void MaybeSetupWebViewOnlyTracing();
  21. } // namespace android_webview
  22. #endif // ANDROID_WEBVIEW_BROWSER_TRACING_BACKGROUND_TRACING_FIELD_TRIAL_H_