FileDocCategorySizeDatePackage
ProfilerInfo.javaAPI DocAndroid 5.1 API2656Thu Mar 12 22:22:10 GMT 2015android.app

ProfilerInfo

public class ProfilerInfo extends Object implements android.os.Parcelable
System private API for passing profiler settings. {@hide}

Fields Summary
public final String
profileFile
public android.os.ParcelFileDescriptor
profileFd
public final int
samplingInterval
public final boolean
autoStopProfiler
public static final Parcelable.Creator
CREATOR
Constructors Summary
public ProfilerInfo(String filename, android.os.ParcelFileDescriptor fd, int interval, boolean autoStop)

        profileFile = filename;
        profileFd = fd;
        samplingInterval = interval;
        autoStopProfiler = autoStop;
    
private ProfilerInfo(android.os.Parcel in)


       
        profileFile = in.readString();
        profileFd = in.readInt() != 0 ? ParcelFileDescriptor.CREATOR.createFromParcel(in) : null;
        samplingInterval = in.readInt();
        autoStopProfiler = in.readInt() != 0;
    
Methods Summary
public intdescribeContents()

        if (profileFd != null) {
            return profileFd.describeContents();
        } else {
            return 0;
        }
    
public voidwriteToParcel(android.os.Parcel out, int flags)

        out.writeString(profileFile);
        if (profileFd != null) {
            out.writeInt(1);
            profileFd.writeToParcel(out, flags);
        } else {
            out.writeInt(0);
        }
        out.writeInt(samplingInterval);
        out.writeInt(autoStopProfiler ? 1 : 0);