added peak memory to package status page
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user