TrackDescriptor


public final class TrackDescriptor


Low level representation of a Track, written once to the Trace.

Summary

Public constructors

TrackDescriptor(
    @NonNull String name,
    long uuid,
    long parentUuid,
    int type,
    int pid,
    int tid
)

Public methods

final @NonNull String

Display name of the Track in the trace.

final long

If set, this Track will be nested inside of the parent track (for example, when a ThreadTrack is a child of a ProcessTrack).

final int

If type == TRACK_DESCRIPTOR_TYPE_PROCESS, represents the PID of the process.

final int

If type == TRACK_DESCRIPTOR_TYPE_THREAD, represents the TID of the thread.

final int

One of TRACK_DESCRIPTOR_TYPE_THREAD, TRACK_DESCRIPTOR_TYPE_COUNTER, TRACK_DESCRIPTOR_TYPE_PROCESS

final long

Unique ID of the Track - each corresponding TraceEvent in the trace will set TraceEvent.trackUuid to this value.

final void

Display name of the Track in the trace.

final void
setParentUuid(long parentUuid)

If set, this Track will be nested inside of the parent track (for example, when a ThreadTrack is a child of a ProcessTrack).

final void
setPid(int pid)

If type == TRACK_DESCRIPTOR_TYPE_PROCESS, represents the PID of the process.

final void
setTid(int tid)

If type == TRACK_DESCRIPTOR_TYPE_THREAD, represents the TID of the thread.

final void
setType(int type)

One of TRACK_DESCRIPTOR_TYPE_THREAD, TRACK_DESCRIPTOR_TYPE_COUNTER, TRACK_DESCRIPTOR_TYPE_PROCESS

final void
setUuid(long uuid)

Unique ID of the Track - each corresponding TraceEvent in the trace will set TraceEvent.trackUuid to this value.

Public constructors

TrackDescriptor

Added in 2.0.0-alpha01
public TrackDescriptor(
    @NonNull String name,
    long uuid,
    long parentUuid,
    int type,
    int pid,
    int tid
)

Public methods

getName

Added in 2.0.0-alpha01
public final @NonNull String getName()

Display name of the Track in the trace.

getParentUuid

Added in 2.0.0-alpha01
public final long getParentUuid()

If set, this Track will be nested inside of the parent track (for example, when a ThreadTrack is a child of a ProcessTrack).

getPid

Added in 2.0.0-alpha01
public final int getPid()

If type == TRACK_DESCRIPTOR_TYPE_PROCESS, represents the PID of the process.

getTid

Added in 2.0.0-alpha01
public final int getTid()

If type == TRACK_DESCRIPTOR_TYPE_THREAD, represents the TID of the thread.

getUuid

Added in 2.0.0-alpha01
public final long getUuid()

Unique ID of the Track - each corresponding TraceEvent in the trace will set TraceEvent.trackUuid to this value.

setName

Added in 2.0.0-alpha01
public final void setName(@NonNull String name)

Display name of the Track in the trace.

setParentUuid

Added in 2.0.0-alpha01
public final void setParentUuid(long parentUuid)

If set, this Track will be nested inside of the parent track (for example, when a ThreadTrack is a child of a ProcessTrack).

setPid

Added in 2.0.0-alpha01
public final void setPid(int pid)

If type == TRACK_DESCRIPTOR_TYPE_PROCESS, represents the PID of the process.

setTid

Added in 2.0.0-alpha01
public final void setTid(int tid)

If type == TRACK_DESCRIPTOR_TYPE_THREAD, represents the TID of the thread.

setUuid

Added in 2.0.0-alpha01
public final void setUuid(long uuid)

Unique ID of the Track - each corresponding TraceEvent in the trace will set TraceEvent.trackUuid to this value.