public class CommonThreadStateRenderer extends Object
Constructor and Description |
---|
CommonThreadStateRenderer(Ansi ansi,
java.util.function.Function<Long,String> formatTimeFunction,
long currentTimeMs,
int outputMaxColumns,
com.google.common.collect.ImmutableMap<Long,com.facebook.buck.event.listener.ThreadRenderingInformation> threadInformationMap) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<Long> |
getSortedThreadIds(boolean sortByTime) |
int |
getThreadCount() |
String |
renderLine(Optional<BuildTarget> buildTarget,
Optional<? extends AbstractBuckEvent> startEvent,
Optional<? extends LeafEvent> runningStep,
Optional<String> stepCategory,
Optional<String> placeholderStepInformation,
long elapsedTimeMs) |
String |
renderShortStatus(boolean isActive,
boolean renderSubtle,
long elapsedTimeMs)
Returns a compressed version of
renderLine . |
public CommonThreadStateRenderer(Ansi ansi, java.util.function.Function<Long,String> formatTimeFunction, long currentTimeMs, int outputMaxColumns, com.google.common.collect.ImmutableMap<Long,com.facebook.buck.event.listener.ThreadRenderingInformation> threadInformationMap)
public int getThreadCount()
public com.google.common.collect.ImmutableList<Long> getSortedThreadIds(boolean sortByTime)
public String renderLine(Optional<BuildTarget> buildTarget, Optional<? extends AbstractBuckEvent> startEvent, Optional<? extends LeafEvent> runningStep, Optional<String> stepCategory, Optional<String> placeholderStepInformation, long elapsedTimeMs)
public String renderShortStatus(boolean isActive, boolean renderSubtle, long elapsedTimeMs)
renderLine
.