Sdílet prostřednictvím


Debug.SetAllocationLimit(Int32) Method

Definition

Caution

deprecated

Establish an object allocation limit in the current thread.

[Android.Runtime.Register("setAllocationLimit", "(I)I", "")]
[System.Obsolete("deprecated")]
public static int SetAllocationLimit (int limit);
[<Android.Runtime.Register("setAllocationLimit", "(I)I", "")>]
[<System.Obsolete("deprecated")>]
static member SetAllocationLimit : int -> int

Parameters

limit
Int32

Returns

Attributes

Remarks

Establish an object allocation limit in the current thread. This feature was never enabled in release builds. The allocation limits feature was removed in Honeycomb. This method exists for compatibility and always returns -1 and has no effect.

This member is deprecated. This method is now obsolete.

Java documentation for android.os.Debug.setAllocationLimit(int).

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