TasksStatsLogger

public interface TasksStatsLogger
Known Indirect Subclasses

The stats logger interface that defines what MediaPipe Tasks events to log.

Nested Classes

class TasksStatsLogger.StatsSnapshot Task stats snapshot. 

Public Methods

abstract void
logInitError()
Logs the MediaPipe Tasks API initialization error.
abstract void
logInvocationReport(TasksStatsLogger.StatsSnapshot stats)
Logs the MediaPipe Tasks API periodic invocation report.
abstract void
logSessionEnd()
Logs the Tasks API session end event.
abstract void
logSessionStart()
Logs the start of a MediaPipe Tasks API session.
abstract void
recordCpuInputArrival(long packetTimestamp)
Records MediaPipe Tasks API receiving CPU input data.
abstract void
recordGpuInputArrival(long packetTimestamp)
Records MediaPipe Tasks API receiving GPU input data.
abstract void
recordInvocationEnd(long packetTimestamp)
Records the end of a Mediapipe Tasks API invocation.

Public Methods

public abstract void logInitError ()

Logs the MediaPipe Tasks API initialization error.

public abstract void logInvocationReport (TasksStatsLogger.StatsSnapshot stats)

Logs the MediaPipe Tasks API periodic invocation report.

Parameters
stats

public abstract void logSessionEnd ()

Logs the Tasks API session end event.

public abstract void logSessionStart ()

Logs the start of a MediaPipe Tasks API session.

public abstract void recordCpuInputArrival (long packetTimestamp)

Records MediaPipe Tasks API receiving CPU input data.

Parameters
packetTimestamp the input packet timestamp that acts as the identifier of the api invocation.

public abstract void recordGpuInputArrival (long packetTimestamp)

Records MediaPipe Tasks API receiving GPU input data.

Parameters
packetTimestamp the input packet timestamp that acts as the identifier of the api invocation.

public abstract void recordInvocationEnd (long packetTimestamp)

Records the end of a Mediapipe Tasks API invocation.

Parameters
packetTimestamp the output packet timestamp that acts as the identifier of the api invocation.