Apply the same pattern as NVIDIA SAT: launch nvtop via tea.ExecProcess so it occupies the full terminal as a live GPU chart (temp, power, fan, utilisation lines) while the stress test runs in the background. - Add screenGPUStressRunning screen + dedicated running/render handlers - startGPUStressTest: tea.Batch(stress goroutine, tea.ExecProcess(nvtop)) - [o] reopen nvtop at any time; [a] abort (cancels context) - Graceful degradation: test still runs if nvtop is not on PATH - gpuStressDoneMsg routes result to screenOutput on completion Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
53 lines
714 B
Go
53 lines
714 B
Go
package tui
|
|
|
|
import (
|
|
"bee/audit/internal/app"
|
|
"bee/audit/internal/platform"
|
|
)
|
|
|
|
type resultMsg struct {
|
|
title string
|
|
body string
|
|
err error
|
|
back screen
|
|
}
|
|
|
|
type servicesMsg struct {
|
|
services []string
|
|
err error
|
|
}
|
|
|
|
type interfacesMsg struct {
|
|
ifaces []platform.InterfaceInfo
|
|
err error
|
|
}
|
|
|
|
type exportTargetsMsg struct {
|
|
targets []platform.RemovableTarget
|
|
err error
|
|
}
|
|
|
|
type snapshotMsg struct {
|
|
banner string
|
|
panel app.HardwarePanelData
|
|
}
|
|
|
|
type nvidiaGPUsMsg struct {
|
|
gpus []platform.NvidiaGPU
|
|
err error
|
|
}
|
|
|
|
type nvtopClosedMsg struct{}
|
|
|
|
type nvidiaSATDoneMsg struct {
|
|
title string
|
|
body string
|
|
err error
|
|
}
|
|
|
|
type gpuStressDoneMsg struct {
|
|
title string
|
|
body string
|
|
err error
|
|
}
|