1 // Copyright 2015 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.
5 #ifndef BASE_ANDROID_JAVA_RUNTIME_H_
6 #define BASE_ANDROID_JAVA_RUNTIME_H_
8 #include "base/android/scoped_java_ref.h"
9 #include "base/base_export.h"
14 // Wrapper class for using the java.lang.Runtime object from jni.
15 class BASE_EXPORT JavaRuntime {
17 // Fills the total memory used and memory allocated for objects by the java
18 // heap in the current process. Returns true on success.
19 static void GetMemoryUsage(uint64_t* total_memory, uint64_t* free_memory);
22 } // namespace android
25 #endif // BASE_ANDROID_JAVA_RUNTIME_H_