diff options
Diffstat (limited to 'chromium/base/android/jank_metric_uma_recorder.h')
-rw-r--r-- | chromium/base/android/jank_metric_uma_recorder.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/chromium/base/android/jank_metric_uma_recorder.h b/chromium/base/android/jank_metric_uma_recorder.h new file mode 100644 index 00000000000..743e1a1fa74 --- /dev/null +++ b/chromium/base/android/jank_metric_uma_recorder.h @@ -0,0 +1,24 @@ +// Copyright 2021 The Chromium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef BASE_ANDROID_JANK_METRIC_UMA_RECORDER_H_ +#define BASE_ANDROID_JANK_METRIC_UMA_RECORDER_H_ + +#include "base/android/jni_android.h" +#include "base/base_export.h" + +namespace base { +namespace android { + +BASE_EXPORT void RecordJankMetrics( + JNIEnv* env, + const base::android::JavaParamRef<jstring>& java_scenario_name, + const base::android::JavaParamRef<jlongArray>& java_timestamps_ns, + const base::android::JavaParamRef<jlongArray>& java_durations_ns, + const base::android::JavaParamRef<jlongArray>& java_jank_bursts_ns, + jint java_missed_frames); + +} // namespace android +} // namespace base +#endif // BASE_ANDROID_JANK_METRIC_UMA_RECORDER_H_ |