History log of /libcore/dalvik/src/main/java/dalvik/system/VMDebug.java
Revision Date Author Comments
c43792941691fd119cf9df8e5c2c1419f3f7b92d 13-Jan-2011 Carl Shapiro <cshapiro@google.com> Remove @cts comments from hidden classes.

Change-Id: I948fc13d0fc236b07dad5864cab2e5c4eba2c06c
3ca860a1b855ab0e30c50779d7f7eefe70a2f8b0 13-Jan-2011 Carl Shapiro <cshapiro@google.com> Remove the allocation limits interfaces.

Change-Id: I85c3b48cb11823cfccd1901cac685d0c457a74b3
2891ca834bd14c4fd6d4351897dd6421ab469f8c 13-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> Fix build and javadoc.

Change-Id: Icf2d0372a74530ff0fae0c98488767b42f223281
7921449288479710fddfd9873ea6608b89ae271b 12-Jan-2011 Carl Shapiro <cshapiro@google.com> Fix a droid doc error caused by the erroneous inflection of @return.

Change-Id: I61a3c8cc34d129a37c6556b9def5fa5fe0cafe46
fb374e129dc73d4adafc9441ca78011676a26d9f 12-Jan-2011 Carl Shapiro <cshapiro@google.com> Remove method level hiding within hidden classes.

This change also removes braces surrounding a properly placed @hide
annotation.

Change-Id: I8b7b32567068099f9081e7bcb2f30b80b71441f7
a46e08d56443b83cad81a2723c27af4eff0ca019 04-Nov-2010 Carl Shapiro <cshapiro@google.com> Export the assignable instance counting.
866e7ae17a3da81a02b0b144e0c9c2b3196d293a 09-Dec-2010 Elliott Hughes <enh@google.com> Fix a bunch of javac -Xlint warnings in our code.

I think "fallthrough" uncovered a couple of real bugs in the kxml code, but
other than that there's nothing very exciting here. This addresses all but
one of the non-xml warnings. I'm assuming that we'll move the xml cruft out
into external at some point (since we're deliberately not maintaining it).

Change-Id: Ice81253b019df7b19d6557e719663b7bdc11fb22
9e2e604ebd336307ab708544c8f7589bb4ae9fe7 04-Nov-2010 Carl Shapiro <cshapiro@google.com> Export the assignable instance counting.

Change-Id: I4358afbf79ac8c33448b48f4b5e1d365371bca1b
2e386d4b586dba464ec59be93c0720b6b973ab96 17-Aug-2010 Carl Shapiro <cshapiro@google.com> Export the new countInstancesOfClass method.

Change-Id: I87b69b2c04cf14e0971c57633e229b02c3547375
478f5f9576c399c30288cf79d6bbf65ca5feedfd 10-Jul-2010 Andy McFadden <fadden@android.com> Allow heap dump requests with a FileDescriptor arg.

Part of a larger change to allow "am" to initiate hprof heap dumps.

Bug 2759474.

Change-Id: I33c41e6f2ce37d2c0348ea783ecaadc0eae33d36
f33eae7e84eb6d3b0f4e86b59605bb3de73009f3 13-May-2010 Elliott Hughes <enh@google.com> Remove all trailing whitespace from the dalvik team-maintained parts of libcore.

Gentlemen, you may now set your editors to "strip trailing whitespace"...

Change-Id: I85b2f6c80e5fbef1af6cab11789790b078c11b1b
8f273343b7758c09822c74b4f8a0dcf7df3a78b5 02-Apr-2010 Jesse Wilson <jessewilson@google.com> Removing APIs from dalvik.system that shouldn't have been published.

These APIs were deprecated in Eclair and should disappear in Gingerbread.
See bug 2553600.
dd60d48f45cc3c3eaf80a08e2af47b1bbebe7372 13-Mar-2010 Ben Cheng <bccheng@android.com> Add a native method dalvik.system.VMDebug.infopoint(int id).

With gdb, the JIT can use it to inspect the VM state when an instrumented line
is reached.

Change-Id: Id39ac4cd564bc1a61208cb7527c30f62b5de3e4e
982744ab59754d815f0a9d82ab91eb0fa6f2bf4b 23-Feb-2010 Andy McFadden <fadden@android.com> Add class init stats to alloc counters (API change).

Add calls to retrieve class initialization stats via the allocation
count mechanism.

Also: deprecate a method that is never used, and a redundantly declared
default filename that begins with "/sdcard".

For bug 2461549.
21fc59c88df7a8d28ac776cd3434e8341cabec16 29-Jan-2010 Andy McFadden <fadden@android.com> Add support for streaming hprof dumps.

This adds the dumpHprofDataDdms method, which generates the hprof dump
in RAM and then spits the whole thing at DDMS. The idea is to avoid
touching /sdcard, since not all apps have permission to do that.

This rearranges hprofShutdown() a fair bit. It used to re-use a context
struct, saving interesting bits to local variables before zapping it;
now we just create a second context struct and free both at the end.

For bug 2092855.
93714a1dfb4ba2ca5087448c6b5ca39dafaa6ace 23-Jan-2010 Andy McFadden <fadden@android.com> Add streaming method profiling support.

The goal is to allow DDMS to start/stop method profiling in apps that
don't have permission to write to /sdcard. Instead of writing the
profiling data to disk and then pulling it off, we just blast the whole
thing straight from memory.

This includes:

- New method tracing start call (startMethodTracingDdms).
- Rearrangement of existing VMDebug method tracing calls for sanity.
- Addition of "vector" chunk send function, with corresponding
update to the JDWP transport function.
- Reshuffled the method trace start interlock, which seemed racy.
- Post new method-trace-profiling-streaming feature to DDMS.

Also:

- Added an internal exception-throw function that allows a printf
format string, so we can put useful detail into exception messages.

For bug 2160407.
d3c419d0fa3183cf3297292803dc7c1fe28f9310 22-Jan-2010 Andy McFadden <fadden@android.com> Move VM feature strings (used by DDMS) into VM.

Until now, we used a place-holder in frameworks/base.

Removed cruft.
4fefecee9d4a5d2a4510f516b4015607b19e8d09 13-Nov-2009 Jean-Baptiste Queru <jbq@google.com> eclair snapshot
bb4b5ab9fb3bdd0be99ebc9a6e5c973c4106c84c 23-Oct-2009 Andy McFadden <fadden@android.com> Add a reference table dump call.

This adds a hidden method to android.os.Debug that causes the contents
of various reference tables to be dumped. Currently it's the local,
global, and pinned array tables from JNI.

Bug 2075355
04aaaf18dac85eee31b3451226daf586a455feb7 23-Sep-2009 Jesse Wilson <jessewilson@google.com> Deprecate many of the accidentally-published APIs in dalvik.system.

See bug 2021674 for discussion. I searched Google Code Search to
sample which of these APIs are being used. None of these APIs
were used by applications, so I'm quite confident that removing
them will not break applications or upset developers.

These APIs were neither formerly documented, nor intended for use
by application developers. I am deprecating them now to discourage
their use going forward. We should remove them in a future release.
cd9ef3b60c1d7500cb25dc811173f58a1607a052 31-Jul-2009 Andy McFadden <fadden@android.com> Added VMDebug.crash() (hidden).

This call prints the stack trace for the current thread, and then
crashes the VM so you can see the native stack trace too. Useful for
figuring out "how did I get here?" situations.
8205fe4fab4a269a27414009b684595dcec31f4d 24-Jun-2009 Dianne Hackborn <hackbod@google.com> Add FileDescriptor variation of startMethodTracing().

This is for bug #1829561 ("am profile" with bad filename kills process), which
will allow the am command to take care of opening the file and handing the
resulting fd over to the process to be profiled.
016a87c7952b25eededfc222615e25a5a72bcdda 24-Apr-2009 Scott Main <> AI 147732: fix broken links
BUG=1810005

Automated import of CL 147732
b24c3855b72e1e4e1c11629db3faf89b73be7dea 08-Apr-2009 Andy McFadden <> AI 144931: Added a (hidden) way to "pre-cache" register maps.
The 50 methods that appeared on the GC stacks of the most applications
require 13KB of native heap for their uncompressed register maps, and
the full set took 5ms to uncompress. Pre-computation doesn't represent
a significant improvement in space or time, at the cost of a big pile
of strings in ZygoteInit.
I'm leaving the method in ZygoteInit, but it's not called, and the
static final String[] of method descriptors is empty. We may want to
revisit this later.
BUG=1729570

Automated import of CL 144931
6e9aaa7487570351360ada9630f1684d25a2183d 25-Mar-2009 Andy McFadden <> Automated import from //branches/donutburger/...@140700,140700
5d287a9d9768195f53e244414b465ec4a6f72625 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import //branches/master/...@140412
adc854b798c1cfe3bfd4c27d68d5cee38ca617da 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
1c0fed63c71ddb230f3b304aac12caffbedf2f21 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
b7926325a1c1a370c84c81db80372f59af240a53 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
dd828f42a5c83b4270d4fbf6fce2da1878f1e84a 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
fdb2704414a9ed92394ada0d1395e4db86889465 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution