Add microfactory tracing
Test: m clean; load out/build.trace.gz in chrome://tracing Test: m -j nothing; load again Change-Id: I67d4e006a4bdde593b54c20d6d93a48278fe696d
This commit is contained in:
@@ -89,6 +89,10 @@ func main() {
|
||||
buildCtx.CompleteTrace("startup", start_time, uint64(time.Now().UnixNano()))
|
||||
}
|
||||
}
|
||||
|
||||
if executable, err := os.Executable(); err == nil {
|
||||
trace.ImportMicrofactoryLog(filepath.Join(filepath.Dir(executable), "."+filepath.Base(executable)+".trace"))
|
||||
}
|
||||
}
|
||||
|
||||
build.Build(buildCtx, config, build.BuildAll)
|
||||
|
Reference in New Issue
Block a user