-
public class SafeTraceSetup
-
-
Field Summary
Fields Modifier and Type Field Description private SectionNameMappermainThreadSectionNameMapperpublic final static SafeTraceSetupINSTANCE
-
Method Summary
Modifier and Type Method Description final Unitinit(Application application)final StringcleanUpMainThreadSectionName(String log)Cleans up a log string that matches the following pattern: ">>>>> Dispatching to " + msg.target + " " + msg.callback + ": " + msg. final SectionNameMappergetMainThreadSectionNameMapper()final UnitsetMainThreadSectionNameMapper(SectionNameMapper mainThreadSectionNameMapper)-
-
Method Detail
-
init
final Unit init(Application application)
-
cleanUpMainThreadSectionName
final String cleanUpMainThreadSectionName(String log)
Cleans up a log string that matches the following pattern: ">>>>> Dispatching to " + msg.target + " " + msg.callback + ": " + msg.what
The goal is to make the label more legible and also more likely to fit in 127 chars.
If msg.callback is null then the result is msg.target + msg.what If msg.callback is not null then the result is msg.callback + msg.target + msg.what.
Any "Continuation at " prefix in msg.callback is removed.
-
getMainThreadSectionNameMapper
final SectionNameMapper getMainThreadSectionNameMapper()
-
setMainThreadSectionNameMapper
final Unit setMainThreadSectionNameMapper(SectionNameMapper mainThreadSectionNameMapper)
-
-
-
-