summaryrefslogtreecommitdiffstats
path: root/core/java/android/os/Debug.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2009-06-24 16:25:26 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-06-24 16:25:26 -0700
commitafed82bca9e173cabe2c2f25314b202e5c1ccbca (patch)
tree1179ebc7b545a1f51de557dc78fc2d141c8f1e74 /core/java/android/os/Debug.java
parent465913c7ef4aac6124a281449c857106db3dd0a5 (diff)
parent9c8dd55a9d829c29a3feee9469d8c2f27a9f5516 (diff)
downloadframeworks_base-afed82bca9e173cabe2c2f25314b202e5c1ccbca.zip
frameworks_base-afed82bca9e173cabe2c2f25314b202e5c1ccbca.tar.gz
frameworks_base-afed82bca9e173cabe2c2f25314b202e5c1ccbca.tar.bz2
am 9c8dd55a: Fix bug 1829561 ("am profile" with bad filename kills process).
Merge commit '9c8dd55a9d829c29a3feee9469d8c2f27a9f5516' * commit '9c8dd55a9d829c29a3feee9469d8c2f27a9f5516': Fix bug 1829561 ("am profile" with bad filename kills process).
Diffstat (limited to 'core/java/android/os/Debug.java')
-rw-r--r--core/java/android/os/Debug.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/java/android/os/Debug.java b/core/java/android/os/Debug.java
index d9612af..b0fc78e 100644
--- a/core/java/android/os/Debug.java
+++ b/core/java/android/os/Debug.java
@@ -21,6 +21,7 @@ import com.android.internal.util.TypedProperties;
import android.util.Config;
import android.util.Log;
+import java.io.FileDescriptor;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
@@ -378,6 +379,20 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo
}
/**
+ * Like startMethodTracing(String, int, int), but taking an already-opened
+ * FileDescriptor in which the trace is written. The file name is also
+ * supplied simply for logging. Makes a dup of the file descriptor.
+ *
+ * Not exposed in the SDK unless we are really comfortable with supporting
+ * this and find it would be useful.
+ * @hide
+ */
+ public static void startMethodTracing(String traceName, FileDescriptor fd,
+ int bufferSize, int flags) {
+ VMDebug.startMethodTracing(traceName, fd, bufferSize, flags);
+ }
+
+ /**
* Determine whether method tracing is currently active.
* @hide
*/