feat: ✨ Added Sqlite reader
This commit is contained in:
12
vendor/modernc.org/libc/mem_expvar.go
generated
vendored
Normal file
12
vendor/modernc.org/libc/mem_expvar.go
generated
vendored
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()
|
||||
}))
|
||||
}
|
||||
Reference in New Issue
Block a user