Chapter 47
stub/memory
github.com/openfluke/welvet/stub/memory🚧
Why it exists
HF→ENTITY and GPU upload need footprint accounting and optional history charts.
What it is
FromGrid, Footprint, InitScavenger, ReleaseTransient; WELVET_MEMORY_HISTORY=1.
Go example
examples/47-stub-memory/main.go
Run:
cd welvet/examples/47-stub-memory && source ../env.sh && go run .package main
import (
"fmt"
"github.com/openfluke/welvet/architecture"
"github.com/openfluke/welvet/stub/memory"
)
func main() {
g := architecture.NewGrid(1, 1, 1, 1)
fp := memory.FromGrid(g)
fmt.Printf("%+v\n", fp)
}