summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Hans Boehm <hboehm@google.com> 2019-10-08 17:54:47 -0700
committer Hans Boehm <hboehm@google.com> 2019-10-08 17:54:47 -0700
commit98491ba7691485ddafcc78edab7dab0d1745cd5b (patch)
tree43d20b63ecbb4d0fcc82f1468a87958ebea21a43
parent311fc569f34a6872ef923445fccb96f8cde62c35 (diff)
Add disclaimer to Debug.getRuntimeStat()
It is too expensive to compute bytes-allocated exactly, and we haven't done so in a while. Admit that. Bug: 142328050 Test: Treehugger Change-Id: I6f64e9532879d8164beabb8f886164f0d338b842
-rw-r--r--core/java/android/os/Debug.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/os/Debug.java b/core/java/android/os/Debug.java
index 154e8cd5a2d5..4ed7b17d1549 100644
--- a/core/java/android/os/Debug.java
+++ b/core/java/android/os/Debug.java
@@ -1690,6 +1690,8 @@ public final class Debug
* such runtime statistic exists.
*
* <p>The following table lists the runtime statistics that the runtime supports.
+ * All statistics are approximate. Individual allocations may not be immediately reflected
+ * in the results.
* Note runtime statistics may be added or removed in a future API level.</p>
*
* <table>