LogTreePopulator
object LogTreePopulator
This class provides utilities for extracting information through ComponentsLogger#getExtraAnnotations(TreeProps) and transforming them so they can be logged.
Functions
Link copied to clipboard
fun populatePerfEventFromLogger(c: ComponentContext, logger: ComponentsLogger, perfEvent: PerfEvent?): PerfEvent?
fun populatePerfEventFromLogger(c: ComponentContext, logger: ComponentsLogger, logTag: String?, perfEvent: PerfEvent?): PerfEvent?
Annotate a log event with the log tag set in the context, and extract the TreePropContainer from a given ComponentContext and convert them into perf event annotations using a ComponentsLogger implementation.