in ibazel/profiler/profiler.go [147:171]
func (i *Profiler) AfterCommand(targets []string, command string, success bool, output *bytes.Buffer) {
if i.file == nil {
return
}
i.targets = targets
if success {
switch command {
case "build":
i.buildEvent("BUILD_DONE")
case "test":
i.buildEvent("TEST_DONE")
case "run":
i.buildEvent("RUN_DONE")
}
} else {
switch command {
case "build":
i.buildEvent("BUILD_FAILED")
case "test":
i.buildEvent("TEST_FAILED")
case "run":
i.buildEvent("RUN_FAILED")
}
}
}