Språk

Thread.CountStackFrames Method

Definition

Caution

deprecated

Returns the number of stack frames in this thread's stack trace.

[Android.Runtime.Register("countStackFrames", "()I", "GetCountStackFramesHandler")]
[System.Obsolete("deprecated")]
public virtual int CountStackFrames();
[<Android.Runtime.Register("countStackFrames", "()I", "GetCountStackFramesHandler")>]
[<System.Obsolete("deprecated")>]
abstract member CountStackFrames : unit -> int
override this.CountStackFrames : unit -> int

Returns

The number of stack frames in this thread's stack trace.

Attributes

Remarks

Returns the number of stack frames in this thread's stack trace.

This member is deprecated. This method was originally designed to count the number of stack frames but the results were never well-defined and it depended on thread-suspension. This method is subject to removal in a future version of Java SE.

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

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