added peak memory to package status page

This commit is contained in:
2023-03-14 21:05:43 +01:00
parent cf4f91295f
commit 14941136c4
2 changed files with 9 additions and 1 deletions

View File

@@ -234,6 +234,7 @@ func (b *BuildManager) htmlWorker(ctx context.Context) {
Svn2GitVersion string
BuildDate string
BuildDuration time.Duration
BuildMemory datasize.ByteSize
Checked string
Log string
LTO bool
@@ -309,6 +310,10 @@ func (b *BuildManager) htmlWorker(ctx context.Context) {
addPkg.Log = fmt.Sprintf("%s/%s/%s.log", logDir, pkg.March, pkg.Pkgbase)
}
if pkg.MaxRss != nil {
addPkg.BuildMemory = datasize.ByteSize(*pkg.MaxRss) * datasize.KB
}
switch pkg.Lto {
case dbpackage.LtoUnknown:
if pkg.Status != dbpackage.StatusSkipped && pkg.Status != dbpackage.StatusFailed {