public class LithoStatsRule
extends java.lang.Object
LithoStats.resetAllCounters()
after every test,
and provides utilities methods to get the litho stats.Constructor and Description |
---|
LithoStatsRule() |
Modifier and Type | Method and Description |
---|---|
Statement |
apply(Statement base,
Description description) |
long |
getComponentAppliedStateUpdateCount() |
long |
getComponentCalculateLayoutCount() |
long |
getComponentCalculateLayoutOnUICount() |
long |
getComponentMountCount() |
long |
getComponentTriggeredAsyncStateUpdateCount() |
long |
getComponentTriggeredSyncStateUpdateCount() |
long |
getSectionAppliedStateUpdateCount() |
long |
getSectionCalculateNewChangesetCount() |
long |
getSectionCalculateNewChangesetOnUICount() |
long |
getSectionTriggeredAsyncStateUpdateCount() |
long |
getSectionTriggeredSyncStateUpdateCount() |
void |
resetAllCounters()
Resets all the counter.
|
public Statement apply(Statement base, Description description)
public long getComponentAppliedStateUpdateCount()
public long getComponentTriggeredSyncStateUpdateCount()
public long getComponentTriggeredAsyncStateUpdateCount()
public long getComponentCalculateLayoutCount()
public long getComponentCalculateLayoutOnUICount()
public long getComponentMountCount()
public long getSectionAppliedStateUpdateCount()
public long getSectionTriggeredSyncStateUpdateCount()
public long getSectionTriggeredAsyncStateUpdateCount()
public long getSectionCalculateNewChangesetCount()
public long getSectionCalculateNewChangesetOnUICount()
public void resetAllCounters()