Adding jni for accessing java.lang.runtime from base/.
commit17c796f5d0df5855f9788d6b12d83ddcff309f10
authorssid <ssid@chromium.org>
Wed, 22 Apr 2015 17:48:01 +0000 (22 10:48 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 22 Apr 2015 17:48:08 +0000 (22 17:48 +0000)
treeb131f800c76d84e8bbb309c0412b1ce46f5d44c9
parent18324893971dcfe12463acebb8850def777002cc
Adding jni for accessing java.lang.runtime from base/.

This CL adds new jni interface for java.lang.Runtime object for using
the functions totalMemory() and freeMemory(). This is first step
towards dumping java heap size on android to tracing. These will be
used by dump provider in base/trace_event (for overview the code will
look like this : crrev.com/1050233004).

BUG=477464

Review URL: https://codereview.chromium.org/1086943003

Cr-Commit-Position: refs/heads/master@{#326336}
base/BUILD.gn
base/android/base_jni_registrar.cc
base/android/java_runtime.cc [new file with mode: 0644]
base/android/java_runtime.h [new file with mode: 0644]
base/base.gyp
base/base.gypi