Registry / utility / fjl-memsize

fjl-memsize

JSON →
library0.0.2gogounverified

Package memsize computes the size of your object graph, helping identify memory usage per type.

go get github.com/fjl/memsize
INSTALL
IMPORT
SIG · FJL-MEMSIZE
F
fjl-memsize
utilitygov0.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

memsize
github.com/fjl/memsize

Scans an object graph and prints total memory size.

package main import ( "fmt" "github.com/fjl/memsize" ) func main() { var x struct{ A int; B [100]byte } s := memsize.Scan(&x) fmt.Println(s.Total) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources