added peak memory to package status page
This commit is contained in:
parent
cf4f91295f
commit
14941136c4
@ -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 {
|
||||
|
@ -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}} {{end}}{{if $pkg.BuildDuration}}CPU-Time: {{$pkg.BuildDuration}} {{end}}Last checked on {{$pkg.Checked}}">
|
||||
title="{{if $pkg.BuildDate}}Build on {{$pkg.BuildDate}} {{end}}
|
||||
{{if $pkg.BuildDuration}}CPU-Time: {{$pkg.BuildDuration}} {{end}}
|
||||
{{if $pkg.BuildMemory}}Peak-Memory: {{$pkg.BuildMemory}} {{end}}
|
||||
Last checked on {{$pkg.Checked}}">
|
||||
<i class="fa fa-info-circle fa-lg"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
Loading…
Reference in New Issue
Block a user