Sdílet prostřednictvím


Debug.SetGlobalAllocationLimit(Int32) Method

Definition

Caution

deprecated

Establish a global object allocation limit.

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

Parameters

limit
Int32

Returns

Attributes

Remarks

Establish a global object allocation limit. 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.setGlobalAllocationLimit(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