public abstract class LithoStartupLogger extends Object
The implementations decide how to log points (via onMarkPoint(String)
) and whether
this logger is enabled (via isEnabled()
.
Modifier and Type | Field and Description |
---|---|
static String |
CHANGESET_CALCULATION |
static String |
END |
static String |
FIRST_LAYOUT |
static String |
FIRST_MOUNT |
static String |
LAST_MOUNT |
static String |
LITHO_PREFIX |
static String |
START |
Constructor and Description |
---|
LithoStartupLogger() |
Modifier and Type | Method and Description |
---|---|
String |
getLatestDataAttribution() |
protected abstract boolean |
isEnabled() |
static boolean |
isEnabled(LithoStartupLogger logger) |
void |
markPoint(String eventName,
String stage)
Mark the event with given name and stage (start/end).
|
void |
markPoint(String eventName,
String stage,
String dataAttribution)
Mark the event with given name, stage (start/end), and given data attribution.
|
protected abstract void |
onMarkPoint(String name)
Callback to log the event point.
|
void |
setDataAttribution(String attribution)
Set attribution to the rendered events like the network query name, data source (network/cache)
etc.
|
public static final String LITHO_PREFIX
public static final String CHANGESET_CALCULATION
public static final String FIRST_LAYOUT
public static final String FIRST_MOUNT
public static final String LAST_MOUNT
public static final String START
public static final String END
public static boolean isEnabled(LithoStartupLogger logger)
public void setDataAttribution(String attribution)
public String getLatestDataAttribution()
public void markPoint(String eventName, String stage)
public void markPoint(String eventName, String stage, String dataAttribution)
protected abstract void onMarkPoint(String name)
protected abstract boolean isEnabled()