mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-16 22:23:01 -06:00
update modernc.org/sqlite to v1.37.0-concurrrency-workaround (#3958)
This commit is contained in:
parent
9c31e213ca
commit
fdf23a91de
64 changed files with 1070 additions and 8220 deletions
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()
|
||||
}))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue