reached_code_profiler_android.cc 798 B

12345678910111213141516171819202122232425
  1. // Copyright 2019 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. #include "base/android/jni_android.h"
  5. #include "base/android/reached_code_profiler.h"
  6. #include "base/test/test_support_jni_headers/ReachedCodeProfiler_jni.h"
  7. // This file provides functions to query the state of the reached code profiler
  8. // from Java. It's used only for tests.
  9. namespace base {
  10. namespace android {
  11. static jboolean JNI_ReachedCodeProfiler_IsReachedCodeProfilerEnabled(
  12. JNIEnv* env) {
  13. return IsReachedCodeProfilerEnabled();
  14. }
  15. static jboolean JNI_ReachedCodeProfiler_IsReachedCodeProfilerSupported(
  16. JNIEnv* env) {
  17. return IsReachedCodeProfilerSupported();
  18. }
  19. } // namespace android
  20. } // namespace base