mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-05 02:37:07 +02:00
Add support for timing data in JSON format. (#510)
This commit is contained in:
@@ -390,7 +390,11 @@ func DoBuild(opts *config.KanikoOptions) (v1.Image, error) {
|
||||
logrus.Warnf("Unable to create benchmarking file %s: %s", benchmarkFile, err)
|
||||
}
|
||||
defer f.Close()
|
||||
f.WriteString(timing.Summary())
|
||||
s, err := timing.JSON()
|
||||
if err != nil {
|
||||
logrus.Warnf("Unable to write benchmark file: %s", err)
|
||||
}
|
||||
f.WriteString(s)
|
||||
}
|
||||
return sourceImage, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user