Freigeben über


Thread.AllStackTraces Property

Definition

Returns a map of stack traces for all live threads.

public static System.Collections.Generic.IDictionary<Java.Lang.Thread,Java.Lang.StackTraceElement[]> AllStackTraces { [Android.Runtime.Register("getAllStackTraces", "()Ljava/util/Map;", "")] get; }
[<get: Android.Runtime.Register("getAllStackTraces", "()Ljava/util/Map;", "")>]
static member AllStackTraces : System.Collections.Generic.IDictionary<Java.Lang.Thread, Java.Lang.StackTraceElement[]>

Property Value

a Map from Thread to an array of StackTraceElement that represents the stack trace of the corresponding thread.

Attributes

Remarks

Returns a map of stack traces for all live threads. The map keys are threads and each map value is an array of StackTraceElement that represents the stack dump of the corresponding Thread. The returned stack traces are in the format specified for the #getStackTrace getStackTrace method.

The threads may be executing while this method is called. The stack trace of each thread only represents a snapshot and each stack trace may be obtained at different time. A zero-length array will be returned in the map value if the virtual machine has no stack trace information about a thread.

Added in 1.5.

Java documentation for java.lang.Thread.getAllStackTraces().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to