public class JavacEventSinkToBuckEventBusBridge extends Object implements JavacEventSink
Constructor and Description |
---|
JavacEventSinkToBuckEventBusBridge(BuckEventBus eventBus) |
Modifier and Type | Method and Description |
---|---|
void |
reportAnnotationProcessingEventFinished(BuildTarget buildTarget,
String annotationProcessorName,
String operationAsString,
int round,
boolean isLastRound) |
void |
reportAnnotationProcessingEventStarted(BuildTarget buildTarget,
String annotationProcessorName,
String operationAsString,
int round,
boolean isLastRound) |
void |
reportCompilerPluginFinished(BuildTarget buildTarget,
com.google.common.collect.ImmutableMap<String,String> args) |
void |
reportCompilerPluginStarted(BuildTarget buildTarget,
String pluginName,
String durationName,
com.google.common.collect.ImmutableMap<String,String> args) |
void |
reportEvent(Level level,
String message,
Object... args) |
void |
reportJavacPhaseFinished(BuildTarget buildTarget,
String phaseAsString,
com.google.common.collect.ImmutableMap<String,String> args) |
void |
reportJavacPhaseStarted(BuildTarget buildTarget,
String phaseAsString,
com.google.common.collect.ImmutableMap<String,String> args) |
void |
reportThrowable(Throwable throwable,
String message,
Object... args) |
void |
startSimplePerfEvent(String name,
long uniqueKey)
There could be several perf events with the same name.
|
void |
stopSimplePerfEvent(long uniqueKey) |
public JavacEventSinkToBuckEventBusBridge(BuckEventBus eventBus)
public void reportThrowable(Throwable throwable, String message, Object... args)
reportThrowable
in interface JavacEventSink
public void reportEvent(Level level, String message, Object... args)
reportEvent
in interface JavacEventSink
public void reportCompilerPluginStarted(BuildTarget buildTarget, String pluginName, String durationName, com.google.common.collect.ImmutableMap<String,String> args)
reportCompilerPluginStarted
in interface JavacEventSink
public void reportCompilerPluginFinished(BuildTarget buildTarget, com.google.common.collect.ImmutableMap<String,String> args)
reportCompilerPluginFinished
in interface JavacEventSink
public void reportJavacPhaseStarted(BuildTarget buildTarget, String phaseAsString, com.google.common.collect.ImmutableMap<String,String> args)
reportJavacPhaseStarted
in interface JavacEventSink
public void reportJavacPhaseFinished(BuildTarget buildTarget, String phaseAsString, com.google.common.collect.ImmutableMap<String,String> args)
reportJavacPhaseFinished
in interface JavacEventSink
public void reportAnnotationProcessingEventStarted(BuildTarget buildTarget, String annotationProcessorName, String operationAsString, int round, boolean isLastRound)
reportAnnotationProcessingEventStarted
in interface JavacEventSink
public void reportAnnotationProcessingEventFinished(BuildTarget buildTarget, String annotationProcessorName, String operationAsString, int round, boolean isLastRound)
reportAnnotationProcessingEventFinished
in interface JavacEventSink
public void startSimplePerfEvent(String name, long uniqueKey)
JavacEventSink
startSimplePerfEvent
in interface JavacEventSink
name
- Name of event. This should match in both Start and Stop method calls.uniqueKey
- Unique key. This should match in both Start and Stop method calls.public void stopSimplePerfEvent(long uniqueKey)
stopSimplePerfEvent
in interface JavacEventSink
uniqueKey
- Unique key. This should match in both Start and Stop method calls.