TasksStatsDummyLogger

public class TasksStatsDummyLogger

A dummy MediaPipe Tasks stats logger that has all methods as no-ops.

Public Methods

static TasksStatsDummyLogger
create(Context context, String taskNameStr, String taskRunningModeStr)
Creates the MediaPipe Tasks stats dummy logger.
void
logInitError()
Logs the MediaPipe Tasks API initialization error.
void
logInvocationReport(TasksStatsLogger.StatsSnapshot stats)
Logs the MediaPipe Tasks API periodic invocation report.
void
logSessionEnd()
Logs the Tasks API session end event.
void
logSessionStart()
Logs the start of a MediaPipe Tasks API session.
void
recordCpuInputArrival(long packetTimestamp)
Records MediaPipe Tasks API receiving CPU input data.
void
recordGpuInputArrival(long packetTimestamp)
Records MediaPipe Tasks API receiving GPU input data.
void
recordInvocationEnd(long packetTimestamp)
Records the end of a Mediapipe Tasks API invocation.

Inherited Methods

Public Methods

public static TasksStatsDummyLogger create (Context context, String taskNameStr, String taskRunningModeStr)

Creates the MediaPipe Tasks stats dummy logger.

Parameters
context a ERROR(/Context).
taskNameStr the task api name.
taskRunningModeStr the task running mode string representation.

public void logInitError ()

Logs the MediaPipe Tasks API initialization error.

public void logInvocationReport (TasksStatsLogger.StatsSnapshot stats)

Logs the MediaPipe Tasks API periodic invocation report.

Parameters
stats

public void logSessionEnd ()

Logs the Tasks API session end event.

public void logSessionStart ()

Logs the start of a MediaPipe Tasks API session.

public 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 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 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.