Adding upstream version 1.65.7.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
5189956325
commit
32b8eb3fd7
4153 changed files with 2487292 additions and 0 deletions
12
mem_expvar.go
Normal file
12
mem_expvar.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
//go:build libc.memexpvar
|
||||
|
||||
package libc
|
||||
|
||||
import "expvar"
|
||||
|
||||
func init() {
|
||||
// make sure to build with -tags=memory.counters to have the actual data accumulated in memory allocator
|
||||
expvar.Publish("memory.allocator", expvar.Func(func() interface{} {
|
||||
return MemStat()
|
||||
}))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue