Add go sdk
This commit is contained in:
9
performancemetrics/memory.go
Normal file
9
performancemetrics/memory.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package performancemetrics
|
||||
|
||||
import "runtime"
|
||||
|
||||
func getAllocatedMemory() uint64 {
|
||||
var m runtime.MemStats
|
||||
runtime.ReadMemStats(&m)
|
||||
return m.Alloc
|
||||
}
|
||||
Reference in New Issue
Block a user