Sdílet prostřednictvím


StrictMode.NoteSlowCall(String) Method

Definition

For code to note that it's slow.

[Android.Runtime.Register("noteSlowCall", "(Ljava/lang/String;)V", "")]
public static void NoteSlowCall (string? name);
[<Android.Runtime.Register("noteSlowCall", "(Ljava/lang/String;)V", "")>]
static member NoteSlowCall : string -> unit

Parameters

name
String

a short string for the exception stack trace that's built if when this fires.

Attributes

Remarks

For code to note that it's slow. This is a no-op unless the current thread's android.os.StrictMode.ThreadPolicy has android.os.StrictMode.ThreadPolicy.Builder#detectCustomSlowCalls enabled.

Java documentation for android.os.StrictMode.noteSlowCall(java.lang.String).

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