1 // Copyright 2019 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "base/android/jni_android.h" 6 #include "base/android/reached_code_profiler.h" 7 #include "base/test/test_support_jni_headers/ReachedCodeProfiler_jni.h" 8 9 // This file provides functions to query the state of the reached code profiler 10 // from Java. It's used only for tests. 11 namespace base { 12 namespace android { 13 JNI_ReachedCodeProfiler_IsReachedCodeProfilerEnabled(JNIEnv * env)14static jboolean JNI_ReachedCodeProfiler_IsReachedCodeProfilerEnabled( 15 JNIEnv* env) { 16 return IsReachedCodeProfilerEnabled(); 17 } 18 JNI_ReachedCodeProfiler_IsReachedCodeProfilerSupported(JNIEnv * env)19static jboolean JNI_ReachedCodeProfiler_IsReachedCodeProfilerSupported( 20 JNIEnv* env) { 21 return IsReachedCodeProfilerSupported(); 22 } 23 24 } // namespace android 25 } // namespace base 26