public class PerfTimesEventListener extends Object implements BuckEventListener
Modifier and Type | Class and Description |
---|---|
static class |
PerfTimesEventListener.PerfTimesEvent |
Constructor and Description |
---|
PerfTimesEventListener(BuckEventBus eventBus,
ExecutionEnvironment executionEnvironment) |
Modifier and Type | Method and Description |
---|---|
void |
actionGraphFinished(ActionGraphEvent.Finished finished) |
void |
buildFinished(BuildEvent.Finished finished) |
void |
buildRuleWillBuildLocally(BuildRuleEvent.WillBuildLocally event) |
void |
initializationFinished(BuckInitializationDurationEvent event) |
void |
installFinished(InstallEvent.Finished finished) |
void |
onHttpArtifactCacheStartedEvent(HttpArtifactCacheEvent.Started event) |
void |
onRuleKeyCalculationFinished(BuildRuleEvent.FinishedRuleKeyCalc event)
Records when a rulekey finished calculation and it is time to extract time it took.
|
void |
onRuleKeyCalculationStarted(BuildRuleEvent.StartedRuleKeyCalc event)
Records when we start calculating a rulekey.
|
void |
parseFinished(ParseEvent.Finished finished) |
void |
parseStarted(ParseEvent.Started started) |
void |
projectGenerationFinished(ProjectGenerationEvent.Finished finished) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public PerfTimesEventListener(BuckEventBus eventBus, ExecutionEnvironment executionEnvironment)
eventBus
- When we finish gather all data points, we will post the result as event back
into event bus.executionEnvironment
- We need this in order to get Python_init_time, as it is provided by
our Python wrapper.public void initializationFinished(BuckInitializationDurationEvent event)
public void parseStarted(ParseEvent.Started started)
public void parseFinished(ParseEvent.Finished finished)
public void actionGraphFinished(ActionGraphEvent.Finished finished)
public void projectGenerationFinished(ProjectGenerationEvent.Finished finished)
public void onRuleKeyCalculationStarted(BuildRuleEvent.StartedRuleKeyCalc event)
event
- the event that sings the start.public void onRuleKeyCalculationFinished(BuildRuleEvent.FinishedRuleKeyCalc event)
event
- the event that signs the end of calculation.public void onHttpArtifactCacheStartedEvent(HttpArtifactCacheEvent.Started event)
public void buildRuleWillBuildLocally(BuildRuleEvent.WillBuildLocally event)
public void buildFinished(BuildEvent.Finished finished)
public void installFinished(InstallEvent.Finished finished)