diff options
Diffstat (limited to 'vendor/modernc.org/libc/memgrind.go')
| -rw-r--r-- | vendor/modernc.org/libc/memgrind.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/modernc.org/libc/memgrind.go b/vendor/modernc.org/libc/memgrind.go index e43357ae7..ccf5d8a3e 100644 --- a/vendor/modernc.org/libc/memgrind.go +++ b/vendor/modernc.org/libc/memgrind.go @@ -269,6 +269,17 @@ func UsableSize(p uintptr) types.Size_t { return types.Size_t(memory.UintptrUsableSize(p)) } +type MemAllocatorStat struct { + Allocs int + Bytes int + Mmaps int +} + +// MemStat no-op for this build tag +func MemStat() MemAllocatorStat { + return MemAllocatorStat{} +} + // MemAuditStart locks the memory allocator, initializes and enables memory // auditing. Finally it unlocks the memory allocator. // |
