diff options
author | Mathieu Chartier <mathieuc@google.com> | 2019-03-28 13:13:05 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2019-03-29 14:37:36 -0700 |
commit | 0b3a54e0922cb67e149b9809b28a085f4c789c39 (patch) | |
tree | 568d682a462ade94217acdd05e77e89982b6dedd /dalvik | |
parent | e11d6c50d8c743ea304b3c1bc7d3842ea65af17e (diff) |
Add VMDebug.setAllocTrackerStackDepth API
Sets the number of frames recorded for each allocation when
allocation tracking is enabled.
Test: test-art-host
Bug: 37291459
Change-Id: I5d884efd798588c1ca684567d865f9acf81455a5
Diffstat (limited to 'dalvik')
-rw-r--r-- | dalvik/src/main/java/dalvik/system/VMDebug.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dalvik/src/main/java/dalvik/system/VMDebug.java b/dalvik/src/main/java/dalvik/system/VMDebug.java index 1802a72a4b..2a0e4ef586 100644 --- a/dalvik/src/main/java/dalvik/system/VMDebug.java +++ b/dalvik/src/main/java/dalvik/system/VMDebug.java @@ -585,4 +585,12 @@ public final class VMDebug { */ @UnsupportedAppUsage public static native void allowHiddenApiReflectionFrom(Class<?> klass); + + /** + * Sets the number of frames recorded for allocation tracking. + * + * @param stackDepth The number of frames captured for each stack trace. + */ + @libcore.api.CorePlatformApi + public static native void setAllocTrackerStackDepth(int stackDepth); } |