added peak memory to package status page

This commit is contained in:
Giovanni Harting 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 {

View File

@ -119,7 +119,10 @@
href="https://archlinux.org/packages/?q={{$pkg.Pkgbase}}" title="ArchWeb">AW</a>
<a data-bs-html="true" data-bs-placement="bottom" data-bs-toggle="tooltip"
href="#{{$repo.Name}}-{{$march.Name}}-{{$pkg.Pkgbase}}"
title="{{if $pkg.BuildDate}}Build on {{$pkg.BuildDate}}&#10;{{end}}{{if $pkg.BuildDuration}}CPU-Time: {{$pkg.BuildDuration}}&#10;{{end}}Last checked on {{$pkg.Checked}}">
title="{{if $pkg.BuildDate}}Build on {{$pkg.BuildDate}}&#10;{{end}}
{{if $pkg.BuildDuration}}CPU-Time: {{$pkg.BuildDuration}}&#10;{{end}}
{{if $pkg.BuildMemory}}Peak-Memory: {{$pkg.BuildMemory}}&#10;{{end}}
Last checked on {{$pkg.Checked}}">
<i class="fa fa-info-circle fa-lg"></i></a>
</td>
</tr>