createWithMetrics

fun createWithMetrics(context: Context, metrics: WorkMetricsInfoRepository, uniqueNames: List<String> = emptyList(), bufferBytes: Int = DEFAULT_BUFFER_BYTES): WorkDebugTab

Creates a WorkDebugTab that also shows the history that work-analytics keeps: the times, attempts, and stop reasons of each run, also of the runs of earlier processes.

It has a name of its own, not another overload of create: to choose between overloads with the same number of parameters, javac loads the types of all of them, and an app without work-analytics has no WorkMetricsInfoRepository.

Parameters

metrics

the app's repository, which the app also sets as its execution and schedule listeners, before configure.

See also