Compartilhar via


TimingLogger Constructors

Definition

Overloads

TimingLogger(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

TimingLogger(String, String)

Create and initialize a TimingLogger object that will log using the specific tag.

TimingLogger(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected TimingLogger (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Util.TimingLogger : nativeint * Android.Runtime.JniHandleOwnership -> Android.Util.TimingLogger

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

TimingLogger(String, String)

Create and initialize a TimingLogger object that will log using the specific tag.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public TimingLogger (string? tag, string? label);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")>]
new Android.Util.TimingLogger : string * string -> Android.Util.TimingLogger

Parameters

tag
String

the log tag to use while logging the timings

label
String

a string to be displayed with each log

Attributes

Remarks

Create and initialize a TimingLogger object that will log using the specific tag. If the Log.isLoggable is not enabled to at least the Log.VERBOSE level for that tag at creation time then the addSplit and dumpToLog call will do nothing.

Java documentation for android.util.TimingLogger.TimingLogger(java.lang.String, 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