Files
rk35xx-android14/external/cronet/base/test/reached_code_profiler_android.cc
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

26 lines
776 B
C++

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/android/jni_android.h"
#include "base/android/reached_code_profiler.h"
#include "base/test/test_support_jni_headers/ReachedCodeProfiler_jni.h"
// This file provides functions to query the state of the reached code profiler
// from Java. It's used only for tests.
namespace base {
namespace android {
static jboolean JNI_ReachedCodeProfiler_IsReachedCodeProfilerEnabled(
JNIEnv* env) {
return IsReachedCodeProfilerEnabled();
}
static jboolean JNI_ReachedCodeProfiler_IsReachedCodeProfilerSupported(
JNIEnv* env) {
return IsReachedCodeProfilerSupported();
}
} // namespace android
} // namespace base